BraedonG Posted August 28, 2010 Posted August 28, 2010 Okay guys... So I've been messing around with AutoIt for the past few weeks, mostly involving gaming, and I've ran into a few snags. But this recent one that I ran into on this new script baffles me. I wrote this script to spam things in trade chat for World of Warcraft. It's supposed to start, open WoW, then start spamming the desired text in trade chat. I've been testing it in Notepad (which is why it sets focus to Notepad on startup), and instead of typing what I have in the input box, it types the numbers 3 and 4. It looks something like this. /2 3 4 3 4 etc, etc, etc... The script looks something like this. Any help would be great. And yes, I realize that every wanna-be game hacker comes here with their problems, so I apologize for perpetuating that. But honestly, I'm writing this not because I'm a wanna-be hacker, per-se. It's just that I'm sorta learning the ropes of autoit. I need something to learn with, and I like gaming, so that is my subject. Thanks for putting up with that rant. The code is below. #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 528, 211) $Input1 = GUICtrlCreateInput("Type your FIRST message here.", 8, 56, 505, 21) $Input2 = GUICtrlCreateInput("Type your SECOND message here.", 8, 86, 505, 21) $Input3 = GUICtrlCreateInput("NUMBER", 8, 120, 81, 21) $Button1 = GUICtrlCreateButton("SPAM", 416, 160, 89, 33, $WS_GROUP) $Label1 = GUICtrlCreateLabel("WoW SPAM in Trade Chat By: BraedonG", 8, 16, 288, 17) $Label2 = GUICtrlCreateLabel("Press ESC at any time to terminate the program.", 8, 168, 228, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Setup() Spam() EndSwitch WEnd HotKeySet("{ESC}", "Close") Func Close() Exit EndFunc ;==>Close AutoItSetOption("SendKeyDelay", 200) Func Spam() Do Sleep(Random(4000, 6000)) Send("{ENTER}") Send($Input1, 1) Send("{ENTER}") Sleep(Random(4000, 6000)) Send("{ENTER}") Send($Input2, 1) Send("{ENTER}") $Input3 = $Input3 - 1 Until $Input3 = 0 EndFunc ;==>Spam Func Setup() WinActivate("Untitled - Notepad") Sleep(Random(2000, 4000)) Send("{ENTER}") Sleep(Random(500, 800)) Send("/2 ") Sleep(Random(500, 800)) Send("{ENTER}") EndFunc ;==>Setup
bogQ Posted August 28, 2010 Posted August 28, 2010 (edited) Save youself alot of time for writing, read Announcement Game Bots and use search if you want to see how other similar topics about spaming or gamebots, especially about spamming ended up.My suggestion is for you to edit your first post, remove your whall script, and to forget about all of this.Ofc thats only suggestion Edited August 28, 2010 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.
czardas Posted August 28, 2010 Posted August 28, 2010 bogQ is being very polite. You should listen to his advice. operator64 ArrayWorkshop
Recommended Posts