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.
Fallout 76 Script
Re: Fallout 76 Script
while(a_index < 9)
send,R
send,R
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Fallout 76 Script
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
Re: Fallout 76 Script
what aboutn clipboard?
send by clipboard
send by clipboard
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Fallout 76 Script
?? code not sure your you mean
Re: Fallout 76 Script
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
}
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
}
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Fallout 76 Script
Ummm other then Suspend,on and off not sure what makes this work in a game? all I see is send
Re: Fallout 76 Script
I have no experience playing.
i have experience with some websites where i could not write with autohotkey, but clipsend works.
good luck.
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Fallout 76 Script
[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
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
Re: Fallout 76 Script
I'm having some trouble I tried to use this
and this
Both fail to pass the keys into Fallout76 can someone help?
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?
-
- Posts: 1
- Joined: 24 Sep 2020, 07:15
Re: Fallout 76 Script
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?
Who is online
Users browsing this forum: No registered users and 68 guests