Jimbei Posted July 11, 2011 Posted July 11, 2011 (edited) I'm trying to build a bot that harvests two strings to notepad expandcollapse popup#include <GUIConstantsEx.au3> #include <GUIConstants.au3> GUICreate("GUI 1", 200, 100) GUICtrlCreateLabel("Hello world! How are you?", 30, 10) $Button_OK = GUICtrlCreateButton("OK", 90, 50, 60) $Button_Cancel = GUICtrlCreateButton("Cancel", 20, 50, 60) GUISetState(@SW_SHOW) While 1 ; Asks for strings $GUInput = GUIGetMsg() Select Case $GUInput = $Button_OK $String1 = Inputbox ("String1", "") $String2 = InputBox ("String2", "") ExitLoop Case $GUInput = $Button_Cancel Exit EndSelect WEnd While 2 ; Sumbits information to Notepad Run ("Notepad.exe") WinWaitActive ("Untitled - Notepad") Send ($String1) Send ("{ENTER}") Send ($String2) Send ("^s") WinWaitActive ("Save as") ControlSend("Untitled - Notepad", "", "[CLASS:File; INSTANCE:4]") Winwaitactive ("Save As") Send ("Strings'n'rope'n'stuff") ; the file name Send ("{ENTER}") Wend Edited July 11, 2011 by Jimbei
smartee Posted July 11, 2011 Posted July 11, 2011 take a moment to read the forum rules first, this type of discussion is prohibited here.
smartee Posted July 11, 2011 Posted July 11, 2011 Am I in the clear if I edit it?Your question is far from specific to gaming, so maybe, but then again we all know your intentions; so most likely you're better off searching for help elsewhere Rules are rules.
Jimbei Posted July 11, 2011 Author Posted July 11, 2011 This is, as far as I know, the ONLY place I can search for help. It would be helpful to point me out to other places if they exist.
jaberwacky Posted July 11, 2011 Posted July 11, 2011 Philosophical inquiry follows. Does the word 'bot' necessarily denote game automation? Helpful Posts and Websites: AutoIt Wiki | Can't find what you're looking for on the Forum? My scripts: Guiscape | Baroque AU3 Code Formatter | MouseHoverCalltips | SciTe Customization GUI | ActiveWindowTrack Toy | Monitor Configuration UDF
Jimbei Posted July 11, 2011 Author Posted July 11, 2011 Yes, but at this point, it can't even login, much less automate anything.
jaberwacky Posted July 11, 2011 Posted July 11, 2011 Ok, so now it's totally obvs that this is a game bot. Helpful Posts and Websites: AutoIt Wiki | Can't find what you're looking for on the Forum? My scripts: Guiscape | Baroque AU3 Code Formatter | MouseHoverCalltips | SciTe Customization GUI | ActiveWindowTrack Toy | Monitor Configuration UDF
Developers Jos Posted July 11, 2011 Developers Posted July 11, 2011 Yes, but at this point, it can't even login, much less automate anything.Read the forum rules and stick to them.ThanksJos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts