Page 1 of 1

Mouse Control - Toggle Repeat On/Off

Posted: Fri May 23, 2008 5:59 pm
by katana80
Hi. Newbie with EventGhost but love it so much!

Anyway I use a USB HID IR Receiver and using a universal TV remote with it.
On one of my remotes, the cursor buttons (up/down/left/right) support autorepeat, so I am able to use the mouse cursor movement action just fine.

However, on my other remote, the cursor buttons do not support autorepeat. Therefore, when I hold down a cursor button, it only sends a single IR command to EventGhost and doesn't repeat so the mouse cursor only moves once. I played around with the 'Autorepeat' action provided, but I think that only works for remotes that support autorepeat.

Is there a way to get mouse cursor movement without an autorepeating remote?
If not, I would like to suggest a new feature that allows an action to be toggled on/off with the same (or different) button.

For example, I push Up button on my remote, which begins Mouse cursor movement Up and repeats until I push the Up button on my remote again to stop the action.

If there already is such a feature or script for this support please let me know!

Thanks!
katana80

Re: Mouse Control - Toggle Repeat On/Off

Posted: Fri May 23, 2008 9:13 pm
by Bitmonster
You can make a PythonScript action with:

Code: Select all

eg.plugins.Mouse.plugin.thread.receiveQueue.put(90)
to let the mouse move in direction 90 degrees and another one with

Code: Select all

eg.plugins.Mouse.plugin.thread.receiveQueue.put(-2)
to stop the movement.

But I don't think, it will be very handy if the remote doesn't supply the duration of the button press.

Re: Mouse Control - Toggle Repeat On/Off

Posted: Sun May 25, 2008 5:14 pm
by katana80
Thanks!
I actually found out I just programmed my learning remote wrong...it actually handles button press duration.
But your tip will come in handy for other features I might want in the future.