Jump to content

Set Mouse Cursor for my GUI


Andreik
 Share

Recommended Posts

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

When the words fail... music speaks.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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