Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

need help about auto chat

$
0
0

guys, i need help about creating auto chat looping.. please help :(

i try using notepad as a test, but i dont know how to loop after sending chat2 going to chat 1 again :(

AutoIt         
#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt("WinTitleMatchMode", 2) #Region ### START GUI section ### Form= $Form1 = GUICreate("Form1", 218, 300, 192, 124) GUICtrlCreateLabel("chat1:",16,6,130,121) $chat1 = GUICtrlCreateInput("", 16, 24, 185, 21) GUICtrlCreateLabel("Sleep 1000 millisecond = 1 second",16,57,200,22) $Sleep1 = GUICtrlCreateInput("",16, 75, 185, 21) GUICtrlCreateLabel("chat2:",16, 106, 140, 22) $Pass = GUICtrlCreateInput("", 16, 125, 185, 21,) GUICtrlCreateLabel("Sleep 1000 millisecond = 1 second",16,155,200,22) $Sleep2 = GUICtrlCreateInput("",16, 175, 185, 21) $Button1 = GUICtrlCreateButton("Button1", 56, 230, 107, 25) GUISetState(@SW_SHOW) #EndRegion ### END GUI section ### While 1     $nMsg = GUIGetMsg()     Switch $nMsg         Case $GUI_EVENT_CLOSE             Exit         Case $Button1             Run ("Notepad.exe")             WinWait("Notepad")             For             Send("User: " & GUICtrlRead($chat1))             Send("{enter}")             Sleep ( GUICtrlRead($Sleep1) )             Send("Password: " & GUICtrlRead($chat2))             Send("{enter}")             Sleep ( GUICtrlRead($Sleep2) )             Send ("End")             ExitLoop 2       EndSwitch  WEnd

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>