Help, im trying to get this working. The goal is to make X1 (mouse button) hold while CapsLock is hold. Reason to do so is that in Arma with ACRE you can speak on voice chat (to ppl close to you) or on radio (with Capslock). But i can only set one button in DXtory to record my voice with push-to-talk. The script is working in other games (like Chivalry) but in arma i have strange problem.
When i run the script normally (without admin rights) i can use radio but the voice isnt recording.
When i run the script with admin rights i can't use radio and voice is recording.
Here's the script (simplest as i can be):
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
CapsLock::
while GetKeyState("CapsLock", "P")
{
Click down X1
}
Click up X1
return
NVM got this working, the key was ~ before caps lock + run as admin, can be closed