| Next revisionBoth sides next revision |
autoit:basic [2014/06/02 09:38] – created lunetikk | autoit:basic [2014/06/02 10:05] – lunetikk |
---|
| |
^ Code ^ What it does ^ | ^ Code ^ What it does ^ |
| | <code> |
| While 1 |
| WEnd |
| </code> | while | |
| HotKeySet("{KEY)}", "jumptopoint") | Push KEY example HOME to jump to code "jumptopoint" | | | HotKeySet("{KEY)}", "jumptopoint") | Push KEY example HOME to jump to code "jumptopoint" | |
| <code> | | <code> |
EndFunc | EndFunc |
</code> | jumppoint function | | </code> | jumppoint function | |
| | Sleep(1000) | Sleep 1 second | |
| | Exit 0 | close the script | |
| MouseClick("left", 123,123, 2,0) | execute mouseclick left on pos 123,123 twice | | | MouseClick("left", 123,123, 2,0) | execute mouseclick left on pos 123,123 twice | |
| Sleep(1000) | Sleep 1 second | | | MouseGetPos() | get the current mouseposition | |
| | MouseClickDrag ( "left", 72, 317, 780, 470, 10 ) | drag the cursor from pos 72,317 to 780,470 in 10 | |
| Send("Hello World") | type "Hello World" into selected textfield | | | Send("Hello World") | type "Hello World" into selected textfield | |
| Send("{enter}") | send "Enter" command | | | Send("{enter}") | send "Enter" command | |
| Exit 0 | close the script | | |
| <code> | |
While 1 | |
WEnd | |
</code> | while | | |
| Sleep(1000) | Sleep 1 second | | |
| WinMove("WindowName", "", 0, 0) | move the left upper corner of the window "WindowName" to pos 0,0 | | | WinMove("WindowName", "", 0, 0) | move the left upper corner of the window "WindowName" to pos 0,0 | |
| dim $var1 | init "var1" | | | dim $var1 | init "var1" | |
| $var1 = "Hello World" | set "Hello World" to "var1" | | | $var1 = "Hello World" | set "Hello World" to "var1" | |
| MouseGetPos() | get the current mouseposition | | |
| MouseClickDrag ( "left", 72, 317, 780, 470, 10 ) | drag the cursor from pos 72,317 to 780,470 in 10 | | |