thecheese1191 Posted November 11, 2006 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?
McGod Posted November 11, 2006 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]
ConsultingJoe Posted November 11, 2006 Posted November 11, 2006 GUICtrlSetCursor ( controlID, 7 ) Check out ConsultingJoe.com
ConsultingJoe Posted November 11, 2006 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? Check out ConsultingJoe.com
thecheese1191 Posted November 11, 2006 Author 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
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