Jump to content

Autohotkey For Mouse Movement/clicking

Menu BattleMechs

3 replies to this topic

#1 Aufelir

    Member

  • PipPip
  • 41 posts

Posted 21 May 2019 - 06:19 AM

Hello all!
I have tried to use this script to quickly change 'mechs using alt+number:

#SingleInstance
!1::
CoordMode, Mouse, Client
Send {Click, 75, 80} ; Clicks "SELECT 'MECH" button
SetMouseDelay, 50 ; Delay of 50 milliseconds
Send {Click, 680, 610} ;Clicks "LCT-PB" card
SetMouseDelay, 50 ; Delay of 50 milliseconds
Send {Click, 1435, 14} ;Clicks "QUICK PLAY" button
return

The problem I am having is that, while the script works, it doesn't work in MWO at all. I have tried both running the script as admin, compiling it to an application (.exe) and running the compiled version as admin. Is this some kind of anti-cheat blocking mouse movement?

Any help is appreciated!




[color=#000000]
[/color]
[color=#737373]
[/color]

Edited by Aufelir, 22 May 2019 - 02:50 AM.


#2 GoodTry

    Member

  • PipPipPipPipPipPip
  • 268 posts

Posted 21 May 2019 - 02:42 PM

I used to use a bunch of AHK scripts for swapping out engines and modules, circa 2016. I don’t think they work any more.

#3 Aufelir

    Member

  • PipPip
  • 41 posts

Posted 22 May 2019 - 02:49 AM

Okay, thank you for the feedback!

#4 LordNothing

    Member

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Ace Of Spades
  • Ace Of Spades
  • 16,796 posts

Posted 22 May 2019 - 02:56 AM

this is where i break out the arduino and use it as a fake keyboard/mouse.

i imagine a board with a bunch of buttons each with a picture of a mech on it, i hit one and it does its magic.

brownie points if you have a table of available mechs and their usage scenarios. i can then pick a couple mechs that i want, and with that the system will fill up a deck with mechs that fit their playstyle while using as much tonnage as possible.

super 1337 points if you use screen keys.

Edited by LordNothing, 22 May 2019 - 03:01 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users