the101dan Posted November 2, 2008 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
Bert Posted November 2, 2008 Posted November 2, 2008 Post your code, and we can see what we can do. The Vollatran project My blog: http://www.vollysinterestingshit.com/
Cw2K1 Posted November 2, 2008 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.
the101dan Posted November 2, 2008 Author 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
dbzfanatic Posted November 2, 2008 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]
Developers Jos Posted November 2, 2008 Developers 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.
Recommended Posts