Jump to content

Info before start and random delay


Nazo
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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^
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...