Sign in to follow this  
Followers 0
no1Gun

Beginners Guide

7 posts in this topic

Heya..

I've come to a point in my scripting experience where I no longer understand the different codes and their explanations..

The area in which I need assistance is GUI creation - I've tried several times reading and giving it my best with the tutorials in AU3

but so far I haven't had any luck..

I'd say first off - let's make a window/interface.. I would like something visual to do testing of my scripts and a place to add them for user friendly browsing.

I figured this would be the place to start looking for someone experienced ;)

Many thanks in advance,

Tim.

Share this post


Link to post
Share on other sites



http://www.youtube.com/results?search_query=autoit&search_type=&aq=f


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

http://www.youtube.com/results?search_query=autoit&search_type=&aq=f

Thanks bro, seems to be an easy way to start the basics - MUCH appreciated.

But.. More questions will undoubtedly follow.

Tim

Share this post


Link to post
Share on other sites

Definitely look at Koda GUI form designer

http://www.autoitscript.com/forum/index.php?showtopic=32299

Thanks, but I tried the Koda util. and I had no success.

I've now made the layout and hopefully and can get on to linking some modes and options into it as well.

You can check the code below:

#include <GUIConstants.au3>
#include <IE.au3> 

GuiCreate("Newbie Bot",200,400,-1,-1)
$Hold_Combo=GuiCtrlCreateButton("Hold Combo*",25,20,150,24)
$label1=GUICtrlCreateLabel( "*For HOLDING your RIGHT mousebutton DOWN.",25,48,150,24)
$Click_Combo=GuiCtrlCreateButton("Click Combo*",25,80,150,24)
$label2=GUICtrlCreateLabel( "*For CLICKING 1-TIME to continue COMBO.",25,108,150,24)
$Afk_Combo=GuiCtrlCreateButton("Afk Combo*",25,140,150,24)
$label3=GUICtrlCreateLabel( "*For doing COMBO in AFK.",25,168,150,24)

$Help=GuiCtrlCreateButton("Help?",25,345,150,24)

$label_Delay=GUICtrlCreateLabel( "Delay Between Skills in Combo.",25,220,150,20)
    GUICtrlSetState ($label_Delay, $GUI_HIDE)

$input1=GUICtrlCreateInput("Hold Combo - Skill 1",25,240,150,20)
    GUICtrlSetState ($input1, $GUI_HIDE)
        $input1_2=GUICtrlCreateInput("Hold Combo - Skill 2",25,260,150,20)
            GUICtrlSetState ($input1_2, $GUI_HIDE)
                $input1_3=GUICtrlCreateInput("Hold Combo - Skill 3",25,280,150,20)
                    GUICtrlSetState ($input1_3, $GUI_HIDE)
            
            
$input2=GUICtrlCreateInput("Click Combo - Skill 1",25,240,150,20)
    GUICtrlSetState ($input2, $GUI_HIDE)
        $input2_2=GUICtrlCreateInput("Click Combo - Skill 2",25,260,150,20)
            GUICtrlSetState ($input2_2, $GUI_HIDE)
                $input2_3=GUICtrlCreateInput("Click Combo - Skill 3",25,280,150,20)
                    GUICtrlSetState ($input2_3, $GUI_HIDE)

$input3=GUICtrlCreateInput("Afk Combo - Skill 1",25,240,150,20)
    GUICtrlSetState ($input3, $GUI_HIDE)
        $input3_2=GUICtrlCreateInput("Afk Combo - Skill 2",25,260,150,20)
            GUICtrlSetState ($input3_2, $GUI_HIDE)
                $input3_3=GUICtrlCreateInput("Afk Combo - Skill 3",25,280,150,20)
                    GUICtrlSetState ($input3_3, $GUI_HIDE)


GuiSetState()

While 1
$msg=GuiGetMsg()
If $msg=-3 Then Exit
If $msg=$Hold_Combo Then Hold_Combo()
If $msg=$Click_Combo Then Click_Combo()
If $msg=$Afk_Combo Then Afk_Combo()
If $msg=$Help Then Help()
Wend


