Code: Select all
wTitle := "ahk_class Chrome_WidgetWin_1 ahk_exe Discord.exe", control := "ahk_parent"
^`::
If !WinExist(wTitle) {
MsgBox, 48, Error, Window was not found.`n`n%wTitle%
Return
} Else SoundBeep, 1500, 120
ControlSend, %control%, {Text}:-b, %wTitle%
Sleep, 900
SetTimer, Go, 10000
SetTimer, Stop, -1100000
Go:
ControlSend, %control%, {Enter} , %wTitle%
Return
Stop:
SetTimer, Go, Off
Return
ok so its working for the most part. the major issue is it not repeating the action until the stop timer goes off, its typing it one time and entering it soon after i start the script but then it seems as if the script is done at that point and doesn't repeat per go timer.
minor issue, which I was hoping/thinking we fixed with the AHK. command line is I still need to have the curser selecting the desired chat box for the script to insert and enter. meaning the script wont work as I am multi tasking other programs