Sign in to follow this  
Followers 0
Orgins

How do you

8 posts in this topic

Not sure what its called but I've seen some scripts that have a little box that displays current info. Like how long its been running number of loops ect.

I want to have one in my script that will display what its doing. Ether the current line of code or how many times its looped.


I'm a newbie.Sorry if I don't reposed to your replays very fast.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Not sure what its called but I've seen some scripts that have a little box that displays current info. Like how long its been running number of loops ect.

I want to have one in my script that will display what its doing. Ether the current line of code or how many times its looped.

I'd be happy to add appropriate Tooltips into your code, but I'd have to see it...

Or you can do it yourself by looking here

ToolTip

Edited by Paulie

Share this post


Link to post
Share on other sites

Oh their called tooltip I feel stupid. Anyways it looks like I can figure it out now (Yah for autoit help file). I'll post latter if I can't.


I'm a newbie.Sorry if I don't reposed to your replays very fast.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Ok I got everything rite but a few I cant figure out.

Theirs a few While/WEnd I got on time out. Can I have a count down box showing how much time has passed/have left?

And I have a few do/untill can I have it say how many do's are left unto the untill is done?

Edit*is there a way to have 2 tooltips or more? at a time

Edited by Orgins

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Share this post


Link to post
Share on other sites

Want to share your code?

One way to make a countdown timer is to use the Timer functions (TimerInit(), TimerDiff() etc), when you use TimerDiff($init) it returns how long its been since TimerInit(). You can restart by doing TimerStop() and TimerStart()

Not sure if theres simply TimerRestart() though I havent used it much.

..On the otherhand, if your countdown is just for a loop (like $i = 0 to 500) then you can just display Abs($i - 500), which if its 50 would be Abs(-450) = 450 loops remaining

As far as the tooltips go, you need a sleep for how long they last... post your code for more help on that

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

τεστινγ.

Here is one with a tray tip:

Global $i = 0
Do
    $i += 1
    TrayTip("Iteration: " & $i, "The Loop", 100)
    sleep(100)
Until ($i == 100)

same concept with a tooltip.

Edited by CHRIS95219

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

I tryed CHRIS95219 thing but I'd like to have where it says 100 a var

$i = 0

Do

$i = $i + 1

TrayTip("On: " & $i, "of", $DaVar)

ect

ect

ect

until $i = $DaVar

but it didn't work. It jsut sayd on 1 of on 2 of on 3 of and so on.

Edit* Nvm think I got it.

Edited by Orgins

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Edit*is there a way to have 2 tooltips or more? at a time

Not that i know of, buy they can be multi-lined quite simply

Just use @CRLF to indicate a new line

Global $i = 0
Global $x =1000
While 1
     Tooltip("Line 1 Counter: "&$i&@CRLF&"Line 2 Counter: "&$x&@CRLF&"Sum: "&$i+$x, 5, 5)
     $i = $i +1
     $x= $x -1
     Sleep(100)
Wend
Edited by Paulie

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  
Followers 0