Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

JayJay-xox

macrumors newbie
Original poster
Nov 22, 2018
1
0
Hello,

I'm looking for some help in converting this Autohotkey Script to Apple Script.

f2::
MouseGetPos, xpos, ypos
ControlClick, x%xpos% y%ypos%, Elio
ControlClick, x%xpos% y%ypos%, Sram
ControlClick, x%xpos% y%ypos%, Panda
ControlClick, x%xpos% y%ypos%, Enu
ControlClick, x%xpos% y%ypos%, Ecaflip
ControlClick, x%xpos% y%ypos%, Iop
ControlClick, x%xpos% y%ypos%, Eni
ControlClick, x%xpos% y%ypos%, Masq
return

Basically what it will do is when the key f2 is pressed, it will then click my current mouse pos on every other window of the application.

Now from looking on the forum myself I have come up with the following assumption of what I would need:
1. The application is called dofus, and then once each character is logged the window name changes to Elio, Sram etc... so I'll need to set/define the application?
2. I would need to use a program like FastScripts to assign a key to my script?

Any help or advice on this will be greatly appreciated.

Jay.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.