Jump to content


Down/Up Keys with mouse controls


  • Please log in to reply
3 replies to this topic

#1 Santa's Little Helper

Santa's Little Helper
  • Guests

Posted 21 July 2004 - 09:27 AM

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. :D

#2 Chris

Chris
  • Administrators
  • 10727 posts

Posted 21 July 2004 - 11:25 AM

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.

#3 Santa's Little Helper

Santa's Little Helper
  • Guests

Posted 20 August 2004 - 09:48 PM

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? :cry:

#4 Chris

Chris
  • Administrators
  • 10727 posts

Posted 21 August 2004 - 12:26 AM

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.