Jump to content
Sign in to follow this  
Guest Knumb

Very Simple Tooltip Counter

Recommended Posts

Guest Knumb

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

Share this post


Link to post
Share on other sites
Doxie

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...

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×