| View previous topic :: View next topic |
| Author |
Message |
Santa's Little Helper Guest
|
Posted: Wed Jul 21, 2004 10:27 am Post subject: Down/Up Keys with mouse controls |
|
|
Instead of having to manually put down a timer of it. I wish that
Send, {CtrlDown}
MouseClick, left, 100, 100
Send, {CtrlUp}
will actually hold the ctrl key AND left click on the mouse. The timer just doesn't work as precisely as this and it's a pain in the butt to accurately time the duration. Please add this to the next update. Or a little patch just for me.  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Wed Jul 21, 2004 12:25 pm Post subject: |
|
|
| The example you posted should work fine; there's no need to use a timer. Note that SetDefaultMouseSpeed, SetMouseDelay, and SetKeyDelay will affect how quickly the action occurs. |
|
| Back to top |
|
 |
Santa's Little Helper Guest
|
Posted: Fri Aug 20, 2004 10:48 pm Post subject: |
|
|
I tried it but it doesn't work. So I suspected the holding of the control keys ends at the end of the line. Am not doing something wrong?  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Sat Aug 21, 2004 1:26 am Post subject: |
|
|
I ran the exact example you posted and it works on Windows XP in MS Excel (it selects two separate cells, like Ctrl-click should).
Note that some games are resistant to automation so it might not work in that case. Try testing it a normal window such as MS Excel. If it still doesn't work and you're using Windows 9x, post another reply and I'll test it further. |
|
| Back to top |
|
 |
|