Code: Select all
1:: ;Starts and Stops Loop.
Toggle:=!Toggle ;Toggle. (0 or 1)
While Toggle ;Loop while toggle = 1.
{
Send t/crate pickup{enter} ;send message.
Sleep, 6000 ;Sleep 8 seconds.
}
return
Code: Select all
1:: ;Starts and Stops Loop.
Toggle:=!Toggle ;Toggle. (0 or 1)
While Toggle ;Loop while toggle = 1.
{
Send t/crate pickup{enter} ;send message.
Sleep, 6000 ;Sleep 8 seconds.
}
return
Code: Select all
1::SetTimer, 1 Up, % (t1 := !t1) ? 6000 : "Off"
1 Up::Send % t1 ? "t/crate pickup`n" : ""
2::SetTimer, 2 Up, % (t2 := !t2) ? 4000 : "Off"
2 Up::Send % t2 ? "t/crate putdown`n" : ""
life saver!mikeyww wrote: ↑07 Aug 2022, 06:40Welcome to this AutoHotkey forum!
Code: Select all
1::SetTimer, 1 Up, % (t1 := !t1) ? 6000 : "Off" 1 Up::Send % t1 ? "t/crate pickup`n" : "" 2::SetTimer, 2 Up, % (t2 := !t2) ? 4000 : "Off" 2 Up::Send % t2 ? "t/crate putdown`n" : ""
couldnt figure out how to edit the commentkickrocks wrote: ↑26 Aug 2022, 01:19life saver!mikeyww wrote: ↑07 Aug 2022, 06:40Welcome to this AutoHotkey forum!
Code: Select all
1::SetTimer, 1 Up, % (t1 := !t1) ? 6000 : "Off" 1 Up::Send % t1 ? "t/crate pickup`n" : "" 2::SetTimer, 2 Up, % (t2 := !t2) ? 4000 : "Off" 2 Up::Send % t2 ? "t/crate putdown`n" : ""
this might be a bit of a push, but is it possible to script scrolling down a dialog box and hitting enter automatically? i'm not sure how advanced this script stuff goes but looking at getting the whole script totally automatic lol.
attached is a video of the procedure; https://streamable.com/b758ilmikeyww wrote: ↑26 Aug 2022, 07:49I'm not sure what you mean by these things. Screenshots or more detailed, step-by-step descriptions of what should happen would help.
Also see: https://www.autohotkey.com/docs/commands/Control.htm#ChooseString
Code: Select all
1:: ; 1 is pressed
t1 := !t1 ; Toggle the variable
If t1
SetTimer, 1 Up, 6000
Else SetTimer, 1 Up, Off
Return
1 Up:: ; 1 is released
If t1
Send t/crate pickup`n
Else SoundBeep, 1500
Return