narciso Posted May 18, 2007 Share Posted May 18, 2007 Is there any chance of hiding the mouse cursor, I mean making it invisible? Warmly,Narciso Link to comment Share on other sites More sharing options...
Toady Posted May 18, 2007 Share Posted May 18, 2007 Move it to the bottom right of your screen, works for me www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
narciso Posted May 18, 2007 Author Share Posted May 18, 2007 Move it to the bottom right of your screen, works for me Yeah, thought about it too. Just hoped there is something more elegant Warmly,Narciso Link to comment Share on other sites More sharing options...
Gif Posted May 18, 2007 Share Posted May 18, 2007 Yeah, thought about it too. Just hoped there is something more elegant Use MouseMove (2000, 2000, 10000) the mouse will "disappear" cause of the speed(10000) Link to comment Share on other sites More sharing options...
herewasplato Posted May 19, 2007 Share Posted May 19, 2007 Use MouseMove (2000, 2000, 10000) the mouse will "disappear" cause of the speed(10000)From the help file under MouseMove, Speed: [optional] the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10. If you exceed 100, the function reverts to the default of 10. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
narciso Posted May 19, 2007 Author Share Posted May 19, 2007 You have hit it just right herewasplato. I did it your way! Still wonder if there is something more elegant like nice disappearing of the cursor. Come to think of it, how do you change the image of the mouse cursor? Warmly,Narciso Link to comment Share on other sites More sharing options...
Zedna Posted May 19, 2007 Share Posted May 19, 2007 If it's for your GUI only then use GUISetCursor(16) Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search Link to comment Share on other sites More sharing options...
narciso Posted May 19, 2007 Author Share Posted May 19, 2007 If it's for your GUI only then use GUISetCursor(16)Oh, nice to know that. And what about something more ambitious like changing it globally, i.e. independently of my GUI. POssible or not? Warmly,Narciso Link to comment Share on other sites More sharing options...
Gif Posted May 19, 2007 Share Posted May 19, 2007 Oh, nice to know that. And what about something more ambitious like changing it globally, i.e. independently of my GUI. POssible or not? Didn't read the help file then mousemove(2000,2000,1) splashimageon() or maximized window Link to comment Share on other sites More sharing options...
herewasplato Posted May 19, 2007 Share Posted May 19, 2007 ...Still wonder if there is something more elegant like nice disappearing of the cursor...I'm sure that there is. I just don't know how to do it. Apps like MS Word can hide the "mouse cursor" while typing, so it can be done.Maybe some of the DLL gurus can UDF this for you. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Zedna Posted May 19, 2007 Share Posted May 19, 2007 Look at Cursor functions at MSDNAlso look at my similar post about cursors Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zedna Posted May 19, 2007 Share Posted May 19, 2007 (edited) Here is sample code for ShowCursor API but it's working only for your application:#include <GUIConstants.au3> GUICreate("My GUI") GUISetState (@SW_SHOW) Sleep(3000) $ret = DllCall("user32.dll", "int", "ShowCursor", "int", 0) ;~ ConsoleWrite($ret[0] & @CRLF) Sleep(3000) $ret = DllCall("user32.dll", "int", "ShowCursor", "int", 1) ;~ ConsoleWrite($ret[0] & @CRLF) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Edited May 19, 2007 by Zedna Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search Link to comment Share on other sites More sharing options...
narciso Posted May 20, 2007 Author Share Posted May 20, 2007 Here is sample code for ShowCursor API but it's working only for your application: #include <GUIConstants.au3> GUICreate("My GUI") GUISetState (@SW_SHOW) Sleep(3000) $ret = DllCall("user32.dll", "int", "ShowCursor", "int", 0) ;~ ConsoleWrite($ret[0] & @CRLF) Sleep(3000) $ret = DllCall("user32.dll", "int", "ShowCursor", "int", 1) ;~ ConsoleWrite($ret[0] & @CRLF) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WendOh, nice indeed. I actually need to change the system cursor, i.e. globally. Your link is very interesting. Changing the cursor into hourglass but I could not get back into normal using your script I am dumb or your code has a flaw or both Thanks anyway. I will try to analyze it and question you on it later probably. Warmly,Narciso Link to comment Share on other sites More sharing options...
Gif Posted May 20, 2007 Share Posted May 20, 2007 Oh, nice indeed. I actually need to change the system cursor, i.e. globally. Your link is very interesting. Changing the cursor into hourglass but I could not get back into normal using your script I am dumb or your code has a flaw or both Thanks anyway. I will try to analyze it and question you on it later probably.also look at AU3LIB their is something about changing the cursor... Link to comment Share on other sites More sharing options...
Vindicator209 Posted May 20, 2007 Share Posted May 20, 2007 mmm... save a blank cursor file, then use autoit to set that as the cursor, whala, no cursor! lol [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] 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