Jump to content
Sign in to follow this  
Nazo

Info before start and random delay

Recommended Posts

Nazo

I'm not initiated in autoit.

I need just sequences for this things ;p

1. Information smth like "Attention, program will start in 10s" and counting to 0 then start (bubble or pop-up dunno what is possible).

2. Random delay which will be read from ini file.


Share this post


Link to post
Share on other sites
PsaltyDS

I'm not initiated in autoit.

I need just sequences for this things ;p

1. Information smth like "Attention, program will start in 10s" and counting to 0 then start (bubble or pop-up dunno what is possible).

2. Random delay which will be read from ini file.

So, you want a loop: look up While and WEnd (or Do and Until) in the helpfile...

You want to either delay or track the elapsed time: lookup Sleep(), TimerInit(), and TimerDiff() in the helpfile...

You want to read a value from an INI file: lookup IniRead() in the helpfile...

Run the demo scripts that are attached to every one of those items in the helpfile...

Do we see a pattern here...?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
Nazo

1. Decided to do it in tooltip

ToolTip("Program start in 10s", 0, 0, "Attention", 1)
Sleep(1000)
ToolTip("Program start in 9s", 0, 0, "Attention", 1)
Sleep(1000)
ToolTip("Program start in 8s", 0, 0, "Attention", 1)
Sleep(1000)
ToolTip("Program start in 7s", 0, 0, "Attention", 1)
Sleep(1000)oÝ÷ ÙëIèÂZ(¥»­-¡§]ªê->º ­©¬µªí{*ºm¢+ZºÚ"µÍÜ   ÌÍÚHHMHÈHÝLBÛÛ
    ÌÍÚK ][ÝÐ][[Û][ÝËJBÛY
L
B^

Share this post


Link to post
Share on other sites
PsaltyDS

You were very close...

For $i = 15 To 1 Step - 1
    ToolTip("Program will start in " & $i & " seconds...", 0, 0, "Attention", 1)
    Sleep(1000)
    ToolTip("")
Next
MsgBox(64, "Go!", "Ta Da!!!")

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.