Autohotkey scripting help

This is a discussion on Autohotkey scripting help within the Warcraft 3 forum board part of the Hot Games category; Ok, I'm fail as hell with scripts, and I was hoping you fine people could help me out. What I ...

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Azreal is offline Wannabe Member
    Array
    Join Date
    Oct 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0

    Autohotkey scripting help

    Ok, I'm fail as hell with scripts, and I was hoping you fine people could help me out.
    What I want is a script that will do a pixel search when I hit F1, then press "B", then left click on the pixel,pause a half second, and finally right click on the pixel.

    Thanks in advance for any help you give
    (also I did search but if I missed a comparable auto hotkey script than I would be very grateful if you could point it out.)


  2. #2
    Tracky's Avatar
    Tracky is offline Administrator

    Array
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    9,855
    Mentioned
    158 Post(s)
    Tagged
    2 Thread(s)
    Rep Power
    42
    Reputation
    5607
    In which language you wanna code ?
    I could write you such a Script in AutoIT.

  3. #3
    Azreal is offline Wannabe Member
    Array
    Join Date
    Oct 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    In English.
    Autoit would be great, think it's almost like BASIC so I might actually understand little of it.

  4. #4
    Tracky's Avatar
    Tracky is offline Administrator

    Array
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    9,855
    Mentioned
    158 Post(s)
    Tagged
    2 Thread(s)
    Rep Power
    42
    Reputation
    5607
    Have fun.
    Working for me.
     

    Code:
    ; Script made by Tracky especially for Azreal on D3Scene.com
    Hotkeyset ("{F1}", "start")
    HotKeySet ("{ESC}", "close")
    
    Func start ()
        $variable = Pixelsearch (0,0,@DesktopWidth,@DesktopHeight,0xFFD40B,0)
        Send ("{b}")
        MouseClick ("PRIMARY", $variable[0], $variable[1],1,0)
        Sleep (500)
        Mouseclick ("secondary", $variable[0], $variable[1],1,0)
    EndFunc
    
    Func close ()
        Exit
    EndFunc
    
    While 1
        Sleep (50)
    WEnd

  5. The Following 2 Users Say Thank You to Tracky For This Useful Post:


  6. #5
    Azreal is offline Wannabe Member
    Array
    Join Date
    Oct 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Wow, Gonna go play with it and try it out. Thanks for the awesome help and the fact that you did this in like 3 is just truly great.

  7. #6
    Tracky's Avatar
    Tracky is offline Administrator

    Array
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    9,855
    Mentioned
    158 Post(s)
    Tagged
    2 Thread(s)
    Rep Power
    42
    Reputation
    5607
    +Thanks :>

    If you got any error's / suggestions, leave them in here.
    With F1 you're going to start ( As requested ) and with ESCAPE you'll close the Bot.

  8. #7
    Azreal is offline Wannabe Member
    Array
    Join Date
    Oct 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Hmm I must have done something wrong,
    precompile au3
    Line 8
    Mouseclick ("PRIMARY"[0], $variable[1],1,0)
    MouseClick ("PRIMARY", $variable^ERROR

    post compile
    Error:Subscript used with non-Array variable
    Last edited by Azreal; 06-08-2010 at 02:22 PM.

  9. #8
    Tracky's Avatar
    Tracky is offline Administrator

    Array
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    9,855
    Mentioned
    158 Post(s)
    Tagged
    2 Thread(s)
    Rep Power
    42
    Reputation
    5607
    I was showing you the whole Code for the whole Skript

    Also you made a mistake:
    Code:
    Mouseclick ("secondary", $variable[0], $variable[1],1,0)
    Don't forget $variable[0] and $variable[1]

  10. #9
    Azreal is offline Wannabe Member
    Array
    Join Date
    Oct 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    I think I know what is happening... Think being a very relative term. I think it is closing when the pixelsearch does not turn up any results? Is this possible?

  11. #10
    Tracky's Avatar
    Tracky is offline Administrator

    Array
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    9,855
    Mentioned
    158 Post(s)
    Tagged
    2 Thread(s)
    Rep Power
    42
    Reputation
    5607
    No.

    The bot is simply doing nothing, UNTIL you press F1.
    If you press F1, the bot is searching for the regarding Pixel and clicking the things you wanted it to do.
    If you press ESCAPE, the bot is going to close itself.

Page 1 of 2 12 LastLast

Similar Threads

  1. A Cool Scripting Website
    By fogest in forum Entertainment
    Replies: 2
    Last Post: 03-25-2010, 07:20 PM
  2. [REL] Habbo Scripting Tool
    By Habbo1337ness in forum Other Games
    Replies: 4
    Last Post: 03-05-2010, 01:54 AM
  3. Some WoW Scripting
    By sjacob109 in forum Say Hello
    Replies: 0
    Last Post: 08-16-2009, 07:48 PM
  4. looking for c++ scripting
    By reno1138 in forum WoW Private Servers
    Replies: 0
    Last Post: 04-29-2009, 03:36 AM
  5. Autohotkey Dota Invoker Ideas
    By Wynthar in forum Warcraft 3 Hacks, bots and tools
    Replies: 14
    Last Post: 04-22-2009, 09:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •