Jump to content

Recommended Posts

Posted

Move it to the bottom right of your screen, works for me :)

Yeah, thought about it too. Just hoped there is something more elegant :D

Warmly,Narciso

Posted

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)

Posted

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]

Posted

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

Posted

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

Posted

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

Posted

...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]

Posted (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 by Zedna
Posted

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
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.

Warmly,Narciso

Posted

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...

Posted

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]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...