Jump to content

Toggle aim and quick weapon button.


GSmog

Recommended Posts

Guest HunterL1fe9

I use this simple script only

 

*RButton Up::
If (Toggle := !Toggle){
Send {Click Down Right}
}
Else{
Send {RButton up}
}
Return
And while it works when i'm not in game (i test it on my desktop), it doesn't work when playing Fallout4. Does anyone have a clue on what's the issue here? Thanks in advance.
Link to comment
Share on other sites

Guest HunterL1fe9

I found out how to make it work. Better run the game in border-less windowed mode. If that doesn't help then run the script with administrator privileges (right click it and you'll see this option). Fo4 runs as admin, so AHK needs elevated privileges to work.

 

Hope this helps someone.

 

The script works perfectly. Thanks!

Link to comment
Share on other sites

  • 11 months later...
SetTitleMatchMode, 2
#SingleInstance Force
#IfWinActive, Fallout4

*RButton Up::
If (Toggle := !Toggle)
{
    Send {Click Down Right}
}
Else
{
    Send {RButton up}
}
Return
#IfWinActive

Great but how would one send RMB back up if LShift is pressed. Right now LShift (sprinting) terminates toggle aim but you need to click RMB after you stop sptinting to send it up and then click RMB again to toggle aim.

 

There is GetKeyState but I dunno where to insert it to make it work properly.

 

Also, RMB can also be used to rotate objects in settlement building so this using this script makes it difficult to use. Using key (C?) is slightly less precise. Is there a way to detect if settlement menu is open?

 

Hopefully, F4SE plugin is made one day to have toggle ads working more "natively".

Link to comment
Share on other sites

  • Recently Browsing   0 members

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