Send Mouse Down and Mouse Up, not just Mouse Click

26 views
Skip to first unread message

Ben Draffin

unread,
Aug 6, 2014, 5:31:57 PM8/6/14
to keym...@googlegroups.com
Hello!

I have been loving Keymando for a few weeks now, but have been wondering if it is possible to do the following:

((Note, if this functionality exists it will be possible to move windows between spaces))

1. Find x,y location of current active window
2. Move mouse to (window_x + 100, window_y + 10)   IE.   MouseMacros::move_mouse(100,10)   but with  variables
3. Press Mouse Button Down         IE.  left_click()   but with   left_mouse_down()
4. Send <Control-right>
5. Release Mouse Button              IE.   left_mouse_up()
6. (Optional: Return mouse to initial location)



I am also having a lot of trouble using variables. Is there access to variables in keymandorc.rb  ?

If this is helpful:

Sean Mackesey

unread,
Aug 7, 2014, 10:41:48 AM8/7/14
to keym...@googlegroups.com
I don't know whether one can do this using Keymando's directives, but, depending on what you're trying to accomplish, you may be able to create an applescript that does it and then trigger it with an arbitrary Keymando mapping. Are you trying to click at a truly arbitrary point, or are you just trying to interact with menu items or click buttons? Unfortunately Applescript is pretty bad with the mouse, but it can handle menu items.

- Sean
Reply all
Reply to author
Forward
0 new messages