Jump to content
Sign in to follow this  
dazza

Equivalent of VB DoEvents?

Recommended Posts

dazza

There are 2 buttons: $START and $STOP

While 1

$msg = GUIGetMsg()

Select

case $msg = $START

<continual timed loop>

case $msg = $STOP

<kill the loop>

EndSelect

Wend

How do I get the <continual timed loop to check whether $STOP has been pressed?

:)

Share this post


Link to post
Share on other sites
someone
Check this thread out, should be what you want

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

Share this post


Link to post
Share on other sites
Airwolf

While 1
    $msg = GUIGetMsg()
    Select
        case $msg = $START
            While 1
                Sleep(500)
                $msg = GUIGetMsg()
                If $msg = $STOP Then
                    ExitLoop
                EndIf
            WEnd
        case $msg = $STOP
            ExitLoop
    EndSelect
Wend


Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt

Share this post


Link to post
Share on other sites
dazza

Works a treat. Many thanks :)

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  

×