Mouse Emulation Script

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
KenHadley
Junior Coder
Posts: 28
Joined: Thu Jul 14, 2011 5:02 pm

Mouse Emulation Script

Post by KenHadley » Sat Jan 03, 2015 9:21 pm

I am wondering if anyone has used MS to do a script like this SansMouse AHK script to emulate mouse navigation. It has a very interesting concept of 26 zones on the screen. You can almost click anywhere on the screen in three, maybe four, keystrokes. I don't know AHK well enough to write this, but have tweaked it by reading the comments.

http://www.autohotkey.com/board/topic/1 ... ifference/

I am slowing losing my mouse on my old laptop and am trying this out as a replacement. (I avoid external mice.) Given the capabilities of Marcus' tool, I can imagine there are advantages to doing something like this in MS, but could not find an example on the MS forum and don't know enough to start it myself.

I would be grateful for any feedback.

Ken

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Mouse Emulation Script

Post by Marcus Tettmar » Wed Jan 07, 2015 10:43 am

I'm sure something like this could be done. I can envisage using GetScreenRes to get the screen resolution, then calculating regions of the screen. You can create keyboard event handlers for all kinds of keyboard shortcuts and these could trigger mouse actions. So I'm sure it could all be done. But don't have any pre-existing scripts like this, no.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

KenHadley
Junior Coder
Posts: 28
Joined: Thu Jul 14, 2011 5:02 pm

Re: Mouse Emulation Script

Post by KenHadley » Wed Jan 07, 2015 10:08 pm

Thank you, Marcus. Maybe I'll take a stab at it.

I don't know enough about AHK to know how it is being done there, but it seems like all the tools and functionality of MS would offer real advantages.

Having used the AHK script a bit, I can say that there are some screens where it could function much better, for example, sensing when there is a Windows control in the selected region (check-box, etc.) and setting the focus on that automatically. Right now, the script is blindly geographical without reference to what is on the underlying portion of screen.

Ken

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts