Jump to content

"Adaptive Crosshair" Toggle hotkey


Recommended Posts

This is useless to me. You can use it all you want' date=' i mean i find absolutely ZERO benefit to using adaptive crosshair, it's a burden no matter the situation. Regardless, if you'd find use for it I guess go for it.[/quote']

This thought holds value. I think the burden may be lighter with t he toggle key though, and levels the playing field for the guys with the AHK script already

Link to comment

+1

I use AHK to adjust volume in game too...here's the code if anyone wants it...use * to mute, -/+ to increase/decrease

;// SCRIPT START

;------------------------------------------------------------------------------

;24 December 2014 (Merry Christmas)

;------------------------------------------------------------------------------

;This script was put together by soul[kobk] from 2 pre-existing scripts for

;autohotkey (John T and Xander Lih), customised and modified to suit Arma 3

;(specifically for use with Battle Royale). Now you are able to control volume

;and mute annoying lobby chatter and the loud plane at round start with the

;press of a button. Please make sure that "Volume Mixer" is kept open at all

;times the script is running, else you will encounter errors.

;------------------------------------------------------------------------------

;Keyboard controls are as below...

;Volume down (decremented by 2) = Numpad -

;Volume up (incremented by 2) = Numpad +

;Volume mute/unmute = Numpad *

;------------------------------------------------------------------------------

;Greets to the "Arma 3 - Battle Royale" development staff, the numerous Arma 3

;game streamers and the many supporters/donators that keep Battle Royale alive!

;------------------------------------------------------------------------------

;P.S. For all players that will use this script, you're welcome.

;------------------------------------------------------------------------------

SetTitleMatchMode, 2

;Launches Volume Mixer

IfWinNotExist, ahk_class #32770

{

Run, "%A_WinDir%\System32\SndVol.exe" -r 88888888

WinSet, Top,, ahk_class #32770

}

;------------------------------------------------------------------------------

$NumPadSub::

VolDn()

return

;Hotkey to decrease volume

NumPadSub::NumPadSub

VolDn()

{

IfWinExist, Arma 3

{

ToolbarWindowNumber = 322

msctls_trackbarNumber = 321

Loop {

ControlGetText, ControlName, ToolbarWindow%ToolbarWindowNumber%, ahk_class #32770

If ControlName = Mute for Arma 3

{

ControlSend, msctls_trackbar%msctls_trackbarNumber%, {Down 2}, ahk_class #32770

Break

} Else {

If ToolbarWindowNumber < 328

{

ToolbarWindowNumber := ToolbarWindowNumber + 2

msctls_trackbarNumber := msctls_trackbarNumber + 1

} Else {

If ToolbarWindowNumber = 328

{

ToolbarWindowNumber = 3210

msctls_trackbarNumber := msctls_trackbarNumber + 1

} Else {

If ToolbarWindowNumber < 3242

{

ToolbarWindowNumber := ToolbarWindowNumber + 2

msctls_trackbarNumber := msctls_trackbarNumber + 1

} Else {

MsgBox, 16, Volume Mixer Error!, ERROR: Volume Mixer is not found!`nThis could occur if the Volume Mixer has more than 20 opened`napplications or the Volume Mixer was accidentally closed.

Break

}

}

}

}

}

}

Return

}

;------------------------------------------------------------------------------

$NumPadAdd::

VolUp()

return

;Hotkey to increase volume

NumPadAdd::NumPadAdd

VolUp()

{

IfWinExist, Arma 3

{

ToolbarWindowNumber = 322

msctls_trackbarNumber = 321

Loop {

ControlGetText, ControlName, ToolbarWindow%ToolbarWindowNumber%, ahk_class #32770

If ControlName = Mute for Arma 3

{

ControlSend, msctls_trackbar%msctls_trackbarNumber%, {Up 2}, ahk_class #32770

Break

} Else {

If ToolbarWindowNumber < 328

{

ToolbarWindowNumber := ToolbarWindowNumber + 2

msctls_trackbarNumber := msctls_trackbarNumber + 1

} Else {

If ToolbarWindowNumber = 328

{

ToolbarWindowNumber = 3210

msctls_trackbarNumber := msctls_trackbarNumber + 1

} Else {

If ToolbarWindowNumber < 3242

{

ToolbarWindowNumber := ToolbarWindowNumber + 2

msctls_trackbarNumber := msctls_trackbarNumber + 1

} Else {

MsgBox, 16, Volume Mixer Error!, ERROR: Volume Mixer is not found!`nThis could occur if the Volume Mixer has more than 20 opened`napplications or the Volume Mixer was accidentally closed.

Break

}

}

}

}

}

}

Return

}

;------------------------------------------------------------------------------

$NumpadMult::

ToggleMute()

return

;Hotkey to mute/unmute volume

NumpadMult::NumpadMult

ToggleMute()

{

IfWinExist, Arma 3

{

ToolbarWindowNumber = 322

msctls_trackbarNumber = 321

ControlGetPos, refX, , refW, , Arma 3, Volume Mixer

x = -1

while ( x != "")

{

tbIDX := (A_Index * 2)

ControlGetPos, x, , , , ToolbarWindow32%tbIDX%, Volume Mixer

diff := x - refX

if (diff > 0 && diff < refW)

{

ControlClick, ToolbarWindow32%tbIDX%, Volume Mixer

break

}

}

}

Return

}

;------------------------------------------------------------------------------

;// SCRIPT END

Link to comment
Motown has stated that he's fine with AHK crosshair scripts. So we don't ban for it. I highly doubt Paratus would include it in a future patch as a user action key.

I will only offer you advice to not do anything else with AHK that a rational person would consider 'giving an advantage over others' as it's both a 3rd party app...and scripting.

3rd party scripting santa

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...