| View previous topic :: View next topic |
| Author |
Message |
Kerry
Joined: 20 Jul 2006 Posts: 146 Location: Los Angeles
|
Posted: Fri Sep 08, 2006 2:16 am Post subject: DllCall LoadCursor not working? |
|
|
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 |
|
 |
Roland
Joined: 08 Jun 2006 Posts: 244
|
Posted: Fri Sep 08, 2006 9:16 am Post subject: |
|
|
| 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 |
|
 |
Kerry
Joined: 20 Jul 2006 Posts: 146 Location: Los Angeles
|
Posted: Fri Sep 08, 2006 10:48 am Post subject: |
|
|
Ok thank you! found a work around
-Kerry _________________ String Manipulator - GrabIco |
|
| Back to top |
|
 |
|