Sign in to follow this  
Followers 0
muzle6074

How can I make this msg box timeout + reloop?

5 posts in this topic

$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

Share this post


Link to post
Share on other sites



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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

@Jos, ty

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

- muzle6074

Share this post


Link to post
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.

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