Jump to content

My 1st Auto-it program..


Recommended Posts

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 :whistle:

#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 by Yaan
Link to comment
Share on other sites

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 by Yaan
Link to comment
Share on other sites

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?

You suck. People who do that ruin the game for everyone else. Stupid leaver.
Link to comment
Share on other sites

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 by Generator
Link to comment
Share on other sites

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 :whistle:

Can you explain what i highlighted?

thank you :lmao:

Edited by Yaan
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Heres my finished code - if anyone cares lol

#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
Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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 by Paulie
Link to comment
Share on other sites

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@europe

Iv'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

Link to comment
Share on other sites

Rofl!!!!!

Please kid , don't call me a noob...

My usernames are YouAreANOOB@us.west, Some_Random_jok@us.west, Boonaerauoy@us.west , Windchaser666@europe

Iv'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

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.

Link to comment
Share on other sites

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.

zzzzz

New account +dynamic ip= gg!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...