Func OnAutoItStart()
    MsgBox(0,"Newbie Bot v1.00","WARNING! Usage of Bots are ILLEGAL in Global Mu Online - Use on own responsibility!", 6)
EndFunc ;Warning/Disclaimer on script start.

Func Hold_Combo()
    GUICtrlSetState ($label_Delay, $GUI_SHOW)


        GUICtrlSetState ($input2, $GUI_HIDE)
            GUICtrlSetState ($input2_2, $GUI_HIDE)
                GUICtrlSetState ($input2_3, $GUI_HIDE)
                
        GUICtrlSetState ($input3, $GUI_HIDE)
            GUICtrlSetState ($input3_2, $GUI_HIDE)
                GUICtrlSetState ($input3_3, $GUI_HIDE)
    

    GUICtrlSetState ($input1, $GUI_SHOW)
        GUICtrlSetState ($input1_2, $GUI_SHOW)
            GUICtrlSetState ($input1_3, $GUI_SHOW)
    ;MsgBox("", "Button Check", "Hold Combo - Find the delays below.")
    
EndFunc

Func Click_Combo()
    GUICtrlSetState ($label_Delay, $GUI_SHOW)
    

        GUICtrlSetState ($input1, $GUI_HIDE)
            GUICtrlSetState ($input1_2, $GUI_HIDE)
                GUICtrlSetState ($input1_3, $GUI_HIDE)
    

            GUICtrlSetState ($input3, $GUI_HIDE)
                GUICtrlSetState ($input3_2, $GUI_HIDE)
                    GUICtrlSetState ($input3_3, $GUI_HIDE)


    GUICtrlSetState ($input2, $GUI_SHOW)
        GUICtrlSetState ($input2_2, $GUI_SHOW)
            GUICtrlSetState ($input2_3, $GUI_SHOW)
    ;MsgBox("", "Button Check", "Click Combo - Find the delays below.")
EndFunc

Func Afk_Combo()
    GUICtrlSetState ($label_Delay, $GUI_SHOW)   
    

        GUICtrlSetState ($input1, $GUI_HIDE)
            GUICtrlSetState ($input1_2, $GUI_HIDE)
                GUICtrlSetState ($input1_3, $GUI_HIDE)


            GUICtrlSetState ($input2, $GUI_HIDE)
                GUICtrlSetState ($input2_2, $GUI_HIDE)
                    GUICtrlSetState ($input2_3, $GUI_HIDE)
    
    
    GUICtrlSetState ($input3, $GUI_SHOW)
        GUICtrlSetState ($input3_2, $GUI_SHOW)
            GUICtrlSetState ($input3_3, $GUI_SHOW)
    ;MsgBox("", "Button Check", "Afk Combo - Find the delays below.")
EndFunc

Func Help()
GUICtrlSetState ($label_Delay, $GUI_HIDE)

    GUICtrlSetState ($input1, $GUI_HIDE)
    GUICtrlSetState ($input1_2, $GUI_HIDE)
    GUICtrlSetState ($input1_3, $GUI_HIDE)
    
        GUICtrlSetState ($input2, $GUI_HIDE)
        GUICtrlSetState ($input2_2, $GUI_HIDE)
        GUICtrlSetState ($input2_3, $GUI_HIDE)
    
            GUICtrlSetState ($input3, $GUI_HIDE)
            GUICtrlSetState ($input3_2, $GUI_HIDE)
            GUICtrlSetState ($input3_3, $GUI_HIDE)
    
MsgBox("", "Help Section", "You Will Be Guided To The Forum")
$oIE = _IECreate ("http://muonline.webzen.net/", 1)
If @extended Then
    MsgBox(0, "", "Already Opened!")
EndIf
    
EndFunc

Hope this won't cause too much trouble...

Tim

Share this post


Link to post
Share on other sites

Isn't that something you do after you know how to make GUI's and you're beginning to get bored with writing that boring crap ;)

Hehe :-) I se your point but using Koda can help also people who don't know which command to use for desired controls.

And also important note: Making GUI in Koda is MUCH MORE effective/productive/faster/comfortable than writing Autoit GUI code by hand.

Share this post


Link to post
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
Sign in to follow this  
Followers 0