Rabbitman Posted December 7, 2010 Share Posted December 7, 2010 (edited) I have buttons in my gui that are "start" and exit. When i press "start" it sends keystrokes but when i press "exit" (which exits if start hasnt been clicked) it does nothing. How do i make the exit button work while the start button is running? By the way i am using the script: If $msg = $Button2 Then Exit EndIf If $msg = $Button1 Then ;My keystrokes. i really dont want to write it since it is long EndIf Edited December 8, 2010 by Rabbitman Link to comment Share on other sites More sharing options...
JohnOne Posted December 7, 2010 Share Posted December 7, 2010 If $msg = $Button2 Then Exit EndIf AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Rabbitman Posted December 8, 2010 Author Share Posted December 8, 2010 JohnOne, That is not what i am asking. That is the script for the exit button which i already have. I need to know how to make the exit button work while the start button is sending its script. Link to comment Share on other sites More sharing options...
JohnOne Posted December 8, 2010 Share Posted December 8, 2010 I cannot know because, I dont know what your code looks like. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
bogQ Posted December 8, 2010 Share Posted December 8, 2010 Our help to you depends on your code construction, and becose you did not provide script with replicated problem noone can help you. On the other side your script is probably bot related like in your previous topic that whas locked with similar question. It's a magical circle, don't waits other people time for reading something that youl not get help with. TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
Rabbitman Posted December 8, 2010 Author Share Posted December 8, 2010 (edited) Fine you want to see it? Here it is... I told you it was long. # Edited December 8, 2010 by Jos Link to comment Share on other sites More sharing options...
bogQ Posted December 8, 2010 Share Posted December 8, 2010 (edited) We dont want to see it if its bot related (auto attacker). did you read sticky about game automation? tolded you its a magicle circle Edited December 8, 2010 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
JohnOne Posted December 8, 2010 Share Posted December 8, 2010 "I told you it was long." No you never, and I cant bring myself to read code that long ouside code tags. I have on suggestion, have a look at some of the autoit tutorials, and that code will be 1 50th of the size in no time at all. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Rabbitman Posted December 8, 2010 Author Share Posted December 8, 2010 @JohnOne If $msg = $Button1 Then ;My keystrokes. i really dont want to write it since it is long EndIf No, i really didnt tell you. I never said it was an auto attacker for that reason. So lets just say my script was While 1=1 Send("{Here is my script. Now i would like to know how to press the exit button while this script is going.I already have the script for exit button. how would i "intercept" (i dont know if i am using proper terminology) this script with the exit script?}") WEnd Link to comment Share on other sites More sharing options...
JohnOne Posted December 8, 2010 Share Posted December 8, 2010 This just in. Member edits post to justify bullshit shocker. Never mind. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Rabbitman Posted December 8, 2010 Author Share Posted December 8, 2010 This just in. Member is a fucking idiot and doesn't look at times. Let's take a look. Original post: last edit at 7:22 Post where I justify that I did say it; 8:30 Dumbass -.- Link to comment Share on other sites More sharing options...
JohnOne Posted December 8, 2010 Share Posted December 8, 2010 /interest AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Rabbitman Posted December 8, 2010 Author Share Posted December 8, 2010 Okay I really don't care about flaming anymore I just want an answer please! My question is in the code snippet in my earlier post. Rabbitman Link to comment Share on other sites More sharing options...
Rabbitman Posted December 8, 2010 Author Share Posted December 8, 2010 Thanks for the useful information. Link to comment Share on other sites More sharing options...
Fubarable Posted December 8, 2010 Share Posted December 8, 2010 Okay I really don't care about flaming anymore I just want an answer please! My question is in the code snippet in my earlier post.RabbitmanYeah, we'll gladly help @ssholes. Just have a seat and help yourself to some doughnuts while we work this out for you. Link to comment Share on other sites More sharing options...
Rabbitman Posted December 8, 2010 Author Share Posted December 8, 2010 (edited) But flaming isn't being an asshole though. Edited December 8, 2010 by Rabbitman Link to comment Share on other sites More sharing options...
Rabbitman Posted December 8, 2010 Author Share Posted December 8, 2010 Look I just need a script to stop sending other script. Just a function. All I need. I will figure out the rest by myself. Link to comment Share on other sites More sharing options...
Rabbitman Posted December 8, 2010 Author Share Posted December 8, 2010 New question: I have made the hotkey for pause/resuming but how do I change from hotkey to buttons? Also is a switch relevant in this case? Link to comment Share on other sites More sharing options...
Realm Posted December 8, 2010 Share Posted December 8, 2010 Rabbitman, I told you the other day it would be near impossible to get help now that you have mentioned that it is for a game, this is the 3rd post with the same question. When are you going to get the hint? Insulting long standing and respected members of the AutoIt community will not help your case either! Realm My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. Link to comment Share on other sites More sharing options...
Rabbitman Posted December 8, 2010 Author Share Posted December 8, 2010 Fuck this Link to comment Share on other sites More sharing options...
Recommended Posts