Code: Select all
CHATHODL(ByRef tex,ByRef wor,ByRef restart_chat)
{
restart_chat := "false"
Send, ^0
SetDefaultMouseSpeed, 2
Click,1733,302
ImageSearch,x_send,y_send,1449,780,1660,1133, ff_hodl_chat_send.png
VarChat := 0
While (ErrorLevel =1)
{
If VarChat >= 30
Msgbox, Chat Send button not found
Sleep, 100
ImageSearch,x_send,y_send,1449,780,1660,1133, ff_hodl_chat_send.png
If (ErrorLevel = 1)
Click,1787,1128
VarChat++
}
x_chat := (x_send - 75)
y_chat := (y_send - 42)
x_bottom := (x_send + 75)
y_bottom := (y_send - 120)
x_top := (x_send - 475)
y_top := (y_send - 800)
x_click := (x_send - 465)
y_click := (y_send - 810)
x_send := (x_send + 30)
clipboard := "nothing"
Click, %x_chat%, %y_chat%
Send, % tex
Sleep, 200
Click, %x_send%, %y_send%
Sleep, 200
Click Left Down,%x_bottom%, %y_bottom%
Sleep, 100
Click Left Up, %x_top%, %y_top%
MouseMove, x_click,y_click
Sleep, 100
Send, ^c
Sleep, 100
If (InStr(Clipboard, wor) = 0)
restart_chat := "true"
SetDefaultMouseSpeed, 2
}
tex := % "PepeBot says: Hi there " user_name ". Give me a second to gather some information."
wor := "gather"
CHATHODL(tex,wor,"false")
If (restart_chat = "true")
Goto, CHAT_RESTART