Jump to content

[complete content]How to Change Cursor


Recommended Posts

hello all,

This is a complete content about changing the Cursor: How the Cursor changes shape during movement or pressing a button...

Log:

  • #Added Animated Cursor Click Drag when using _WinAPI_CreateWindowEx
  • #Added Animated Cursor Middle Mouse when using _WinAPI_CreateWindowEx
  • #Added Animated Cursor Moving when using _WinAPI_CreateWindowEx
  • #Added Animated Cursor Normal Click when using _WinAPI_CreateWindowEx
  • #Added Animated Cursor Normal View when using _WinAPI_CreateWindowEx

-

  • #Added Animated Cursor Click Drag when using GuiCreate
  • #Added Animated Cursor Middle Mouse when using GuiCreate
  • #Added Animated Cursor Moving when using GuiCreate
  • #Added Animated Cursor Normal Click when using GuiCreate
  • #Added Animated Cursor Normal View when using GuiCreate

 

AnimatedCursorEx_Updated.zip

 

 

AnimatedCursorEx_Gui.zip

AnimatedCursorEx_Gui.zip

Edited by ad777
updating
Link to post
Share on other sites
Func _MouseIsOverHWnd($hWnd) ;to check if mouse is on or off GUI
    Local $bMouseOver
    If not WinActive($hWnd) then return False
    Local $aMousePos = MouseGetPos()
    Local $aWinPos = WinGetPos($hWnd)
    if ($aMousePos[0] < $aWinPos[0] Or $aMousePos[0] > $aWinPos[0] + $aWinPos[2]) Or ($aMousePos[1] < $aWinPos[1] Or $aMousePos[1] > $aWinPos[1] + $aWinPos[3]) Then
        $bMouseOver = False
    Else
        $bMouseOver = True
    EndIf
    Return $bMouseOver
EndFunc   ;==>_MouseIsOverHWnd

Just checking if mouse is over gui...

Link to post
Share on other sites
  • ad777 changed the title to How to Change Cursor

UPDATED:

#added moving animated cursor when using _WinAPI_CreateWindowEx
#added normal animated view cursor when using _WinAPI_CreateWindowEx
#added normal animated click cursor when using _WinAPI_CreateWindowEx

Edited by ad777
Link to post
Share on other sites
  • ad777 changed the title to [complete content]How to Change Cursor

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