Jump to content

Recommended Posts

Posted

Hi is it posible to write code with more then one while

or make that script working

<code>

While 1

if ProcessExists("Notepad.exe") Then

ConsoleWrite("notepad" & @CRLF)

Sleep(2000)

EndIf

WEnd

While 1

if ProcessExists("Winword.exe") Then

ConsoleWrite("BBB" & @CRLF)

Sleep(2000)

EndIf

WEnd

</code>

Krikov

[topic="63488"][font="Arial"]Krikov Tray Quick Menu[/font][/topic]

Posted (edited)
Posted

That involves multithreading which AutoIt doesnt fully support =( Do a search for "Multi Threading" though and you will find some helpful stuff.

Thanks i will look for it

[topic="63488"][font="Arial"]Krikov Tray Quick Menu[/font][/topic]

Posted (edited)

While  ProcessExists("Notepad.exe") 
        ConsoleWrite("notepad" & @CRLF)
        Sleep(2000)
WEnd

While ProcessExists("Winword.exe")
        ConsoleWrite("BBB" & @CRLF)
        Sleep(2000)
WEnd

While 1
sleep(20)
wend

Unfortunately it wouldn't go to the second while unless the first weren't true

Edited by youknowwho4eva

Giggity

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
  • Recently Browsing   0 members

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