Yaan Posted July 20, 2007 Posted July 20, 2007 (edited) Well this my 1st auto-it program , Made for Warcraft iii. It Joins "random" custom games and leaves at start Anyway , When i click on the x button , it doesn't close. Any help? Thanks expandcollapse popup#include <GUIConstants.au3> #NoTrayIcon Opt("GUIOnEventMode", 1); Change to OnEvent mode $mainwindow = GUICreate("Gay Hack 1.0 ", 170, 100) GUICtrlCreateLabel("Made By YouAreANooB", 30, 10) $OnButton = GUICtrlCreateButton("On[M]", 20, 50, 60) GUICtrlSetOnEvent($OnButton, "On") $OffButton = GUICtrlCreateButton("Off[N]", 100, 50, 60) GUICtrlSetOnEvent($OffButton, "Off") GUISetState(@SW_SHOW) HotKeySet ("m","On") HotKeySet("n","Off") $time = 1 $TurnOff=False While 1 Sleep(1000) WEnd Func On() Do MouseClick("left", 415, 117, 1,0) Sleep(300) MouseClick("left",59,347,1,0) MouseClick("left",327,405,1,0) MouseClick("left",324,420,1,0) Sleep(3000) Send ("{ENTER}") Send ("{ENTER}") Send ("{f10}") MouseClick("left",508,315,1,0) MouseClick("left",509,171,1,0) Send ("{ENTER}") Send ("{ENTER}") $time=$time+1 until $time=99999 or $TurnOff=True EndFunc Func Off() $TurnOff=True EndFunc Edited July 20, 2007 by Yaan
enaiman Posted July 20, 2007 Posted July 20, 2007 GUISetOnEvent($GUI_EVENT_CLOSE, "Close") - under $mainwindow and Func Close() Exit EndFunc SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :)
Yaan Posted July 20, 2007 Author Posted July 20, 2007 enaiman said: GUISetOnEvent($GUI_EVENT_CLOSE, "Close") - under $mainwindowandFunc Close() ExitEndFuncThanks.Also , i was wondering if i could set the main window as an image...If so , how?
Generator Posted July 20, 2007 Posted July 20, 2007 Yaan said: Thanks.Also , i was wondering if i could set the main window as an image...If so , how?Look for the UDF Png as GUI in Example Section.
Yaan Posted July 20, 2007 Author Posted July 20, 2007 (edited) Generator said: Look for the UDF Png as GUI in Example Section.I did , the site returned an error.Also , has anyone got any idea's on how to improve my code?thanks Edited July 20, 2007 by Yaan
Paulie Posted July 20, 2007 Posted July 20, 2007 Yaan said: Well this my 1st auto-it program , Made for Warcraft iii.It Joins "random" custom games and leaves at startAnyway , When i click on the x button , it doesn't close. Any help?You suck. People who do that ruin the game for everyone else. Stupid leaver.
Yaan Posted July 20, 2007 Author Posted July 20, 2007 Paulie said: You suck. People who do that ruin the game for everyone else. Stupid leaver.Thats hardly constructive now is it?>.<If people don't like it , they won't use it - simple.
Generator Posted July 20, 2007 Posted July 20, 2007 (edited) Yaan said: Thats hardly constructive now is it?>.<If people don't like it , they won't use it - simple.It is not recommanded to make any bot for the game because it ruins the fun and the concept of playing it.Edit: SideNote: Use _IsPressed() Instead of HotkeySet(), do a fixed mouse clicking pos because the game window might be in different pos. Edited July 20, 2007 by Generator
Yaan Posted July 20, 2007 Author Posted July 20, 2007 (edited) Generator said: It is not recommanded to make any bot for the game because it ruins the fun and the concept of playing it.Edit: SideNote: Use _IsPressed() Instead of HotkeySet(), do a fixed mouse clicking pos because the game window might be in different pos.Thanks Can you explain what i highlighted?thank you Edited July 20, 2007 by Yaan
Generator Posted July 20, 2007 Posted July 20, 2007 Yaan said: Thanks Can you explain what i highlighted?thank you So maybe you can make sure the windows is in 0,0? or make sure it clicks the right pos for everyone else too.
Yaan Posted July 20, 2007 Author Posted July 20, 2007 Generator said: So maybe you can make sure the windows is in 0,0? or make sure it clicks the right pos for everyone else too.Okies.I want my bot to say a message when it enters a game , How would my bot know it has entered a game?Packet sniffing?hmm?
Yaan Posted July 20, 2007 Author Posted July 20, 2007 Heres my finished code - if anyone cares lol expandcollapse popup#include <GUIConstants.au3> #NoTrayIcon Opt("GUIOnEventMode", 1) ; Change to OnEvent mode $mainwindow = GUICreate("Gay Hack 1.0 ", 170, 100) GUISetOnEvent($GUI_EVENT_CLOSE, "Close") GUICtrlCreateLabel("Made By YouAreANooB", 30, 10) $OnButton = GUICtrlCreateButton("On[Ctrl+M]", 20, 50, 60) GUICtrlSetOnEvent($OnButton, "On") $OffButton = GUICtrlCreateButton("Off[Ctrl+N]", 100, 50, 60) GUICtrlSetOnEvent($OffButton, "Off") GUISetState(@SW_SHOW) HotKeySet("^m","On") HotKeySet("^n","close") $d=false ClipPut (InputBox("zzz","What Do You Want to Spam???")) While 1 Wend Func On() While Winactive("Warcraft III") MouseClick("left", 415, 117, 1,0) Sleep(300) MouseClick("left",59,347,1,0) MouseClick("left",327,405,1,0) MouseClick("left",324,420,1,0) Sleep(300) Send ("{ENTER}") sleep (300) Send ("^v") Send ("{ENTER}") Send ("{ENTER}") sleep (300) Send ("^v") Send ("{ENTER}") Send ("{f10}") MouseClick("left",508,315,1,0) MouseClick("left",509,171,1,0) Send ("{ENTER}") Send ("{ENTER}") Wend EndFunc Func Off() $TurnOff=True EndFunc Func Close() Exit EndFunc
Wolffe Posted July 20, 2007 Posted July 20, 2007 I am not sure that I understand the purpose of joining and then immediately leaving random games. Maybe I am missing something here....
Yaan Posted July 20, 2007 Author Posted July 20, 2007 Wolffe said: I am not sure that I understand the purpose of joining and then immediately leaving random games. Maybe I am missing something here....Well , it joins the games chat channel , spams messages , then when the map has loaded/game has started leaves.I don't really know the point of it tbh .Mabye for advertising a site or somthing idk.In wc3 you get " leavers" who do this manually , so i thought i'd make a script to do it..
Paulie Posted July 20, 2007 Posted July 20, 2007 (edited) Yaan said: Thats hardly constructive now is it?>.<If people don't like it , they won't use it - simple.I am an avid WC3 Fanatic as well, and there is nothing i hate more than starting a game and have the teams become imbalenced because some noob with nothing better to do (i.e. YOU) has decided to leave the game. And of course, Not leave the game before it starts, so it would be possible to get another player to join, but instead after it starts so one team is stuck playing man-down and often ends up leaving the game later anyway.If this was your only reason for coming to these forums, to ruin MY FAVORITE game, then i'm not wishing good luck of any kind for you, and I would like your username so i can post you on ASGXML. Could your UN be: "YouAreANoob" as that would be who you claim is authoring this script?GTFO WC3 and go ruin WoW. Edited July 20, 2007 by Paulie
Yaan Posted July 20, 2007 Author Posted July 20, 2007 Paulie said: I am an avid WC3 Fanatic as well, and there is nothing i hate more than starting a game and have the teams become imbalenced because some noob with nothing better to do (i.e. YOU) has decided to leave the game. And of course, Not leave the game before it starts, so it would be possible to get another player to join, but instead after it starts so one team is stuck playing man-down and often ends up leaving the game later anyway.If this was your only reason for coming to these forums, to ruin MY FAVORITE game, then i'm not wishing good luck of any kind for you, and I would like your username so i can post you on ASGXML.GTFO WC3 and go ruin WoW.Rofl!!!!!Please kid , don't call me a noob...My usernames are YouAreANOOB@us.west, Some_Random_jok@us.west, Boonaerauoy@us.west , Windchaser666@europeIv'e been rank one solo 5 times , rank 1 rt 3 times , rank 1 at many times(roc)I wanted to code shit in auto-it + and make somthing in wc3 .Ohhh , and what n000b plays 2v2 cg? go rt or solo ....I'll admit you>me at auto-it , but 1v1 me ... kk thanks .I'm on europe now on " windchaser666" kk
Paulie Posted July 20, 2007 Posted July 20, 2007 Yaan said: Rofl!!!!!Please kid , don't call me a noob...My usernames are YouAreANOOB@us.west, Some_Random_jok@us.west, Boonaerauoy@us.west , Windchaser666@europeIv'e been rank one solo 5 times , rank 1 rt 3 times , rank 1 at many times(roc)I wanted to code shit in auto-it + and make somthing in wc3 .Ohhh , and what n000b plays 2v2 cg? go rt or solo ....I'll admit you>me at auto-it , but 1v1 me ... kk thanks .I'm on europe now on " windchaser666" kkif you wanna be a leaver in ladder games, thats fine with me, ladder is teh SuXX0rZ compared to DOTA and other custom games.just don't ever join my DOTA on Us.East, You are on my banlist.
Yaan Posted July 20, 2007 Author Posted July 20, 2007 Paulie said: if you wanna be a leaver in ladder games, thats fine with me, ladder is teh SuXX0rZ compared to DOTA and other custom games.just don't ever join my DOTA on Us.East, You are on my banlist.zzzzzNew account +dynamic ip= gg!
AzKay Posted July 20, 2007 Posted July 20, 2007 Paulie, Stop being a baby ;3 "Act your age, Not your shoe size!" # MY LOVE FOR YOU... IS LIKE A TRUCK- #
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now