Orgins Posted March 19, 2007 Posted March 19, 2007 (edited) Is there a way to lock the mouse to a inputbox? Or just prevent any other windows/files being opened while its waiting for the input? Edited March 19, 2007 by Orgins I'm a newbie.Sorry if I don't reposed to your replays very fast.
_Kurt Posted March 19, 2007 Posted March 19, 2007 For the input box, I suggest using this: $text = InputBox("test", "Please type in the secret code") $bLoop = 1 While $bLoop = 1 If $text = "secret code" Then $bLoop = 0 Else $text = InputBox("test", "Please type in the secret code") EndIf Sleep(25) WEnd And you could use stuff like ProcessExists, ProcessClose, WinExists, WinClose, etc. Keep in mind that the end user will always be able close the script easily, if you are trying to create something malicious, stop right now. Kurt Awaiting Diablo III..
Moderators SmOke_N Posted March 19, 2007 Moderators Posted March 19, 2007 _MouseTrap() can trap the mouse to specific coords. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Orgins Posted March 19, 2007 Author Posted March 19, 2007 *Huge eye* I swear I read all the commands many times and I never once saw that. Anyways I ended up editing the code to were it didn't use a inputbox next time I'll use _MouseTrap() for sure. I'm a newbie.Sorry if I don't reposed to your replays very fast.
Moderators SmOke_N Posted March 20, 2007 Moderators Posted March 20, 2007 *Huge eye* I swear I read all the commands many times and I never once saw that.Anyways I ended up editing the code to were it didn't use a inputbox next time I'll use _MouseTrap() for sure.Funny how the answers to things are always right in front of us... as much as I use AutoIt I get reminded sometimes daily reading other threads of functions I didn't even know existed, that would have saved me tons of time on ones I wrote that did the same exact thing. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
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