Autoit Help menu

User Tag List

Thread: Autoit Help

Results 1 to 6 of 6
  1. #1
    Muatmessmoko's Avatar Banned
    Reputation
    116
    Join Date
    Apr 2007
    Posts
    568
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Autoit Help

    I was wondering if anyone who knows autoit well would be interested in helping me. Ive been working on a bot that can stack hot's on 2 targets of my choice. I have everything working except for one thing, which is getting the 2 names from the inputs into the script. I haven't figured out how yet, and was wondering if anyone knows how, to take whats in the inputs, and put it into the script. My script is as follows:

    Code:
    AutoItSetOption ( "GUIOnEventMode",1 )
    HotKeySet("{Scrolllock}","Stop")
    HotKeySet("{Pause}","Pause")
    #include <GUIConstants.au3>
    Dim $Pause
    
    
    $GUI = GUICreate("Hot Stacker v1.0", 400, 600, -1, -1)
    WinsetOnTop("Hot Stacker v1.0", "",1)
    GUICtrlCreateLabel("Hot Stacker v1.0", 150, 10)
    GUICtrlCreateLabel("INSTRUCTIONS", 150, 80)
    GUICtrlCreateLabel("1. Input the name of your first desired tank to have HOTS stacked on.", 10, 105)
    GUICtrlCreateLabel("2. Input the name of your second desired tank to have HOTS stacked on.", 10, 130)
    GUICtrlCreateLabel("3. Click the 'Start Bot' Button to start this bot.", 10, 155)
    GUICtrlCreateLabel("Created By:Andrew N., Muat of MMOwned", 110, 260)
    GUICtrlCreateLabel("This bot is intended for use by a druid.", 120, 290)
    GUICtrlCreateLabel("I do not take any liability for your account being banned and/or suspended from the",0, 320)
    GUICtrlCreateLabel("use of this program. If it does get banned or suspended, your shit out of luck :P", 1, 340)
    $First = GUICtrlCreateInput("Target 1's Name", 150, 180 , 100 , 25 , 1)
    $Second = GUICtrlCreateInput("Target 2's Name", 150, 210 , 100 , 25 , 1)
    $StartBot = GUICtrlCreateButton("Start Bot", 155, 575, 100, 25)
    GUICtrlSetOnEvent($StartBot, "bot")
    $Lifebloombl = GUICtrlCreatePic(@ScriptDir & "\Lifebloom.gif",25,530, 64,64)
    $Lifebloomtr = GUiCtrlCreatePic(@ScriptDir & "\LIfebloom.gif", 330, 10, 64, 64)
    $Rejuvenationtl = GUICtrlCreatePic(@ScriptDir & "\Rejuvenation.gif", 25, 10, 64,64)
    $Rejuvenationbr = GUICtrlCreatePic(@ScriptDir & "\Rejuvenation.gif", 330, 530, 64, 64)
    $Treeoflifebm = GUICtrlCreatePic(@ScriptDir & "\Tree.gif", 175, 400, 64, 64)
    GuiSetState(@SW_Show)
    While 1
    Wend
    Guisetstate($StartBot,"Bot")
    
    
    ;Functions
    Func Stop()
        MsgBox(0, "Quitting Hot Stacker v1.0", "Now Quitting Hot Stacker v1.0", 1)
        Exit
    EndFunc
    
    Func Pause()
        if $Pause = 1 Then
            global $Pause = 0
        Else
            global $Pause = 0
            While $Pause = 1
                Sleep(1000)
            WEnd
        EndIf
    EndFunc
    
    Func Bot()
        WinActivate("World of Warcraft")
        WinWaitActive("World of Warcraft")
        Sleep(3000)
        $i = 1
        Do
            Send("/target $First{Enter}")
            Send("5")
            Sleep(1510)
            Send("/target $Second{Enter}")
            Send("5")
            Sleep(1510)
            Send("/target $First{Enter}")
            Send("5")
            Sleep(1510)
            Send("/target $Second{Enter}")
            Send("5")
            Sleep(1510)
            Send("/target $Second{Enter}")
            Send("5")
            Sleep(1510)
            Send("/target $First{Enter}")
            Send("5")
            Sleep(1510)
            Send("/target $Second{Enter}")
            Send("5")
            Sleep(1510)
            Send("/target $First{Enter}")
            Send("3")
            Sleep(1510)
            Send("/target $Second{Enter}")
            Send("3")
            Sleep(1510)
        Until $i > 1
    EndFunc
    Where it says $First and $Second in the Function named bot is where I need the inputs to be placed.


    +Rep to the first person who can help me with it, and you'll be my favorite person ever for a couple weeks!

    Autoit Help
  2. #2
    Demonkunga's Avatar Banned
    Reputation
    124
    Join Date
    Jun 2006
    Posts
    2,376
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Autoit Help

    Don't give out your source! o.o

  3. #3
    Muatmessmoko's Avatar Banned
    Reputation
    116
    Join Date
    Apr 2007
    Posts
    568
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Autoit Help

    Pff the source doesn't matter :P Going to realease the bot soon though!

  4. #4
    Relz's Avatar Feed the trolls
    Reputation
    429
    Join Date
    May 2006
    Posts
    2,123
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Autoit Help

    $input is what you type into a box, iirc.
    "Step right up and shake hands with the devil"

  5. #5
    Phygar's Avatar ( ͡° ͜ʖ ͡°)
    Reputation
    444
    Join Date
    Nov 2007
    Posts
    1,591
    Thanks G/R
    7/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I also notice that it says
    Send("/target $First{Enter}")
    You could either make it this:

    send( "/target" & $first & "{enter}")

    Or this:

    Send("/target")
    Send( $First)
    Send("{Enter}")
    Last edited by Phygar; 12-19-2007 at 08:56 PM.

  6. #6
    Tink's Avatar Active Member
    Reputation
    46
    Join Date
    Aug 2006
    Posts
    205
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use this:

    Send("/target " & GuiCtrlRead($first) & "{Enter}5")
    Sleep(1510)


    You need to use GuiCtrlRead($handle) to get a value from a GUI control.
    Last edited by Tink; 12-20-2007 at 05:22 PM.
    Aap?

Similar Threads

  1. [AutoIt] Help with some pixelsearch reverse
    By Gissel in forum Programming
    Replies: 1
    Last Post: 11-26-2012, 05:31 PM
  2. [AutoIt] Help making a Script
    By m0rbidang3l in forum Programming
    Replies: 1
    Last Post: 07-19-2012, 03:12 PM
  3. Replies: 5
    Last Post: 02-18-2010, 07:55 PM
  4. autoit help
    By gononono64 in forum Programming
    Replies: 0
    Last Post: 02-06-2010, 06:16 PM
  5. [Autoit help]Modify hotkey to rightclick(fishbot)
    By darknavi in forum World of Warcraft General
    Replies: 4
    Last Post: 07-01-2006, 09:31 PM
All times are GMT -5. The time now is 04:41 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search