I Have A Few Simple Ones.
Speaking Script
Code: Select all
VBSTART
Sub Speak(text)
Dim Talk
Set Talk = CreateObject("SAPI.SpVoice")
Talk.Speak text
End Sub
VBEND
VBRun>Speak,Hello Keith
AppTitle & Message Size
Code: Select all
Let>APP_TITLE=
Let>MSG_HEIGHT=320
Let>MSG_WIDTH=500
Let>MSG_STAYONTOP=1
Let>MSG_CENTERED=1
Expiry Based On User Account
Code: Select all
Label>AccountChk
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c net user /domain allem5 | Find "Account active" > %TEMP_DIR%AcctChk.csc
Wait>0.05
IfFileExists>%TEMP_DIR%AcctChk.csc
ReadLn>%TEMP_DIR%AcctChk.csc,1,AcctStatus
StringReplace>%AcctStatus%, ,,AcctStatus
StringReplace>%AcctStatus%,Accountactive,,AcctStatus
DeleteFile>%TEMP_DIR%AcctChk.csc
Else
Goto>AccountChk
Endif
If>{(%AcctStatus%="No") OR (%AcctStatus%="##EOF##")}
MDL>Program Has Expired!%CRLF%%CRLF%Please Contact Michael Allen To Purchase A License.%CRLF% Email: Blah Blah Blah%CRLF% Mobile: 0413 392 XXX%CRLF%%CRLF%Purchase Information%CRLF% Single User Licence = $75%CRLF% Domain Licence = $250
GoTo>Exit
EndIf
Expiry Based On Date
Code: Select all
//Checks Expiry
Month>the_month
Year>the_year
If>%the_year%%the_month%>201206
MDL>Program Has Expired!%CRLF%%CRLF%Please Contact Michael Allen To Purchase A License.%CRLF% Email: [email protected]%CRLF% Mobile: 0413 392 169%CRLF%%CRLF%Purchase Information%CRLF% Single User Licence = $75%CRLF% Site Licence = $250%CRLF% Domain Licence = $750
GoTo>Exit
EndIf
The expiry based on user account is for when I am doing contract work for a company, I might write them something to help their task and its freeware while I am employed, once employment ceases they are expected to pay, some times its just nagware, other times it will expired.