When color found - Sends discord message Topic is solved
Posted: 12 Sep 2019, 18:38
Hello, I’ve been working on a script that searches for a color in a specific region of game. Once found the script alt tabs to discord, types a message, the alt tabs back to game to continue search. The script works in its current state but does rely on only having discord and game up for the alt tabs to work and I would love to clean it up.
Can anyone recommend a better way to send the discord message once the color is found? Don’t mind doing research just need a direction to head.
Edit: This method breaks Discord TOS, I’m sure there’s a way to do same function using web hooks or something?
Thanks
Can anyone recommend a better way to send the discord message once the color is found? Don’t mind doing research just need a direction to head.
Edit: This method breaks Discord TOS, I’m sure there’s a way to do same function using web hooks or something?
Thanks
Code: Select all
Pause On
F10::
Pause, Off
ToolTip, SCANNING, 10, 10, 1
Loop
{
Sleep, 1000
PixelSearch, Px, Py, 378, 25, 1540, 47, 0xEAFF00, 0, Fast
if ErrorLevel = 1
{
Continue
}
else
{
Sleep, 1500
Send, {ALT DOWN}{TAB}{ALT UP}
Sleep, 1500
Send member > COLOR FOUND < {Enter}
Sleep, 500
Send, {ALT DOWN}{TAB}{ALT UP}
Sleep, 114500
Continue
}
Sleep, 1000
}
F11::ExitApp
return