Orgins Posted October 28, 2006 Posted October 28, 2006 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.
Paulie Posted October 28, 2006 Posted October 28, 2006 (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 hereToolTip Edited October 28, 2006 by Paulie
Orgins Posted October 28, 2006 Author Posted October 28, 2006 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.
Orgins Posted October 28, 2006 Author Posted October 28, 2006 (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 October 28, 2006 by Orgins I'm a newbie.Sorry if I don't reposed to your replays very fast.
Rad Posted October 28, 2006 Posted October 28, 2006 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
cppman Posted October 28, 2006 Posted October 28, 2006 (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 October 28, 2006 by CHRIS95219 Miva OS Project
Orgins Posted October 28, 2006 Author Posted October 28, 2006 (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 October 28, 2006 by Orgins I'm a newbie.Sorry if I don't reposed to your replays very fast.
Paulie Posted October 28, 2006 Posted October 28, 2006 (edited) Edit*is there a way to have 2 tooltips or more? at a timeNot 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 October 28, 2006 by Paulie
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