Fallout 76 Script

Ask gaming related questions (AHK v1.1 and older)
Autoro
Posts: 1
Joined: 28 Nov 2018, 11:44

Fallout 76 Script

28 Nov 2018, 11:56

New member, and new to AHK. Was wondering if I could get some assistance with a script to use in Fallout 76...

What I need is for the game to register a macro that's set up to press "R" x amount of times. Problem being is that I have no idea how to go about doing that, and I've not managed to find anything online on how to get this to work.

Any help is appreciated. Thanks.
User avatar
SL5
Posts: 879
Joined: 12 May 2015, 02:10
Contact:

Re: Fallout 76 Script

30 Nov 2018, 12:04

while(a_index < 9)
send,R
operatg0r
Posts: 11
Joined: 18 Feb 2016, 13:36

Re: Fallout 76 Script

02 Dec 2018, 11:40

No send or sendraw work in fallout 76...

Code: Select all

#InstallKeybdHook
;#InstallMouseHook
;#maxhotkeysperinterval 99999
;0SetKeyDelay, 70

F1::

loop, 1  { 
tooltip,e
Sendraw, e
Sleep, 500

tooltip,tab
send, {TAB}
Sleep, 500
tooltip,r
send, r
Sleep, 500
tooltip,space
send, {SPACE}
Sleep, 500
tooltip,tab
send, {TAB}
Sleep, 500
tooltip,er
send,e
Sleep, 500
 

}
return
 
User avatar
SL5
Posts: 879
Joined: 12 May 2015, 02:10
Contact:

Re: Fallout 76 Script

02 Dec 2018, 13:55

what aboutn clipboard?

send by clipboard
operatg0r
Posts: 11
Joined: 18 Feb 2016, 13:36

Re: Fallout 76 Script

04 Dec 2018, 01:36

?? code not sure your you mean
User avatar
SL5
Posts: 879
Joined: 12 May 2015, 02:10
Contact:

Re: Fallout 76 Script

04 Dec 2018, 03:47

operatg0r wrote:
04 Dec 2018, 01:36
?? code not sure your you mean

Code: Select all

clipboardPaste(s){
  ToolTip1sec(A_LineNumber . " " .  RegExReplace(A_LineFile,".*\\")  . " " . A_ThisFunc . A_ThisLabel)
	if(!s){
		MsgBox, :(  clipboardPaste(s)  '%s%' = s (line:%A_LineNumber%) `n 
		return false
	}

  clipboardOld := clipboard
  clipboard := s
  Suspend,on
  Send,^v
  Suspend,off
  clipboard := clipboardOld


  return true
}
or

Code: Select all

sendClipboard(c){
	if(!c)
		Return

	SetTitleMatchMode,3 ;3: A window's title must exactly match WinTitle to be a match.
	WinGetActiveTitle,at
	SetKeyDelay,-1 ; By contrast, a delay of -1 will never sleep. For better reliability, 0 is recommended as an alternative to -1.
	Suspend,On
	if(c == Clipboard){
		Clipboard := Clipboard . " " ; sollte anfangs schon ein bisschen unterschiedlich sein 11.01.2018 18:31
	}
	if(c == Clipboard){
		isError := true
		Msgbox,:( Oops `n c == Clipboard (%A_LineFile%~%A_LineNumber%)
		return
	}

	ClipboardBackup := Clipboard
	Clipboard := c
	IfWinActive,% at
	{
		Clipboard := c
		Send,^v
	}else{
		isError := true
		Msgbox,:( Oops `n NOTActive %at% (%A_LineFile%~%A_LineNumber%)
	}
	if(c <> Clipboard){
		isError := true
		Msgbox,:( Oops `n c <> Clipboard (%A_LineFile%~%A_LineNumber%)
	}
	Suspend,Off
	if(InStr(Clipboard,"~token:")){
		Clipboard := ClipboardBackup
		send,^z^z
		Msgbox,:( Mist token inside :( `n (%A_LineFile%~%A_LineNumber%)
	}
	Clipboard := ClipboardBackup
	if(ClipboardBackup <> Clipboard){
		isError := true
		l1 := StrLen(ClipboardBackup)
		l2 := StrLen(Clipboard)
		Msgbox,:( Oops `n l1=%l1%`n l2=%l2% `n ClipboardBackup == Clipboard (%A_LineFile%~%A_LineNumber%)
	}
	return
}
operatg0r
Posts: 11
Joined: 18 Feb 2016, 13:36

Re: Fallout 76 Script

04 Dec 2018, 09:20

Ummm other then Suspend,on and off not sure what makes this work in a game? all I see is send
User avatar
SL5
Posts: 879
Joined: 12 May 2015, 02:10
Contact:

Re: Fallout 76 Script

04 Dec 2018, 10:41

operatg0r wrote:
04 Dec 2018, 09:20
Ummm other then Suspend,on and off not sure what makes this work in a game? all I see is send
I have no experience playing.
i have experience with some websites where i could not write with autohotkey, but clipsend works.
good luck.
operatg0r
Posts: 11
Joined: 18 Feb 2016, 13:36

Re: Fallout 76 Script

05 Dec 2018, 01:57

[SOLVED]

UPDATE: you may just be able to use SendMode Input or some other option instead of script below https://autohotkey.com/docs/commands/SendMode.htm

use DLL call see keycodes https://docs.microsoft.com/en-us/windows/desktop/inputdev/virtual-key-codes

Code: Select all

keybd_event("e")

keybd_event(key, duration=30)
{
  dllcall("keybd_event", uchar, GetKeyVK(key), uchar, GetKeySC(key), uint, 0, ptr, 0)
  sleep duration
  dllcall("keybd_event", uchar, GetKeyVK(key), uchar, GetKeySC(key), uint, 2, ptr, 0)
}




 
DllCall("mouse_event", "UInt", 0x08) ; right button down
DllCall("mouse_event", "UInt", 0x01, "UInt", 0, "UInt", 1000) ; move 
DllCall("mouse_event", "UInt", 0x10) ; right button up
 
DllCall("mouse_event", "UInt", 0x08) ; right button down
DllCall("mouse_event", "UInt", 0x01, "UInt", 0, "UInt", -600) ; move 
DllCall("mouse_event", "UInt", 0x10) ; right button up
 
DllCall("mouse_event", "UInt", 0x08) ; right button down
DllCall("mouse_event", "UInt", 0x01, "UInt", -250, "UInt", 0) ; move 
DllCall("mouse_event", "UInt", 0x10) ; right button up
smit
Posts: 1
Joined: 03 Jan 2019, 20:13

Re: Fallout 76 Script

03 Jan 2019, 20:18

I'm having some trouble I tried to use this

Code: Select all

toggle := 0
return

sendkey() {
	send e
}

f2::
toggle := !toggle
settimer sendkey, % toggle ? "50" : "off"
return

and this

Code: Select all

#NoEnv
SendMode Input
SetWorkingDir, % A_ScriptDir
#SingleInstance, Force

F7::
	toggle:=1
	while (toggle)
	{
		sleep,.1
		send, q
	}
Return

F8::  toggle:=!toggle


Both fail to pass the keys into Fallout76 can someone help?
Snipertoros
Posts: 1
Joined: 24 Sep 2020, 07:15

Re: Fallout 76 Script

24 Sep 2020, 07:21

hello, I have a script that I was given and since the last update of fallout 76 it has become unusable, can someone from this forum help me or teach me how to update it so that he can reformulate?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 68 guests