Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Phoenix616/087ea097347b59fcf352d0cd5195c4a3 to your computer and use it in GitHub Desktop.
Save Phoenix616/087ea097347b59fcf352d0cd5195c4a3 to your computer and use it in GitHub Desktop.
Steam Controller companion script to make some functions that the controller config doesn't support (mainly text input) https://s.moep.tv/gwsc
/*
~~ GW2 Total Control Steam Controller config companion script ~~
By CoryOp (https://redd.it/5vix4x), modified by The Moep aka Phoenix616
See https://s.moep.tv/gwsc for more information!
Changelog:
v1.1:
- Used methods to simplify keybinds
- Added emotes
*/
#If WinActive("Guild Wars 2")
; Chat commands
f7::Command("s")
f8::Command("p")
f9::Command("m")
f10::Command("r")
; Quick chat
!f7::Chat(";D") ; currently unused in the controller config
!f8::Chat("^^")
!f9::Chat("To me!")
!f10::Chat("I follow")
^f7::Chat("Hi! o/")
^f8::Chat("Okay")
^f9::Chat("Yes")
^f10::Chat("No")
+f7::Chat("Help!")
+f8::Chat("thx!")
+f9::Chat("Invite please")
+f10::Chat("BRB")
!numpad8::Chat("Typing...")
^numpad7::
Send {Enter}
Sleep, 2
Send +{Click}
Sleep, 2
Send {enter}
Return
; Info text
^numpad8::Chat("FYI I'm using my Steam Controller to play, so either my typing will be slow or I will use one of my preset chat lines. More info here: s.moep.tv/scgw")
; Emotes
; "Positive"
<^!F10::Command("ja @") ; Targeted
<^!2::Command("bow @") ; Targeted
<^!3::Command("cheer @") ; Targeted Sitting
<^!0::Command("laugh @") ; Targeted Sitting
<^!F7::Command("ty @") ; Targeted Sitting
<^!F9::Command("wave @") ; Targeted Sitting
<^!numpad9::Command("surprised @") ; Targeted
<^!numpad5::Command("salute @") ; Targeted
; "Negative"
<^!numpad1::Command("no @") ; Targeted
<^!1::Command("beckon @") ; Targeted
<^!4::Command("cower @") ;
<^!6::Command("cry @") ;
<^!8::Command("upset @") ;
<^!numpad4::Command("sad @") ;
<^!numpad6::Command("shrug @") ; Targeted Sitting
<^!F8::Command("menace @") ; Targeted
; "Actions"
<^!5::Command("crossarms @") ; Sitting
<^!7::Command("dance @") ;
<^!9::Command("kneel @") ;
<^!numpad2::Command("point @") ; Targeted
<^!numpad3::Command("ponder @") ;
<^!numpad7::Command("sit @") ;
<^!numpad8::Command("sleep @") ;
<^!numpad0::Command("talk @") ; Targeted
; Synced Commands
; "Positive"
>^!F10::Command("ja *") ; Targeted
>^!2::Command("bow *") ; Targeted
>^!3::Command("cheer *") ; Targeted Sitting
>^!0::Command("laugh *") ; Targeted Sitting
>^!F7::Command("ty *") ; Targeted Sitting
>^!F9::Command("wave *") ; Targeted Sitting
>^!numpad9::Command("surprised *") ; Targeted
>^!numpad5::Command("salute *") ; Targeted
; "Negative"
>^!numpad1::Command("no *") ; Targeted
>^!1::Command("beckon *") ; Targeted
>^!4::Command("cower *") ;
>^!6::Command("cry *") ;
>^!8::Command("upset *") ;
>^!numpad4::Command("sad *") ;
>^!numpad6::Command("shrug *") ; Targeted Sitting
>^!F8::Command("menace *") ; Targeted
; "Actions"
>^!5::Command("crossarms *") ; Sitting
>^!7::Command("dance *") ;
>^!9::Command("kneel *") ;
>^!numpad2::Command("point *") ; Targeted
>^!numpad3::Command("ponder *") ;
>^!numpad7::Command("sit *") ;
>^!numpad8::Command("sleep *") ;
>^!numpad0::Command("talk *") ; Targeted
/*
Helper methods
/ \/ \
(/ //_ \_
.-._ \|| . \
\ '-._ _,:__.-"/---\_ \
______/___ '. .--------------------'~-'--.)__( , )\ \
`'--.___ _\ / | Here ,' \)|\ `\|
/_.-' _\ \ _:,_ Be Dragons " || (
.'__ _.' \'-/,`-~` |/
'. ___.> /=,| Abandon hope all ye who enter |
/ .-'/_ ) '---------------------------------'
)' ( /(/
\\ "
'=='
*/
Chat(text) {
Send {enter}
Sleep, 2
SendRaw %text%
Sleep, 2
Send {enter}
Return
}
Command(cmd) {
Send {enter}
Sleep, 2
SendRaw /%cmd%
Sleep, 2
Send {enter}
Return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment