AutoHotkey Community

It is currently May 25th, 2012, 2:42 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: August 14th, 2007, 2:16 pm 
Offline

Joined: November 24th, 2005, 8:16 am
Posts: 851
I would like to propose a slightly different alternative which may be more useful when you have a window with many controls.

Simply make sure that the variable for each control contains a certain keyword (for example "button" )

In this example, I changed added vUrl1 and vUrl2 to the gui add parameters.

Also, replaced the global hCur with a static one

Code:
WM_MOUSEMOVE(wParam,lParam)
{
  If( A_Gui <> 1 )
   Return

  Static hCurs = 0
  If( hCurs = 0 )
   hCurs:=DllCall("LoadCursor","UInt",NULL,"Int",32649,"UInt") ;IDC_HAND
 
  ; Only change controls with Button or Url in their variable.
  If( InStr( A_GuiControl, "Button" ) ) or ( InStr( A_GuiControl, "Url" ) )
    DllCall("SetCursor","UInt",hCurs)
  Return
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 19th, 2007, 3:33 am 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
But is there a way to do this so that the cursor is always a hand when the script is running, without using WM_MOUSEMOVE and not needing a gui??


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 26th, 2008, 9:35 am 
Hi, can someone please show me any ways to make a custom cursor I design in photoshop to replace the standard mouse-cursor Arrow? :)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon, JamixZol and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group