thecheese1191 Posted November 11, 2006 Share Posted November 11, 2006 i am making a program that involves the mouse moving on its own and i want to disable the actual mouse from working. does anyone know how to do that? Link to comment Share on other sites More sharing options...
McGod Posted November 11, 2006 Share Posted November 11, 2006 BlockInput () But that affects the keyboard aswell. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
Helge Posted November 11, 2006 Share Posted November 11, 2006 Try the _MouseTrap-UDF. Link to comment Share on other sites More sharing options...
ConsultingJoe Posted November 11, 2006 Share Posted November 11, 2006 GUICtrlSetCursor ( controlID, 7 ) [center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center] Link to comment Share on other sites More sharing options...
ConsultingJoe Posted November 11, 2006 Share Posted November 11, 2006 GUICtrlSetCursor ( controlID, 7 )Actually, I don't know if you could use this on any and all windows? Can you get the controlID of the current control that the mouse is over? [center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center] Link to comment Share on other sites More sharing options...
thecheese1191 Posted November 11, 2006 Author Share Posted November 11, 2006 i dont get what a control is... heres the program #include <GuiConstants.au3> HotKeySet("{ENTER}", "catchguikey") $gui = GuiCreate("xxxxx") GuiCtrlCreateLabel("xxxxx", 0, 0) GuiSetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Func catchguikey() Local $opt = Opt("WinTitleMatchMode", 4) If @HotKeyPressed = "{ENTER}" Then $pos = MouseGetPos() Mouse moves EndIf Opt("WinTitleMatchMode", $opt) EndFunc Link to comment Share on other sites More sharing options...
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