xbtsw Posted September 9, 2007 Posted September 9, 2007 there is a function named blockinput() in autoit, can block both mouse and keyboard in same time, and meanwhile, the script can control the mouse using mousemove() and mouseclick(). is there any way that can only block mouse but keyboard is not blocked at the same time? because i hope i can use a hotkey to control my script, and block mouse to avoid error. i have tried _mousetrap(), but when the mouse is trapped, the mousemove() and mouseclick() functions doesn't work, as they can't move the mouse too.
qazwsx Posted September 9, 2007 Posted September 9, 2007 Try using mouse trap and control click. I dont think control click actually requires the mouse to move.
xbtsw Posted September 10, 2007 Author Posted September 10, 2007 Try using mouse trap and control click. I dont think control click actually requires the mouse to move. Thanks, Controlclick & mousetrap works in winxp but when i apply controlclick in a 3dgame, i found i can't get the control ID
felanor Posted September 10, 2007 Posted September 10, 2007 I know its not the cleanest solution, but you can always unblock input just before you have to move the mouse, click a key, etc, and then blockinput again as soon as you are done. Like I said, not graceful, but it works. ~Felanor Check Out My ScriptsFile Property Management - Adjust a file's title, author, subject, etc.
xbtsw Posted September 10, 2007 Author Posted September 10, 2007 (edited) I know its not the cleanest solution, but you can always unblock input just before you have to move the mouse, click a key, etc, and then blockinput again as soon as you are done.Like I said, not graceful, but it works.~FelanorThanks for your advise~Yes, in one of my script i do it in this way, just finding a better solution~ i am guessing that call some dll can block mouse along, but i don't know which dll to callmaybe it will be better for the autoit to separate blockinput to blockkeyboard and blockmouse:) Edited September 10, 2007 by xbtsw
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