DESKTOPAI DOCUMENTATION BETA 0.1 WWW.DESKTOPAI.COM -------------------------------------------- REQUIREMENTS: -WINDOWS XP or later -ADMINISTRATOR rights -.NET FRAMEWORK 2.0 and later -------------------------------------------- Available general use Variables (VAR): x, y & z -------------------------------------------- Available predefined constants used instead of some class names for wndID: \firefox -> MozillaUIWindowClass \ie -> IEFrame \wlm-main -> MSBLWindowClass \wlm-convo -> IMWindowClass -------------------------------------------- IMPORTANT NOTES: - Strings are always preceded and ended with a double quote and must not contain ( or ) [will be fixed later] - INTEGER/DOUBLE operations must return to a variable using = -------------------------------------------- ARITHMETIC OPERATIONS: * -> multiply + -> add - -> subtract / -> divide ( and ) -> parenthisis = -> return to variable (x=,y=,z=) Example: x= 1*2+4-3/1 alert x -------------------------------------------- Current command LIST: -------------- Name/Syntax Return Type Description alert VAR MESSAGEBOX Alert popup showing the value of VAR pressok MESSAGEBOX OK Message Box popup end wndID VOID Ends the running winow with the given classname split (VAR/STRING,VAR/STRING)-X STRING splits a variable or a string using another variable or string and returns the X'th element affected by the split operation getcursorpos STRING gets current position of cursor, return format: (X,Y) where X and Y are respectively X coordinate and Y coordinate of mouse pointer. getpixelcolor(x,y) INT32 gets the color of the pixel at x,y coordinates replace (VAR/STRING,STRING1,STRING2) STRING replace STRING1 by STRING2 in VAR/STRING find (VAR2/STRING2,VAR2/STRING2) INT32 return position of first occurence of VAR2/STRING2 in VAR1/STRING1 clickmouse2/clickmouseright VOID performs a right click using mouse clickmouse/clickmouseleft VOID performs a left click using mouse press X(+Y) VOID Presses a key with the corresponding integer ASCII code X if it's the only one present Y while pressing X if X+Y is present, X is a virtual Key, see http://msdn.microsoft.com/en-us/library/ms927178.aspx for reference about VKs settext wndID STRING VOID sets the text of the window with ID wndID to STRING if available setfocus wndID BOOL process VOID sets focus on the window having the corresponding wndID, if BOOL is set to true then if windows is not available, execute process. load STRING VOID loads the file with STRING as filename to be executed (must end with .dai extension) while VAR/STRING=VAR/STRING LOOP a normal loop ends with end while, NOT YET FULLY OPERATIONAL may not work under some conditions IF VAR/STRING=VAR/STRING CONDITIONAL VOID executes the next line if true otherwise executes line after end if loadtostring "fname" VAR VOID loads the contents of the file (fname) to a variable writetofile "fname" VAR optional:a VOID writes the contents of VAR to file with name fname using mode append if a is present or it clears the file if a is not present open program VOID opens program.exe sleep X VOID sleeps for X seconds where X is an integer usleep X VOID sleeps for X milliseconds where X is an integer mouvemouse X,Y VOID moves the mouse to positions X,Y on screen where X is an integer and Y is an integer type STRING VOID types the string using a method similar to keyboard input -------------- ENJOY! PLEASE NOTE THAT THIS PROGRAM IS STILL IN BETA, AND IT MAY INVOLVE MANY BUGS, FOR FEEDBACK/ERROR REPORTING please check contact page on the site www.desktopai.com