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 / MouseGetCursor.au3 < prev    next >
Text File  |  2004-09-22  |  370b  |  10 lines

  1. sleep(2000)  ;allow time to move mouse before reporting ID
  2.  
  3. ;create an array that tells us the meaning of an ID Number
  4. $IDs = StringSplit("AppStarting|Arrow|Cross|Help|IBeam|Icon|No|_
  5. Size|SizeAll|SizeNESW|SizeNS|SizeNWSE|SizeWE|UpArrow|Wait", "|")
  6. $IDs[0] = "Unknown"
  7.  
  8. $cursor = MouseGetCursor()
  9. MsgBox(4096, "ID = " & $cursor, "Which means " & $IDs[$cursor])
  10.