Autohotkey scripting help

This is a discussion on Autohotkey scripting help within the Warcraft 3 forum board part of the Hot Games category; Hmmm If that's not it, I've put the code in as you had it, When i press f1 the script ...

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    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
    Hmmm
    If that's not it, I've put the code in as you had it, When i press f1 the script closes, when compiled it says the error is line 6(the pixel search) when uncompiled the error is line 8(the clicking) as I've have it pasted into my .au3. Either way the error i get is
    "Error: Subscript used with non-Array Variable".... Maybe my computer just hates me lol.


  2. #12
    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
    Maybe you should post the whole code as YOU tried to compile it.
    I guess you failed at the color

  3. #13
    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
    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,0x717D4E,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
    Color i put in is a wierd grayish brown found on the bottom of item chests.

    Also tried editing the chest graphic to have a spot of true red on it. and used 0xFF0000
    Last edited by Mads; 06-08-2010 at 06:40 PM.

  4. #14
    Mads's Avatar
    Mads is offline Formerly Zo8

    Array
    Join Date
    Nov 2008
    Location
    Denmark
    Posts
    2,290
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    18
    Reputation
    1647
    Added code tags to your post.

  5. The Following User Says Thank You to Mads For This Useful Post:


  6. #15
    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
    0 error(s), 0 warning(s)
    >Exit code: 0 Time: 0.209
    When I try to compile the source code you gave me, I'm able to do so.
    I don't see your problem :/
    I just compiled it for you.
    Download here.

  7. The Following User Says Thank You to Tracky For This Useful Post:


  8. #16
    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
    Still getting same error... There must be something wrong on my end, Well thank you very very much for all the awesome help, now I know the script works I just have to figure out why my computer won't lol.

Page 2 of 2 FirstFirst 12

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
  •