Guest HunterL1fe9 Posted April 20, 2016 Share Posted April 20, 2016 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 More sharing options...
Guest HunterL1fe9 Posted April 20, 2016 Share Posted April 20, 2016 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 More sharing options...
01386612 Posted April 19, 2017 Share Posted April 19, 2017 SetTitleMatchMode, 2 #SingleInstance Force #IfWinActive, Fallout4 *RButton Up:: If (Toggle := !Toggle) { Send {Click Down Right} } Else { Send {RButton up} } Return #IfWinActiveGreat 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 More sharing options...
Recommended Posts