Jump to content

How can I make this msg box timeout + reloop?


Recommended Posts

  • Developers

timeout [optional] Timeout in seconds. After the timeout has elapsed the message box will be automatically closed.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

$c=5

$i=5

While $i>0

MsgBox(0, "", $c, 1000)

$c=$c-1

$i=$i-1

WEnd

I want a basic msgbox to go:

5

4

3

2

1

in seconds. How can I do this? I thought 1000 = 1 second timeout? Wasnt working for me :D

Any help appreciated!

- muzle6074

It would take a lot less time to read the help than to post the question. The help file says

timeout [optional] Timeout in seconds.

so how did you conclude it was in mS????

Search for MsgBoxEx and you will find versions wich can display a countdown.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

@Jos, ty

@martin, what is this "help" file you speak of and where can I find it?

- muzle6074

Ah, I hadn't thought of that.

When you install AutoIt you will find help file in the install folder, usually ?:/Program Files/AutoIt3 and in the Beta folder ?:/Program Files/AutoIt3/Beta.

If you use Scite (highly recommended text editor) then F1 opens the AutoIt help.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
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...