Hey there, (this is a Twitch problem)
i know there are topics already about it and i searched for them aswell, but it loks like they are not working for me or anymore. My Situation is, i have a Bot (Seperated from my own PC) and i want if a user writes for example !overlay 1
that my bot sends a message to my irc (which is running on my pc) and when my irc gets this message, it pushs the Button.
I tested several codes i found but it looks like they are not working
on *:text:f1:#:sendkeys {F1}
alias sendkeys var %a = $ticks | .comopen %a WScript.Shell | if !$comerr { .comclose %a $com(%a,SendKeys,3,bstr,$1-) }
also i tried it with this
alias sendkeys {
var %a = sendkeys $+ $ticks
.comopen %a WScript.Shell
if !$comerr {
var %b = $com(%a,SendKeys,3,bstr,$1-)
.comclose %a
return %b
}
return 0
}
+
msg $chan //sendkeys {f1}
with the second option it writes this in the chat but when i write it manually it pushs the button f1.
can anyone help me out here?
edit: by pressing the key it would switch the overlay, since i have hotkeys set on OBS