Jump to content

Recommended Posts

Posted

I created a mouse cursor and I do not know how to use it.

GuiSetCursor is only for the 16 standard cursors but I want to set a different cursor.

Does anyone know how can I do that?

Posted

I found this functions for cursors created by GaryFrost, but when I move the mouse, my cursor starts to flick. How can I fix this?

#include <Cursor.au3>

$hCursor = _Cursor_LoadFromFile(@ScriptDir & "\Psi.cur")
$GUI = GUICreate("TEST",400,400)
GUISetState()

While 1
    _Cursor_Set($hCursor)
    $MSG = GUIGetMsg()
    If $MSG = -3 Then
        _Cursor_Destroy($hCursor)
        Exit
    EndIf
    Sleep(15)
WEnd
Posted

Call cursor set before your loop, and not in your loop. :mellow:

Did not get the idea. If put before the loop, the cursor will not appear at all.

Thanks anyway.

Posted

Did not get the idea. If put before the loop, the cursor will not appear at all.

Thanks anyway.

Oh, I've never used that before, and it just though that maybe it stayed until you called that. Sorry I wasn't much of a help.

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
×
×
  • Create New...