Guest Knumb Posted December 22, 2004 Share Posted December 22, 2004 I want to add a tooltip to this code that simply adds one (+1) to the tooltip output every time D is pressed (Basically counting how many times D has been pressed and displaying it in a tooltip). Please help. AutoItSetOption("PixelCoordMode",0) $reps= While 1 $coord = PixelSearch( 276, 221, 367, 260, 0x7B94FF ) If @error Then sleep (random(300,600)) Send ("{D}") sleep (1000) Else Sleep (1) EndIf WEnd Func MyExit() Exit EndFunc Func captureEsc() Exit EndFunc Link to comment Share on other sites More sharing options...
Doxie Posted December 22, 2004 Share Posted December 22, 2004 AutoItSetOption("PixelCoordMode",0) $reps= $d=0 While 1 $coord = PixelSearch( 276, 221, 367, 260, 0x7B94FF ) If @error Then sleep (random(300,600)) Send ("{D}") $d = $d + 1 ToolTip("D has been pushed" & $d & "times.", 0, 0) sleep (1000) Else Sleep (1) EndIf WEnd Func MyExit() Exit EndFunc Func captureEsc() Exit EndFunc Were ever i lay my script is my home... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now