Jump to content
Sign in to follow this  
kcd-clan

tooltip problem

Recommended Posts

kcd-clan

no...

$i=1

$time=0
HotKeySet("{up}","starttimer")
HotKeySet("{down}","checktime")
HotKeySet("{esc}","stop")
Do
$time=+1
Until $i=0

Func starttimer()
MouseClick("Left",420,333,1,1)
MouseClick("Left",419,253,1,1)
Do
$k=0
pause(1)
$time=+1
Until $i=0
EndFunc

Func checktime()
    ToolTip($time)
EndFunc

Func pause($time)
    Sleep(1000*$time)
EndFunc

func    stop()
    $i=0
EndFunc

Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()

Share this post


Link to post
Share on other sites
GaryFrost

no...

$i=1

$time=0
HotKeySet("{up}","starttimer")
HotKeySet("{down}","checktime")
HotKeySet("{esc}","stop")
Do
$time=+1
Until $i=0

Func starttimer()
MouseClick("Left",420,333,1,1)
MouseClick("Left",419,253,1,1)
Do
$k=0
pause(1)
$time=+1
Until $i=0
EndFunc

Func checktime()
    ToolTip($time)
EndFunc

Func pause($time)
    Sleep(1000*$time)
EndFunc

func     stop()
    $i=0
EndFunc

yes....

The text of the tooltip. (An empty string clears a displaying tooltip)


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
greenmachine

why dont if update the nummbers?

I'm assuming that sentence means: "Why doesn't it update the numbers?"

The reason is this:

$i=1

$time=0

HotKeySet("{up}","starttimer")

HotKeySet("{down}","checktime")

HotKeySet("{esc}","stop")

Do

$time=+1

Until $i=0

Func starttimer()

MouseClick("Left",420,333,1,1)

MouseClick("Left",419,253,1,1)

Do

$k=0

pause(1)

$time=+1

Until $i=0

EndFunc

Func checktime()

ToolTip($time)

EndFunc

Func pause($time)

Sleep(1000*$time)

EndFunc

func stop()

$i=0

EndFunc

Your time line is incorrect. It should be $time += 1. Saying $time=+1 is the same as saying $time = 1 (time = a positive 1). Switch the signs, and you're fine.

Edited by greenmachine

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  

×