home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 2001-05-18 | 53.3 KB | 1,661 lines
; wspopup.MNU file. Big Version ; ; ; ; AMAZINGLY IMPORTANT NOTICE !!!!!!! ; ; If you modify this file keep backups of your modificationa, ; since, if you install *any* version of WinBatch again, this ; file WILL BE OVERWRITTEN during the install with nary a peep ; or warning of any kind. ; ; ; This files defines the WinBatch Studio context menu. ; ; ; This section is only active when selecting a "Insert Wil Function" menuitem. ; This code is pretending to be a real WBT file of sorts. It is CALL'ed by many ; Insert WIL Function menutiems (see way way below) IF Param0==2 Popfile=StrCat(DirHome(),"wspopup.mnu") Popsize=FileSize(Popfile) Popbb=BinaryAlloc(Popsize) BinaryRead(Popbb,Popfile) Popx=BinaryIndexEx(Popbb,0,StrCat(";WILCMD","INFOMARK"),@FwdScan,@False) Popx=BinaryIndexEx(Popbb,Popx,StrCat(`call(zxc,"WIL `,Param2),@FwdScan,@False) ; Pretty unique! Popx=BinaryIndexEx(Popbb,Popx,Param2,@BackScan,@false) Popy=BinaryIndex(Popbb,Popx,@Cr,@FwdScan)-1 Popline=BinaryPeekStr(Popbb,Popx,Popy-Popx+1) wEdInsString(Popline) Popz=StrScan(Popline,"(",1,@FwdScan) IF Popz Popz=StrLen(Popline)-Popz FOR Popy=1 TO Popz wLeft() NEXT ELSE wEdNewLine () ENDIF BinaryFree(Popbb) DROP(Param0,Param1,Param2,Popbb,Popfile,Popline,Popsize,Popx,Popy,Popz) RETURN ENDIF ; AutoExec Section is on top here. Note BIG INDENT for real code. ; Columns 1, 2, 3, and 4 are reserved for menu titles. This autoexec ; section goes before the first menu title. Used for assorted initializations. TAB=@TAB CR=@CRLF EOL=@CR Home=DirHome() HomeUpOne=FilePath(strsub(home,1,strlen(home)-1)) IntControl(29,@tab,0,0,0) ;Standardize on tabs as delimiters for FileItemize, etc zxc=strcat(home,"wspopup.mnu") zxct="Help file error" zxcm="Help file not found. Perhaps Extender Add-on help file has not been installed. See EXTENDERS directory on CD-ROM or our website at http://www.winbatch.com to obtain desired extenders." Cut ; Cut the selection and put it on the clipboard wEdCut() Copy ; Copy the selection and put it on the clipboard wEdCopy() Paste ; Insert the clipboard contents wEdPaste() _Undo ; Undoes the last editing action wEdUndo() ;Redo ; Redoes the last editing action wEdRedo() _Keyword Lookup \ +{F1} ; Load help topic for word at cursor call(strcat(DirHome(),"wshelp.dll"),"KEYWORDHELP") _Help Files ADSI helpfile="adsi.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Browser helpfile="browser.hlp" helpfile=strcat(Home,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") CPU helpfile="cpu.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Control Manager Extender helpfile="ctrlmgr.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") File Searcher Extender helpfile="Filesrch.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") GPIB Extender helpfile="Gpib.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Html Dialog Extender helpfile="HtmlDlg.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Huge Arithmetic Extender helpfile="HugeMath.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") IPgrab helpfile="ipgrab.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Mapi helpfile="mapi.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Novell Netware Networking helpfile="NetWare Extender.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") NetwareX Extender helpfile="netwarex.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") ODBC Extender helpfile="odbc.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") ODBC_Tut helpfile="odbc_tut.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Parallel helpfile="parallel.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Postie helpfile="postie.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Printer Extender helpfile="printctl.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Process helpfile="process.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") RAS Remote Access helpfile="ras.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Reggie Registry Search helpfile="reggie.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Serial Port Extender helpfile="serial.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") ShellOperations Extender helpfile="shellop.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Webbatch helpfile="webbatch.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") WILX Extender helpfile="WILX.hlp" if FileExist(helpfile)==@False helpfile="WilX Extender.hlp" endif helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Microsoft Networking helpfile="Win32 Network Extender.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Winbatch Studio Help helpfile="winbatch studio.hlp" helpfile=strcat(Home,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") WinBatch helpfile="winbatch.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Windows Interface Language helpfile="Windows Interface language.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") WinInet Internet Extender helpfile="wininet.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") WinMacro Help helpfile="winmacro.hlp" helpfile=strcat(Home,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") WinSock Internet Extender helpfile="winsock.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") Zipper Extender helpfile="zipper.hlp" helpfile=strcat(HomeUpOne,helpfile) Terminate(!FileExist(helpfile),zxct,zxcm) WinHelp(helpfile,"Contents","") _Comment Block Comment block of code ; Inserts semicolons to comment out a block of code a = wGetSelState() if a != 1 Message("Ooop","No block selected") Drop(a) exit endif wEdCut() a=clipget() a=strcat(";",strreplace(a,@crlf,strcat(@crlf,";"))) ClipPut(a) wEdPaste() drop (a,line) UnComment Block of code ; Removes semicolons to re-enable a block of code a = wGetSelState() if a != 1 Message("Ooop","No block selected") Drop(a) exit endif wEdCut() a=clipget() if strsub(a,1,1)==";" then a=Strsub(a,2,-1) a=strreplace(a,strcat(@crlf,";"),@crlf) ClipPut(a) wEdPaste() drop (a,line) ;WILCMDINFOMARK DO NOT REMOVE!!!!!! _Insert WIL Function.... Arithmetic.... Abs( integer ) call(zxc,"WIL Abs") Acos( fp_num ) call(zxc,"WIL Acos") Asin( fp_num ) call(zxc,"WIL Asin") Atan( fp_num ) call(zxc,"WIL Atan") Average( number [ ,number... ] ) call(zxc,"WIL Average") Ceiling( fp_num ) call(zxc,"WIL Ceiling") Char2Num( string ) call(zxc,"WIL Char2Num") Cos( fp_num ) call(zxc,"WIL Cos") Cosh( fp_num ) call(zxc,"WIL Cosh") Decimals( #digits ) call(zxc,"WIL Decimals") Exp( fp_num ) call(zxc,"WIL Exp") Fabs( fp_num ) call(zxc,"WIL Fabs") Floor( fp_num ) call(zxc,"WIL Floor") Int( string/fp_num ) call(zxc,"WIL Int") IsFloat( string ) call(zxc,"WIL IsFloat") IsInt( string ) call(zxc,"WIL IsInt") IsNumber( value ) call(zxc,"WIL IsNumber") Log10( fp_num ) call(zxc,"WIL Log10") Loge( fp_num ) call(zxc,"WIL Loge") Max( number [ ,number... ] ) call(zxc,"WIL Max") Min( number [ ,number... ] ) call(zxc,"WIL Min") Mod wedInsString ("x mod y ; remainder function") wedNewLine () Num2Char( integer ) call(zxc,"WIL Num2Char") Random( integer ) call(zxc,"WIL Random") Sin( fp_num ) call(zxc,"WIL Sin") Sinh(x) call(zxc,"WIL Sinh") Sqrt( fp_num ) call(zxc,"WIL Sqrt") Tan( fp_num ) call(zxc,"WIL Tan") Tanh( fp_num ) call(zxc,"WIL Tanh") TimeAdd( YmdHms, YmdHms ) call(zxc,"WIL TimeAdd") TimeDiff( YmdHms, YmdHms ) call(zxc,"WIL TimeDiff") TimeDiffDays( Ymd[Hms], Ymd[Hms] ) call(zxc,"WIL TimeDiffDays") TimeDiffSecs( YmdHms, YmdHms ) call(zxc,"WIL TimeDiffSecs") TimeJulToYmd(juliandate) call(zxc,"WIL TimeJulToYmd") TimeJulianDay( Ymd[Hms] ) call(zxc,"WIL TimeJulianDay") TimeSubtract(datetime, datetime difference) call(zxc,"WIL TimeSubtract") TimeYmdHms( ) call(zxc,"WIL TimeYmdHms") Arrays.... Arrayize(delimeted list, delimiter) call(zxc,"WIL Arrayize") ArrDimension(dim1, dim2, dim3, dim4, dim5) call(zxc,"WIL ArrDimension") ArrInfo(array, request) call(zxc,"WIL ArrInfo") ArrInitialize(array, value) call(zxc,"WIL ArrInitialize") Binary.... BinaryAlloc( buffsize ) call(zxc,"WIL BinaryAlloc") BinaryAnd(targethandle,targetoffset,sourcehandle,sourceoffset,count) call(zxc,"WIL BinaryAnd") BinaryClipGet(handle, format) call(zxc,"WIL BinaryClipGet") BinaryClipPut(handle, format) call(zxc,"WIL BinaryClipPut") BinaryCompare(handle1, offset1, handle2, offset2, count) call(zxc,"WIL BinaryCompare") BinaryConvert(handle, sourcetype, targettype, codepage, flags) call(zxc,"WIL BinaryConvert") BinaryCopy(handle targ, offset targ, handle src, offset src, bytecount ) call(zxc,"WIL BinaryCopy") BinaryEodGet( handle ) call(zxc,"WIL BinaryEodGet") BinaryEodSet( handle, offset ) call(zxc,"WIL BinaryEodSet") BinaryFree( handle ) call(zxc,"WIL BinaryFree") BinaryHashRec(handle, recsize, key offset, key size, key value ) call(zxc,"WIL BinaryHashRec") BinaryIncr( handle, offset ) call(zxc,"WIL BinaryIncr") BinaryIncr2(handle, offset to increment a 16 bit value) call(zxc,"WIL BinaryIncr2") BinaryIncr4(handle, offset to increment a 32 bit value) call(zxc,"WIL BinaryIncr4") BinaryIncrFlt(handle, offset to increment a 64 bit floating point number) call(zxc,"WIL BinaryIncrFlt") BinaryIndex( handle, offset, search string, direction ) call(zxc,"WIL BinaryIndex") BinaryIndexEx(handle, offset, string, direction, match-case) call(zxc,"WIL BinaryIndexEx") BinaryIndexNC(handle, offset, string, direction) call(zxc,"WIL BinaryIndexNC") BinaryOleType( handle, type,reserved1, reserved2, reserved3) call(zxc,"WIL BinaryOleType") BinaryOr(targethandle,targetoffset,sourcehandle,sourceoffset,count) call(zxc,"WIL BinaryOr") BinaryPeek( handle, offset ) call(zxc,"WIL BinaryPeek") BinaryPeek2(handle, offset to peek a 16 bit value) call(zxc,"WIL BinaryPeek2") BinaryPeek4(handle, offset to peek a 32 bit value) call(zxc,"WIL BinaryPeek4") BinaryPeekFlt(handle, offset to peek a 64 bit floating point number) call(zxc,"WIL BinaryPeekFlt") BinaryPeekStr(handle, offset, maxsize) call(zxc,"WIL BinaryPeekStr") BinaryPoke( handle, offset, 8 bit value ) call(zxc,"WIL BinaryPoke") BinaryPoke2(handle, offset, 16 bit value) call(zxc,"WIL BinaryPoke2") BinaryPoke4(handle, offset, 32 bit value) call(zxc,"WIL BinaryPoke4") BinaryPokeFlt(handle, offset, 64 bit floating point value) call(zxc,"WIL BinaryPokeFlt") BinaryPokeStr(handle, offset, string) call(zxc,"WIL BinaryPokeStr") BinaryRead( handle, filename ) call(zxc,"WIL BinaryRead") BinaryReadEx(handle, binaryoffset, filename, fileoffset, count) call(zxc,"WIL BinaryReadEx") BinaryReplace(bin-handle, search-string, replacement-string, match-case) call(zxc,"WIL BinaryReplace") BinarySort( handle, recsize, key offset, key size, flags ) call(zxc,"WIL BinarySort") BinaryStrCnt( handle, startoffset, endoffset, string ) call(zxc,"WIL BinaryStrCnt") BinaryTagExtr(tag-struct, flags) call(zxc,"WIL BinaryTagExtr") BinaryTagFind(tag-struct) call(zxc,"WIL BinaryTagFind") BinaryTagIndex(tag-struct) call(zxc,"WIL BinaryTagIndex") BinaryTagInit( handle, start-tag, end-tag) call(zxc,"WIL BinaryTagInit") BinaryTagLen(tag-struct) call(zxc,"WIL BinaryTagLen") BinaryTagRepl( tag-struct, new-string ) call(zxc,"WIL BinaryTagRepl") BinaryWrite( handle, filename ) call(zxc,"WIL BinaryWrite") BinaryWriteEx(handle, binaryoffset, filename, fileoffset, count) call(zxc,"WIL BinaryWriteEx") BinaryXlate(targethandle, xlatehandle, flag) call(zxc,"WIL BinaryXlate") BinaryXor(targethandle,targetoffset,sourcehandle,sourceoffset,count) call(zxc,"WIL BinaryXor") Debug( mode ) call(zxc,"WIL Debug") Directory Management.... DirAttrGet( [d:]path ) call(zxc,"WIL DirAttrGet") DirAttrSet(dirlist, settings) call(zxc,"WIL DirAttrSet") DirChange( [d:]path ) call(zxc,"WIL DirChange") DirExist( pathname ) call(zxc,"WIL DirExist") DirGet( ) call(zxc,"WIL DirGet") DirHome( ) call(zxc,"WIL DirHome") DirItemize( dirlist ) call(zxc,"WIL DirItemize") DirMake( [d:]path ) call(zxc,"WIL DirMake") DirRename( [d:]oldpath, [d:]newpath ) call(zxc,"WIL DirRename") DirRemove( dirlist ) call(zxc,"WIL DirRemove") DirSize(dir-name, flags) call(zxc,"WIL DirSize") DirWindows( request# ) call(zxc,"WIL DirWindows") File Management.... FileAppend( sourcelist, destination ) call(zxc,"WIL FileAppend") FileAttrGet( filename ) call(zxc,"WIL FileAttrGet") FileAttrSet( filelist, settings ) call(zxc,"WIL FileAttrSet") FileClose( filehandle ) call(zxc,"WIL FileClose") FileCompare( filename1, filename2 ) call(zxc,"WIL FileCompare") FileCopy( sourcelist, filename/mask, mode ) call(zxc,"WIL FileCopy") FileCopyAttr(source-list, destination, warning, attributes) call(zxc,"WIL FileCopyAttr") FileCreateTemp( prefix ) call(zxc,"WIL FileCreateTemp") FileDelete( filelist ) call(zxc,"WIL FileDelete") FileExist( filename ) call(zxc,"WIL FileExist") FileExtension( filename ) call(zxc,"WIL FileExtension") FileFullName( partial filename ) call(zxc,"WIL FileFullName") FileItemize( filelist ) call(zxc,"WIL FileItemize") FileItemPath(file-list) call(zxc,"WIL FileItemPath") FileLocate( filename ) call(zxc,"WIL FileLocate") FileMapName( filename, mappingdata ) call(zxc,"WIL FileMapName") FileMove( sourcelist, destination, warning ) call(zxc,"WIL FileMove") FileMoveAttr(source-list, destination, warning, attributes) call(zxc,"WIL FileMoveAttr") FileNameLong filename) call(zxc,"WIL FileNameLong") FileNameShort(filename) call(zxc,"WIL FileNameShort") FileOpen( filename, mode ) call(zxc,"WIL FileOpen") FilePath( filename ) call(zxc,"WIL FilePath") FileRead( filehandle ) call(zxc,"WIL FileRead") FileRename( sourcelist, destination ) call(zxc,"WIL FileRename") FileRoot( filename ) call(zxc,"WIL FileRoot") FileSize( filelist ) call(zxc,"WIL FileSize") FileSizeEx(file-list) call(zxc,"WIL FileSizeEx") FileTimeCode( filename ) call(zxc,"WIL FileTimeCode") FileTimeGet( filename ) call(zxc,"WIL FileTimeGet") FileTimeGetEx(filename, timefield) call(zxc,"WIL FileTimeGetEx") FileTimeSet( list, ymdhms ) call(zxc,"WIL FileTimeSet") FileTimeSetEx(filelist, YmdHms, timefield) call(zxc,"WIL FileTimeSetEx") FileTimeTouch( filelist ) call(zxc,"WIL FileTimeTouch") FileVerInfo(filename, languagekey, resourcestring) call(zxc,"WIL FileVerInfo") FileWrite( filehandle, outputdata ) call(zxc,"WIL FileWrite") FileYmdHms( filename ) call(zxc,"WIL FileYmdHms") Other file functions.... AskDirectory(prompt, browse-root, start-dir, confirm-prompt, flags) call(zxc,"WIL AskDirectory") AskFileText( title, filename, sort mode, select mode ) call(zxc,"WIL AskFileText") AskFileName( title, directory, filetypes, default filename, flag ) call(zxc,"WIL AskFileName") BinaryRead( handle, filename ) call(zxc,"WIL BinaryRead") BinaryReadEx(handle, binaryoffset, filename, fileoffset, count) call(zxc,"WIL BinaryReadEx") BinaryWrite( handle, filename ) call(zxc,"WIL BinaryWrite") BinaryWriteEx(handle, binaryoffset, filename, fileoffset, count) call(zxc,"WIL BinaryWriteEx") INI Functions.... IniDelete( section, keyname ) call(zxc,"WIL IniDelete") IniDeletePvt( section, keyname, filename ) call(zxc,"WIL IniDeletePvt") IniItemize( section ) call(zxc,"WIL IniItemize") IniItemizePvt( section, filename ) call(zxc,"WIL IniItemizePvt") IniRead( section, keyname, default ) call(zxc,"WIL IniRead") IniReadPvt( section, keyname, default, filename ) call(zxc,"WIL IniReadPvt") IniWrite( section, keyname, data ) call(zxc,"WIL IniWrite") IniWritePvt( section, keyname, data, filename ) call(zxc,"WIL IniWritePvt") Inter-program.... AddExtender( dllfilename ) call(zxc,"WIL AddExtender") Clipboard.... ClipAppend( string ) call(zxc,"WIL ClipAppend") ClipGet( ) call(zxc,"WIL ClipGet") ClipGetEx( format ) call(zxc,"WIL ClipGetEx") ClipHasFormat( format ) call(zxc,"WIL ClipHasFormat") ClipPut( string ) call(zxc,"WIL ClipPut") Snapshot( request# ) call(zxc,"WIL Snapshot") DDE.... DDEExecute( channel, [commandstring] ) call(zxc,"WIL DDEExecute") DDEInitiate( app name, topic name ) call(zxc,"WIL DDEInitiate") DDEPoke( channel, item name, item value ) call(zxc,"WIL DDEPoke") DDERequest( channel, item name ) call(zxc,"WIL DDERequest") DDETerminate( channel ) call(zxc,"WIL DDETerminate") DDETimeout( value in seconds ) call(zxc,"WIL DDETimeout") DLLCall DllCall( dllfilename/dllhandle, returntype:entrypoint [ ,paramtype:param... ]) call(zxc,"WIL DllCall") DllFree( dllhandle ) call(zxc,"WIL DllFree") DllHinst( partialwinname ) call(zxc,"WIL DllHinst") DllHwnd( partialwinname ) call(zxc,"WIL DllHwnd") DllLoad( dllname ) call(zxc,"WIL DllLoad") Environment.... Environment( envvariable ) call(zxc,"WIL Environment") EnvironSet( envvarname, newvalue ) call(zxc,"WIL EnvironSet") EnvItemize( ) call(zxc,"WIL EnvItemize") ExeTypeInfo( exefilename ) call(zxc,"WIL ExeTypeInfo") RegApp(programname, path) call(zxc,"WIL RegApp") RunEnviron( program name, parameters, displaymode, waitflag ) call(zxc,"WIL RunEnviron") Sending keys.... SendKey( string ) call(zxc,"WIL SendKey") SendKeysChild( partialparentwindowname, partialchildwindowname, string ) call(zxc,"WIL SendKeysChild") SendKeysTo( parentwindowname, string ) call(zxc,"WIL SendKeysTo") SendMenusTo( partialparentwindowname, menuname ) call(zxc,"WIL SendMenusTo") Multimedia.... Beep wedInsString ("Beep") wedNewLine () DllCall( dllfilename/dllhandle, returntype:entrypoint [ ,paramtype:param... ]) call(zxc,"WIL DllCall") DllFree( dllhandle ) call(zxc,"WIL DllFree") DllHinst( partialwinname ) call(zxc,"WIL DllHinst") DllHwnd( partialwinname ) call(zxc,"WIL DllHwnd") DllLoad( dllname ) call(zxc,"WIL DllLoad") PlayMedia( commandstring ) call(zxc,"WIL PlayMedia") PlayMidi( filename, mode ) call(zxc,"WIL PlayMidi") PlayWaveForm( filename, mode ) call(zxc,"WIL PlayWaveForm") Sounds( request# ) call(zxc,"WIL Sounds") OLE.... ObjectAccess( objectname) call(zxc,"WIL ObjectAccess") ObjectClose( objecthandle ) call(zxc,"WIL ObjectClose") ObjectOpen( objectname ) call(zxc,"WIL ObjectOpen") Process Control.... Break wedInsString ("Break") wedNewLine () Call( wbt-name, parameters) wedInsString ("Call( wbt-name, parameters)") wedNewLine () Continue wedInsString ("Continue") wedNewLine () EndSession( ) call(zxc,"WIL EndSession") ErrorMode( mode ) call(zxc,"WIL ErrorMode") Exclusive(mode) call(zxc,"WIL Exclusive") Execute statement wedInsString ("Execute statement") wedNewLine () Exit wedInsString ("Exit") wedNewLine () For varname = initial value to final value [ by increment ] a=wGetColNo () wedInsString ("For varname = initial value to final value [ by increment ]") wedNewLine () wEdGoToCol (a) wedInsString (" ;statements") wedNewLine () wEdGoToCol (a) wedInsString ("Next") wedNewLine () GoSub wedInsString ("GoSub label") wedNewLine () Goto label wedInsString ("Goto label") wedNewLine () IfàElseàEndif expression a=wGetColNo () wedInsString ("If expression") wedNewLine () wedInsString (" ;true code") wedNewLine () wEdGoToCol (a) wedInsString ("else") wedNewLine () wedInsString (" ;false code") wedNewLine () wEdGoToCol (a) wedInsString ("endif") wedNewLine () LastError( ) call(zxc,"WILSpecial LastError") Select varname a=wGetColNo () wedInsString ("Select varname") wedNewLine () wEdGoToCol (a) wedInsString (" case varname") wedNewLine () wEdGoToCol (a) wedInsString (" ;statements") wedNewLine () wEdGoToCol (a) wedInsString (" break") wedNewLine () wEdGoToCol (a) wedInsString (" case varname") wedNewLine () wEdGoToCol (a) wedInsString (" ;statements") wedNewLine () wEdGoToCol (a) wedInsString (" break") wedNewLine () wEdGoToCol (a) wedInsString ("EndSelect") wedNewLine () Switch varname a=wGetColNo () wedInsString ("Switch varname") wedNewLine () wEdGoToCol (a) wedInsString (" case varname") wedNewLine () wEdGoToCol (a) wedInsString (" ;statements") wedNewLine () wEdGoToCol (a) wedInsString (" break") wedNewLine () wEdGoToCol (a) wedInsString (" case varname") wedNewLine () wEdGoToCol (a) wedInsString (" ;statements") wedNewLine () wEdGoToCol (a) wedInsString (" break") wedNewLine () wEdGoToCol (a) wedInsString ("EndSwitch") wedNewLine () Version( ) call(zxc,"WIL Version") VersionDLL( ) call(zxc,"WIL VersionDLL") While expression wedInsString ("While expression") wedNewLine () wedNewLine () wedInsString ("EndWhile") #DefineFunction...#EndFunction a=wGetColNo () wedInsString ("#DefineFunction functname( [param1 [,param2...[,param16]]])") wedNewLine () wedNewLine () wedInsString (" function code") wedNewLine () wedNewLine () wEdGoToCol (a) wedInsString (" [ RETURN or RETURN (expression) ]") wedNewLine () wedNewLine () wEdGoToCol (a) wedInsString (" #EndFunction") wedNewLine () #|nclude "filename" a=wGetColNo () wedInsString (`#Include "file name"`) wedNewLine () Program management.... AppExist(programname ) call(zxc,"WIL AppExist") AppWaitClose(programname ) call(zxc,"WIL AppWaitClose") Execute statement wedInsString ("Execute statement") wedNewLine () Print( data file, directory, display mode, waitflag ) call(zxc,"WIL Print") RegApp(programname, path) call(zxc,"WIL RegApp") Run( programname, parameters ) call(zxc,"WIL Run") RunEnviron( program name, parameters, displaymode, waitflag ) call(zxc,"WIL RunEnviron") RunExit( programname, parameters ) call(zxc,"WIL RunExit") RunHide( programname, parameters ) call(zxc,"WIL RunHide") RunHideWait( programname, parameters ) call(zxc,"WIL RunHideWait") RunIcon( programname, parameters ) call(zxc,"WIL RunIcon") RunIconWait( programname, parameters ) call(zxc,"WIL RunIconWait") RunShell( programname, params, directory, displaymode, waitflag ) call(zxc,"WIL RunShell") RunWait( programname, parameters ) call(zxc,"WIL RunWait") RunZoom( programname, parameters ) call(zxc,"WIL RunZoom") RunZoomWait( programname, parameters) call(zxc,"WIL RunZoomWait") ShellExecute(programname, params, directory, display mode, operation) call(zxc,"WIL ShellExecute") Registry.... RegApp(programname, path) call(zxc,"WIL RegApp") RegCloseKey( keyhandle ) call(zxc,"WIL RegCloseKey") RegConnect(computername, handle) call(zxc,"WIL RegConnect") RegCreateKey( keyhandle, subkeystring ) call(zxc,"WIL RegCreateKey") RegDeleteKey( keyhandle, subkeystring ) call(zxc,"WIL RegDeleteKey") RegDelValue(handle, subkeystring) call(zxc,"WIL RegDelValue") RegEntryType(handle, subkeystring) call(zxc,"WIL RegEntryType") RegExistKey(handle, subkeystring) call(zxc,"WIL RegExistKey") RegExistValue(handle, subkeystring) call(zxc,"WIL RegExistValue") RegLoadHive(handle, subkey, filename) call(zxc,"WIL RegLoadHive") RegOpenKey( keyhandle, subkeystring ) call(zxc,"WIL RegOpenKey") RegOpenKeyEx( handle, subkey-string, mode, reserved-1, reserved-2) call(zxc,"WIL RegOpenKeyEx") RegQueryBin(handle, subkeystring) call(zxc,"WIL RegQueryBin") RegQueryDword(handle, subkeystring) call(zxc,"WIL RegQueryDword") RegQueryEx(handle, subkeystring, delimiter, type) call(zxc,"WIL RegQueryEx") RegQueryExpSz(handle, subkeystring) call(zxc,"WIL RegQueryExpSz") RegQueryItem(handle, subkeystring) call(zxc,"WIL RegQueryItem") RegQueryKey( keyhandle, index ) call(zxc,"WIL RegQueryKey") RegQueryKeys( handle ) call(zxc,"WIL RegQueryKeys") RegQueryMulSz(handle, subkeystring, delimiter) call(zxc,"WIL RegQueryMulSz") RegQueryStr(handle, subkey) call(zxc,"WIL RegQueryStr") RegQueryValue( keyhandle, keyname ) call(zxc,"WIL RegQueryValue") RegSetBin(handle, subkeystring, value) call(zxc,"WIL RegSetBin") RegSetDword(handle, subkeystring, value) call(zxc,"WIL RegSetDword") RegSetEx(handle, subkeystring, value, delimiter, type) call(zxc,"WIL RegSetEx") RegSetExpSz(handle, subkeystring, value) call(zxc,"WIL RegSetExpSz") RegSetMulSz(handle, subkeystring, value, delimiter) call(zxc,"WIL RegSetMulSz") RegSetValue( keyhandle, subkeystring, value ) call(zxc,"WIL RegSetValue") RegUnloadHive(handle, subkey) call(zxc,"WIL RegUnloadHive") Shortcut functions.... ShortcutDir(name) {*Explorer} call(zxc,"WIL ShortcutDir") ShortcutEdit(linkname, target, params, startdir, showode) {*Explorer} call(zxc,"WIL ShortcutEdit") ShortcutExtra(linkname, description, hotkey, iconfile, iconindex) {*Explorer} call(zxc,"WIL ShortcutExtra") ShortcutInfo(linkname) {*Explorer} call(zxc,"WIL ShortcutInfo") ShortcutMake(linkname, target, params, startdir, showmode) {*Explorer} call(zxc,"WIL ShortcutMake") String Handling.... IsDefined(var) call(zxc,"WIL IsDefined") IsFloat( string ) call(zxc,"WIL IsFloat") IsInt( string ) call(zxc,"WIL IsInt") IsNumber( value ) call(zxc,"WIL IsNumber") List items.... ItemCount( list, delimiter ) call(zxc,"WIL ItemCount") ItemExtract( index, list, delimiter ) call(zxc,"WIL ItemExtract") ItemInsert( item, index, list, delimiter ) call(zxc,"WIL ItemInsert") ItemLocate( item, list, delimiter ) call(zxc,"WIL ItemLocate") ItemRemove( index, list, delimiter ) call(zxc,"WIL ItemRemove") ItemReplace(item, index, list, delimiter) call(zxc,"WIL ItemReplace") ItemSort( list, delimiter ) call(zxc,"WIL ItemSort") Num2Char( integer ) call(zxc,"WIL Num2Char") ParseData( string ) call(zxc,"WIL ParseData") StrCat( string [ ,string ] ) call(zxc,"WIL StrCat") StrCharCount( string ) call(zxc,"WIL StrCharCount") StrClean( source-string, characters, replacement, match-case, mode) call(zxc,"WIL StrClean") StrCmp( string1, string2 ) call(zxc,"WIL StrCmp") StrFill( filler, length ) call(zxc,"WIL StrFill") StrFix( basestring, padstring, length ) call(zxc,"WIL StrFix") StrFixChars( basestring, padstring, length ) call(zxc,"WIL StrFixChars") StrFixCharsL( basestring, padstring, length ) call(zxc,"WIL StrFixCharsL") StrFixLeft( basestring, padstring, length ) call(zxc,"WIL StrFixLeft") StriCmp(string1, string2) call(zxc,"WIL StriCmp") StrIndex( basestring, substring, start, direction ) call(zxc,"WIL StrIndex") StrIndexNc( basestring, substring, start, direction ) call(zxc,"WIL StrIndexNc") StrIndexWild(string, pattern, start) call(zxc,"WIL StrIndexWild") StrLen( string ) call(zxc,"WIL StrLen") StrLenWild(string, pattern, start) call(zxc,"WIL StrLenWild") StrLower( string ) call(zxc,"WIL StrLower") StrReplace( string, old, new ) call(zxc,"WIL StrReplace") StrScan( string, delimiters, startpos, direction ) call(zxc,"WIL StrScan") StrSub( string, startpos, length ) call(zxc,"WIL StrSub") StrSubWild(string, pattern, start) call(zxc,"WIL StrSubWild") StrTrim( string ) call(zxc,"WIL StrTrim") StrUpper( string ) call(zxc,"WIL StrUpper") VarType(varname) call(zxc,"WIL VarType") System Management.... Disk Drive Management.... DiskExist( drive letter ) call(zxc,"WIL DiskExist") DiskFree( drivelist ) call(zxc,"WIL DiskFree") DiskInfo( request# ) call(zxc,"WIL DiskInfo") DiskScan( request# ) call(zxc,"WIL DiskScan") DiskSize( request# ) call(zxc,"WIL DiskSize") DiskVolInfo(root-path, request#) call(zxc,"WIL DiskVolInfo") LogDisk( drive letter ) call(zxc,"WIL LogDisk") NetInfo( request code ) call(zxc,"WIL NetInfo") Environment.... Environment( envvariable ) call(zxc,"WIL Environment") EnvironSet( envvarname, newvalue ) call(zxc,"WIL EnvironSet") EnvItemize( ) call(zxc,"WIL EnvItemize") ExeTypeInfo( exefilename ) call(zxc,"WIL ExeTypeInfo") RegApp(programname, path) call(zxc,"WIL RegApp") RunEnviron( program name, parameters, displaymode, waitflag ) call(zxc,"WIL RunEnviron") IntControl( request#, p1, p2, p3, p4 ) call(zxc,"WIL IntControl") Other System functions.... About( ) call(zxc,"WIL About") AddExtender( dllfilename ) call(zxc,"WIL AddExtender") AppExist(programname ) call(zxc,"WIL AppExist") AppWaitClose(programname ) call(zxc,"WIL AppWaitClose") Beep wedInsString ("Beep") wedNewLine () Debug( mode ) call(zxc,"WIL Debug") DebugData( string, string ) call(zxc,"WIL DebugData") DebugTrace( mode, filename) call(zxc,"WIL DebugTrace") DOSVersion( level ) call(zxc,"WIL DOSVersion") Drop( varname [,varname...] ) call(zxc,"WIL Drop") DropWild("varnam1* [,varnam2*...] ") call(zxc,"WIL DropWild") EndSession( ) call(zxc,"WIL EndSession") ErrorMode( mode ) call(zxc,"WIL ErrorMode") Exclusive(mode) call(zxc,"WIL Exclusive") ExeTypeInfo( exefilename ) call(zxc,"WIL ExeTypeInfo") IconReplace(filename, iconfilename) call(zxc,"WIL IconReplace") IgnoreInput( mode ) call(zxc,"WIL IgnoreInput") InstallFile(filename, targname, default-targdir, delete-old, flags) call(zxc,"WIL InstallFile") IntControl( request#, p1, p2, p3, p4 ) call(zxc,"WIL IntControl") IsLicensed( ) call(zxc,"WIL IsLicensed") Version( ) call(zxc,"WIL Version") VersionDLL( ) call(zxc,"WIL VersionDLL") WaitForKey( key, key, key, key, key ) call(zxc,"WIL WaitForKey") WinMetrics( request# ) call(zxc,"WIL WinMetrics") WinParmGet( request# ) call(zxc,"WIL WinParmGet") WinParmSet( request#, newvalue, inicontrol ) call(zxc,"WIL WinParmSet") WinResources( request#) call(zxc,"WIL WinResources") WinSysInfo( ) call(zxc,"WIL WinSysInfo") WinVersion( level ) call(zxc,"WIL WinVersion") Registry.... RegApp(programname, path) call(zxc,"WIL RegApp") RegCloseKey( keyhandle ) call(zxc,"WIL RegCloseKey") RegConnect(computername, handle) call(zxc,"WIL RegConnect") RegCreateKey( keyhandle, subkeystring ) call(zxc,"WIL RegCreateKey") RegDeleteKey( keyhandle, subkeystring ) call(zxc,"WIL RegDeleteKey") RegDelValue(handle, subkeystring) call(zxc,"WIL RegDelValue") RegEntryType(handle, subkeystring) call(zxc,"WIL RegEntryType") RegExistKey(handle, subkeystring) call(zxc,"WIL RegExistKey") RegExistValue(handle, subkeystring) call(zxc,"WIL RegExistValue") RegLoadHive(handle, subkey, filename) call(zxc,"WIL RegLoadHive") RegOpenKey( keyhandle, subkeystring ) call(zxc,"WIL RegOpenKey") RegOpenKeyEx( handle, subkey-string, mode, reserved-1, reserved-2) call(zxc,"WIL RegOpenKeyEx") RegQueryBin(handle, subkeystring) call(zxc,"WIL RegQueryBin") RegQueryDword(handle, subkeystring) call(zxc,"WIL RegQueryDword") RegQueryEx(handle, subkeystring, delimiter, type) call(zxc,"WIL RegQueryEx") RegQueryExpSz(handle, subkeystring) call(zxc,"WIL RegQueryExpSz") RegQueryItem(handle, subkeystring) call(zxc,"WIL RegQueryItem") RegQueryKey( keyhandle, index ) call(zxc,"WIL RegQueryKey") RegQueryKeys( handle ) call(zxc,"WIL RegQueryKeys") RegQueryMulSz(handle, subkeystring, delimiter) call(zxc,"WIL RegQueryMulSz") RegQueryStr( handle, subkey ) call(zxc,"WIL RegQueryStr") RegQueryValue( keyhandle, keyname ) call(zxc,"WIL RegQueryValue") RegSetBin(handle, subkeystring, value) call(zxc,"WIL RegSetBin") RegSetDword(handle, subkeystring, value) call(zxc,"WIL RegSetDword") RegSetEx(handle, subkeystring, value, delimiter, type) call(zxc,"WIL RegSetEx") RegSetExpSz(handle, subkeystring, value) call(zxc,"WIL RegSetExpSz") RegSetMulSz(handle, subkeystring, value, delimiter) call(zxc,"WIL RegSetMulSz") RegSetValue( keyhandle, subkeystring, value ) call(zxc,"WIL RegSetValue") RegUnloadHive(handle, subkey) call(zxc,"WIL RegUnloadHive") Time Scheduling.... FileTimeCode( filename ) call(zxc,"WIL FileTimeCode") FileTimeGet( filename ) call(zxc,"WIL FileTimeGet") FileTimeGetEx(filename, timefield) call(zxc,"WIL FileTimeGetEx") FileTimeSet( list, ymdhms ) call(zxc,"WIL FileTimeSet") FileTimeSetEx(filelist, YmdHms, timefield) call(zxc,"WIL FileTimeSetEx") GetExactTime( ) call(zxc,"WIL GetExactTime") GetTickCount( ) call(zxc,"WIL GetTickCount") TimeAdd( YmdHms, YmdHms ) call(zxc,"WIL TimeAdd") TimeDate( ) call(zxc,"WIL TimeDate") TimeDelay( seconds ) call(zxc,"WIL TimeDelay") TimeDiffDays( Ymd[Hms], Ymd[Hms] ) call(zxc,"WIL TimeDiffDays") TimeDiffSecs( YmdHms, YmdHms ) call(zxc,"WIL TimeDiffSecs") TimeJulianDay( Ymd[Hms] ) call(zxc,"WIL TimeJulianDay") TimeJulToYmd(juliandate) call(zxc,"WIL TimeJulToYmd") TimeSubtract(datetime, datetime difference) call(zxc,"WIL TimeSubtract") TimeYmdHms( ) call(zxc,"WIL TimeYmdHms") TimeWait( YmdHms ) call(zxc,"WIL TimeWait") Yield call(zxc,"WIL Yield") Yields(count) call(zxc,"WIL Yields") User Interface(Display).... About( ) call(zxc,"WIL About") AskDirectory(prompt, browse-root, start-dir, confirm-prompt, flags) call(zxc,"WIL AskDirectory") AskFileName( title, directory, filetypes, default filename, flag ) call(zxc,"WIL AskFileName") AskFileText( title, filename, sort mode, select mode ) call(zxc,"WIL AskFileText") AskItemList( title, list, delimiter, sort mode, select mode ) call(zxc,"WIL AskItemlist") AskLine( title, prompt, default answer ) call(zxc,"WIL AskLine") AskPassword( title, prompt ) call(zxc,"WIL AskPassword") AskTextBox( title, prompt, default, flags, reserved) call(zxc,"WIL AskTextBox") AskYesNo( title, question ) call(zxc,"WIL AskYesNo") ButtonNames(OK-name, Cancel-name) call(zxc,"WIL ButtonNames") Dialog( dialogname ) call(zxc,"WIL Dialog") Display( seconds, title, text ) call(zxc,"WIL Display") KeyToggleSet( @key, value ) call(zxc,"WIL KeyToggleSet") KeyToggleGet( @key ) call(zxc,"WIL KeyToggleGet") IsKeyDown(keycodes) call(zxc,"WIL IsKeyDown") Menu handling.... IsMenuChecked( menuname ) call(zxc,"WIL IsMenuChecked") IsMenuEnabled( menuname ) call(zxc,"WIL IsMenuEnabled") MenuChange( menuname, flags ) call(zxc,"WIL MenuChange") Message( title, text ) call(zxc,"WIL Message") Mouse.... MouseClick(clicktype, modifiers) call(zxc,"WIL MouseClick") MouseClickBtn(parentwindowname, childwindowname, buttontext) call(zxc,"WIL MouseClickBtn") MouseCoords(parentwin, childwin) call(zxc,"WIL MouseCoords") MouseInfo( request# ) call(zxc,"WIL MouseInfo") MouseMove(X, Y, parentwindowname, childwindowname) call(zxc,"WIL MouseMove") MousePlay(X-Y-coordinates, parent-window, child-window, buttons, delay) call(zxc,"WIL MousePlay") MsgTextGet(window-name) call(zxc,"WIL MsgTextGet") Pause( title, prompt ) call(zxc,"WIL Pause") WinBatch Functions.... BoxButtonDraw(box ID, button ID, text, coordinates) call(zxc,"WIL BoxButtonDraw") BoxButtonKill(box ID, button ID) call(zxc,"WIL BoxButtonKill") BoxButtonStat(box ID, button ID) call(zxc,"WIL BoxButtonStat") BoxButtonWait() call(zxc,"WIL BoxButtonWait") BoxCaption(box ID, caption) call(zxc,"WIL BoxCaption") BoxColor(box ID, color, wash color) call(zxc,"WIL BoxColor") BoxDataClear(box ID, update flag) call(zxc,"WIL BoxDataClear") BoxDataTag(box ID, tag) call(zxc,"WIL BoxDataTag") BoxDestroy(box ID) call(zxc,"WIL BoxDestroy") BoxDrawCircle(box ID, coordinates, style) call(zxc,"WIL BoxDrawCircle") BoxDrawLine(box ID, coordinates) call(zxc,"WIL BoxDrawLine") BoxDrawRect(box ID, coordinates, style) call(zxc,"WIL BoxDrawRect") BoxDrawText(box ID, coordinates, text, erase flag, alignment) call(zxc,"WIL BoxDrawText") BoxesUp(coordinates, show mode) call(zxc,"WIL BoxesUp") BoxMapMode(box ID, map mode) call(zxc,"WIL BoxMapMode") BoxNew(box ID, coordinates, style) call(zxc,"WIL BoxNew") BoxOpen(title, text) call(zxc,"WIL BoxOpen") BoxPen(box ID, color, width) call(zxc,"WIL BoxPen") BoxShut( ) call(zxc,"WIL BoxShut") BoxText("text") call(zxc,"WIL BoxText") BoxTextColor(box ID, color) call(zxc,"WIL BoxTextColor") BoxTextFont(box ID, name, size, style, pitch & family) call(zxc,"WIL BoxTextFont") BoxTitle("title") call(zxc,"WIL BoxTitle") BoxUpdates(box ID, update flag) call(zxc,"WIL BoxUpdates") Reload() call(zxc,"WIL Reload") Rtstatus() call(zxc,"WIL Rtstatus") Window Management.... DllHwnd( partialwinname ) call(zxc,"WIL DllHwnd") FindWindow(window class name) call(zxc,"WIL FindWindow") WallPaper( bmpfilename, tilemode ) call(zxc,"WIL WallPaper") WinActivate( partialwinname ) call(zxc,"WIL WinActivate") WinActiveChild( partialparentwindowname, partialchildwindowname ) call(zxc,"WIL WinActiveChild") WinClose( partialwinname ) call(zxc,"WIL WinClose") WinCloseNot( partialwinname [ ,partialwinname ] ) call(zxc,"WIL WinCloseNot") WinExeName( partialwinname ) call(zxc,"WIL WinExeName") WinExist( partialwinname ) call(zxc,"WIL WinExist") WinExistChild( partialparentwindowname, partialchildwindowname ) call(zxc,"WIL WinExistChild") WinGetActive( ) call(zxc,"WIL WinGetActive") WinHelp( helpfile, function, keyword ) call(zxc,"WIL WinHelp") WinHide( partialwinname ) call(zxc,"WIL WinHide") WinIdGet(partialwinname) call(zxc,"WIL WinIdGet") WinIsDOS( partialwinname ) call(zxc,"WIL WinIsDos") WinMetrics( request# ) call(zxc,"WIL WinMetrics") WinName( ) call(zxc,"WIL WinName") WinParmGet( request# ) call(zxc,"WIL WinParmGet") WinParmSet( request#, newvalue, inicontrol ) call(zxc,"WIL WinParmSet") WinResources( request#) call(zxc,"WIL WinResources") WinShow( partialwinname ) call(zxc,"WIL WinShow") WinState( partialwinname ) call(zxc,"WIL WinState") WinSysInfo( ) call(zxc,"WIL WinSysInfo") WinTitle( oldpartialwinname, newwinname ) call(zxc,"WIL WinTitle") WinVersion( level ) call(zxc,"WIL WinVersion") WinWaitChild(partial parent winname, partial child winname, timeout) call(zxc,"WIL WinWaitChild") WinWaitClose( partialwinname ) call(zxc,"WIL WinWaitClose") WinWaitExist(partialwinname, timeout) call(zxc,"WIL WinWaitExist") Window Placement.... WinArrange( style ) call(zxc,"WIL WinArrange") WinIconize( partialwinname ) call(zxc,"WIL WinIconize") WinPlace( xulc, yulc, xbrc, ybrc, partialwinname ) call(zxc,"WIL WinPlace") WinPlaceGet( wintype partialwinname ) call(zxc,"WIL WinPlaceGet") WinPlaceSet( wintype, partialwinname, position string ) call(zxc,"WIL WinPlaceSet") WinPosition( partialwinname ) call(zxc,"WIL WinPosition") WinZoom( partialwinname ) call(zxc,"WIL WinZoom") Itemize Windows.... WinItemChild( partialparentwindowname ) call(zxc,"WIL WinItemChild") WinItemize( ) call(zxc,"WIL WinItemize") WinItemizeEx(partialwinname, multiple, hidden) call(zxc,"WIL WinItemizeEx") WinItemNameId( ) call(zxc,"WIL WinItemNameId") WinItemProcId(ProcID, formattype ) call(zxc,"WIL WinItemProcId") ;ENDWILCMDINFOMARK DO NOT REMOVE!!!!!! _More... ; Additional menu choices Colorize UDF Function ; Tells Studio to colorize a user defined function HelpWord = wEdGetWord() ; Get Selected word IF HelpWord=="" wLeft() ; End of word? Try one position to the left. Helpword = wEdGetWord() ; Select possible word & reset cursor. wRight() ; Saves time-wasting manual cursor manipulation. endif IF HelpWord=="" Message("No UDF Found","Must hilight a UDF function name to colorize it.") exit endif ;Does color already exist? b=Strcat(DirHome(),"WIL.CLR") a=IniReadPvt("COLORS","UDF","XXX",b) if a=="XXX" IniWritePvt("COLORS","UDF","0,128,255",b) endif a=IniReadPvt("KEYWORDS",HelpWord,"XYZZY123XXYZ",b) if a !="XYZZY123XXYZ" Message(Helpword,"Already colorized") exit endif IniWritePvt("KEYWORDS",Helpword,"UDF",b) Toggle Bookmark ; Toggles a bookmark at the current line wSetBookmark() _Copy current line ; Copy the current line or selection to the clipboard wEdHome() wEdStartSel() wEdDownLine() wEdEndSel() wEdCopy() Cut current line ; Cut the current line or selection to the clipboard wEdHome() wEdStartSel() wEdDownLine() wEdEndSel() wEdCut() Open highlighted file \ ^F ; Open selected file name = wEdGetWord() length = strlen(name) if length==0 then goto DONE b = FileLocate(name) if b == "" then Message("Open selected file","Cannot find %name%") if b == "" then goto DONE wFileOpen(b) :DONE drop(name,length,b) _Insert Block ; Insert a template into the document If-Else ; Insert an 'if-else' template wEdNewLine() wEdUpLine() ; First determine if it is C or WIL ;debug(1) filext = strupper(FileExtension(wGetFileName())) if filext=="WBT" || filext=="WIL" || filext=="MNU" || filext=="WEB" ; Its WIL wEdInsString("if xx == yy") wEdNewLine() wEdNewLine() wEdInsString("else") wEdNewLine() wEdNewLine() wEdInsString("endif") wEdNewLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() else ;assume C wEdInsString("if ( xx == yy )") wEdNewLine() wEdInsString(" {") wEdNewLine() wEdNewLine() wEdInsString("}") wEdNewLine() wEdLeft() wEdLeft() wEdLeft() wEdInsString("else") wEdNewLine() wEdInsString(" {") wEdNewLine() wEdNewLine() wEdInsString("}") wEdNewLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() endif drop(s,filext) Switch ; Insert a 'switch' template wEdNewLine() wEdUpLine() filext = strupper(FileExtension(wGetFileName())) if filext=="WBT" || filext=="WIL" || filext=="MNU" || filext=="WEB" ; Its WIL wEdNewLine() wEdUpLine() wEdInsString("switch switchvar") wEdNewLine() wEdInsString(" case 1") wEdNewLine() wEdInsString(" break") wEdNewLine() wEdNewLine() wEdLeft() wEdLeft() wEdLeft() wEdInsString("case 2") wEdNewLine() wEdInsString(" break") wEdNewLine() wEdNewLine() wEdLeft() wEdLeft() wEdLeft() wEdInsString("case 3") wEdNewLine() wEdInsString(" break") wEdNewLine() wEdNewLine() wEdLeft() wEdLeft() wEdLeft() wEdLeft() wEdLeft() wEdLeft() wEdInsString("endswitch") wEdNewLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() else ;assume C wEdInsString("switch (swvar)") wEdNewLine() wEdInsString(" {") wEdNewLine() wEdInsString("case 1:") wEdNewLine() wEdInsString(" break;") wEdNewLine() wEdNewLine() wEdLeft() wEdLeft() wEdLeft() wEdInsString("case 2:") wEdNewLine() wEdInsString(" break;") wEdNewLine() wEdNewLine() wEdLeft() wEdLeft() wEdLeft() wEdInsString("case 3:") wEdNewLine() wEdInsString(" break;") wEdNewLine() wEdNewLine() wEdLeft() wEdLeft() wEdLeft() wEdLeft() wEdLeft() wEdLeft() wEdInsString(" }") wEdNewLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() wEdUpLine() endif drop(s,filext) While ; Insert a 'while' template wEdNewLine() wEdUpLine() filext = strupper(FileExtension(wGetFileName())) if filext=="WBT" || filext=="WIL" || filext=="MNU" || filext=="WEB" ; Its WIL wEdInsString("while xx == yy") wEdNewLine() wEdNewLine() wEdInsString("endwhile") wEdNewLine() wEdUpLine() wEdUpLine() else ;assume C wEdInsString("while (xx == yy)") wEdNewLine() wEdInsString(" {") wEdNewLine() wEdNewLine() wEdInsString("}") wEdNewLine() wEdUpLine() wEdUpLine() endif drop(s,filext) Comment block \ +^B ; Insert a comment block filext = strupper(FileExtension(wGetFileName())) if filext=="WBT" || filext=="WIL" || filext=="MNU" || filext=="WEB" then cmt=";" ; Its WIL else cmt="//" s="" ;if wGetSelState() then s=wEdGetWord() clipput ("%cmt%***************************************************************************%CR%") clipappend("%cmt%** %s%%CR%") clipappend("%cmt%** %CR%") clipappend("%cmt%** %CR%") clipappend ("%cmt%***************************************************************************%CR%") wEDgotocol(1) ;insert above current line wedstartsel() wedendsel() wednewline() wEDgotocol(1) ;insert above current line Wedpaste() weddownline() weddownline() wedend() drop(s,filext,cmt) ; ;Builds a DETAILED comment block from the label under the cursor. ; Comment SUPER block \ ^!B ; Insert a detailed comment block filext = strupper(FileExtension(wGetFileName())) if filext=="WBT" || filext=="WIL" || filext=="MNU" || filext=="WEB" then cmt=";" ; Its WIL else cmt="//" s="" ;if wGetSelState() then s=wEdGetWord() clipput ("%cmt%***************************************************************************%CR%") clipappend("%cmt%** %s%%CR%") clipappend("%cmt%** %CR%") clipappend("%cmt%** %CR%") clipappend("%cmt%** Purpose: %CR%") clipappend("%cmt%** Inputs: %CR%") clipappend("%cmt%** Outputs: %CR%") clipappend("%cmt%** Revisions: %CR%") clipappend ("%cmt%***************************************************************************%CR%") wEDgotocol(1) ;insert above current line wedstartsel() wedendsel() wednewline() wEDgotocol(1) ;insert above current line Wedpaste() weddownline() weddownline() wedend() drop(s,filext,cmt) _How do I?... ; Learn about using scripts Show less WIL functions (faster) Pause("WSPOPUP Menu Change",'Press OK to load a smaller wspopup menu with less functions displayed in the "Insert WIL function" choices. This will load the popup menus faster.') FileCopy(strcat(DirHome(),"wspopups.mnu"),Strcat(DirHome(),"wspopup.mnu"),0) Message("WSPOPUP Menu Change","WinBatch Studio now set to use faster popup menus.") Use Menu Scripts ; Menu file reference helpfile = strcat(HomeUpOne,"windows interface language.hlp") WinHelp(helpFile, "PartialKey", "Menu Files") Write WIL Scripts ; WIL scripting language reference helpfile = strcat(HomeUpOne,"windows interface language.hlp") WinHelp(helpFile, "PartialKey", "Tutorial") Customize this menu... ; Manage WinBatch Studio Popup menu TheFile=strcat(DirHome(),"WSPOPUP.MNU") WFileOpen(TheFile) Drop(TheFile)