Krikov Posted March 11, 2009 Share Posted March 11, 2009 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] Link to comment Share on other sites More sharing options...
Marlo Posted March 11, 2009 Share Posted March 11, 2009 That involves multithreading which AutoIt doesnt fully support =( Do a search for "Multi Threading" though and you will find some helpful stuff. Click here for the best AutoIt help possible.Currently Working on: Autoit RAT Link to comment Share on other sites More sharing options...
spudw2k Posted March 11, 2009 Share Posted March 11, 2009 (edited) While 1 if ProcessExists("Notepad.exe") Then ConsoleWrite("notepad" & @CRLF) if ProcessExists("Winword.exe") Then ConsoleWrite("BBB" & @CRLF) Sleep(2000) WEnd Why not combine the two? They'll run sequentially but does that matter? Edited March 11, 2009 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Krikov Posted March 11, 2009 Author Share Posted March 11, 2009 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] Link to comment Share on other sites More sharing options...
youknowwho4eva Posted March 11, 2009 Share Posted March 11, 2009 (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 March 11, 2009 by youknowwho4eva Giggity Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now