the101dan Posted November 2, 2008 Share Posted November 2, 2008 I am trying to make a bot that closes something everytime it pops up. I have msgboxes in the bot and it only closes the thing after click something on the msgbox. I need help, so that the msgbox doesn't interfere and it closes that thing as soon as it is there. Thanks a bunch Link to comment Share on other sites More sharing options...
Bert Posted November 2, 2008 Share Posted November 2, 2008 Post your code, and we can see what we can do. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Cw2K1 Posted November 2, 2008 Share Posted November 2, 2008 something like this? While 1 $Name = "Your_Window_Name_Here" WinWait($Name, "") WinActivate($Name, "") WinWaitActive($Name, "") Send("{Enter}") ; will send a enter button to the active window Sleep(1000) If WinExists($Name, "") Then WinClose($Name, "") EndIf WEnd Enjoy the complexity.Feel the power of simplicity. Link to comment Share on other sites More sharing options...
the101dan Posted November 2, 2008 Author Share Posted November 2, 2008 (edited) something like this? While 1 $Name = "Your_Window_Name_Here" WinWait($Name, "") WinActivate($Name, "") WinWaitActive($Name, "") Send("{Enter}") ; will send a enter button to the active window Sleep(1000) If WinExists($Name, "") Then WinClose($Name, "") EndIf WEnd Woah, I just tried again and the hotkey I used to stop it worked. I still need help. Am I doing something half right with the hotkey? Is that why it works about half of the time? Thanks for all of the help Edited November 2, 2008 by the101dan Link to comment Share on other sites More sharing options...
dbzfanatic Posted November 2, 2008 Share Posted November 2, 2008 1) autoit is single thread not multi thread,you can only do one thing at a time, 2) most people won't help with a childish prank script. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Developers Jos Posted November 2, 2008 Developers Share Posted November 2, 2008 @the101dan ... better take this stuff somewhere else. *click* 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 More sharing options...
Recommended Posts