home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 February
/
PCWorld_2006-02_cd.bin
/
software
/
vyzkuste
/
triky
/
triky.exe
/
autoit-v3-setup.exe
/
Examples
/
GUISetCursor.au3
< prev
next >
Wrap
Text File
|
2005-01-07
|
462b
|
25 lines
#include <GUIConstants.au3>
$IDC = -1
$newIDC = 0
HotkeySet("{Esc}", "Increment")
GUICreate("Press Esc to Increment", 400, 400,0,0,0x04CF0000, 0x00000110)
GUISetState ()
While GUIGetMsg()<> $GUI_EVENT_CLOSE
If $newIDC <> $IDC Then
$IDC = $newIDC
GUISetCursor($IDC)
EndIf
ToolTip("GUI Cursor #" & $IDC)
WEnd
Exit
Func Increment()
$newIDC = $IDC + 1
If $newIDC > 15 Then $newIDC = 0
EndFunc