AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DllCall LoadCursor not working?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Kerry



Joined: 20 Jul 2006
Posts: 146
Location: Los Angeles

PostPosted: Fri Sep 08, 2006 2:16 am    Post subject: DllCall LoadCursor not working? Reply with quote

I took this from one of Skrommel's old scripts and modified it a bit, but the cursor isn't changing, can anyone tell me why?

Here's the link to his: http://www.autohotkey.com/forum/topic9192.html

the main difference is he's using GUI and I'm not... does that mean I can't change the the cursor if it's not in a GUI?

-Kerry
_________________
String Manipulator - GrabIco
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Roland



Joined: 08 Jun 2006
Posts: 244

PostPosted: Fri Sep 08, 2006 9:16 am    Post subject: Reply with quote

Quote:
the main difference is he's using GUI and I'm not... does that mean I can't change the the cursor if it's not in a GUI?


Yes.
The documentation says something along the lines of 'the cursor is a shared recource, so don't change it unless you own the window the mouse is over'. Which makes sense of course, since other windows will be trying to set the cursor if it's in their client area, so there'd be a conflict...
You can, however, 'freeze' the cursor if it starts out over one of your windows, and the user is holding down the left mouse button; like when you're resizing a window. IIRC the relevent functions are called SetCapture/ReleaseCapture or something. That probably won't help you though.
Back to top
View user's profile Send private message
Kerry



Joined: 20 Jul 2006
Posts: 146
Location: Los Angeles

PostPosted: Fri Sep 08, 2006 10:48 am    Post subject: Reply with quote

Ok thank you! found a work around Smile

-Kerry
_________________
String Manipulator - GrabIco
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group