 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
antonyb
Joined: 26 May 2004 Posts: 61
|
Posted: Wed Nov 02, 2005 11:01 am Post subject: |
|
|
Hey Lazlo,
I can't get your scripts to work properly. They work the first time round, but thats it. For instance, change the beginning of your latest script to:
| Code: | SystemCursor(0)
MsgBox INVISIBLE CURSOR
SystemCursor(1)
MsgBox VISIBLE AGAIN
SystemCursor(0)
MsgBox INVISIBLE CURSOR
SystemCursor(1)
MsgBox VISIBLE AGAIN |
Here, the cursor disappears for the first INVISIBLE CURSOR msgbox, reappears for the first VISIBLE AGAIN msgbox, but then stays visible for the next two msgboxes.
Can you confirm that on your system the cursor disappears both times?
Thanks,
Ant.
[p.s. Great work both of you, by the way!] |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 3877 Location: Pittsburgh
|
Posted: Wed Nov 02, 2005 8:18 pm Post subject: |
|
|
You are right, it only worked once: | MSDN for SetSystemCursor wrote: | | The system destroys hcur by calling the DestroyCursor function. Therefore, hcur cannot be a cursor loaded using the LoadCursor function. To specify a cursor loaded from a resource, copy the cursor using the CopyCursor function, then pass the copy to SetSystemCursor. | I updated the last script, to make first a copy of the cursor and let that be destroyed. Also, we need enough room for the copy, but I don't know for sure, how much. I assume 32*32 words, 32*32*4 = 4096 bytes, plus change. (For some reason CopyCursor did not work, so I used CopyImage, as Shimanov.) |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Fri Sep 29, 2006 5:02 pm Post subject: |
|
|
This is such a great script that its long overdue to be included in the documentation. I've added it to the DllCall page and also mentioned it on the MouseMove page.
Thanks to both of you. |
|
| Back to top |
|
 |
user
Joined: 05 Oct 2006 Posts: 423
|
Posted: Tue Sep 11, 2007 11:26 am Post subject: |
|
|
can you tell me please if I can change the appearance of I-Beam cursor when it is over a specific control?
and what are the available appearances
I want to do this because I-Beam hides characters when I type sometimes..
thanks |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|