#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2011
    Posts
    3
    Rep Power
    0

    [AHK] Autohotkey GUI Help


    Reallyy having a hard time understanding GUI

    so I just made an algorithm, if it's allowed, could sum1 point to me stepbystep how to do this



    Code:
    Gui, Add, Tab, x2 y0 w310 h160 , Main|Chat|Macros
    Gui, Add, Hotkey, x4 y27 w48 h20 va1, 
    Gui, Add, Hotkey, x4 y46 w48 h20 va2, 
    Gui, Add, Hotkey, x4 y68 w48 h20 va3, 
    Gui, Add, Hotkey, x51 y27 w48 h20 va4, 
    Gui, Add, Hotkey, x51 y48 w48 h20 va5, 
    Gui, Add, Hotkey, x51 y67 w48 h20 va6, 
    Gui, Add, CheckBox, x2 y97 w100 h30 vaDefault, Use !Q`,!W`,!A`,!S`,!Z`,!X
    Gui, Tab, Chat
    Gui, Add, Hotkey, x2 y28 w62 h22 vb1, 
    Gui, Add, Hotkey, x2 y53 w62 h22 vb2, 
    Gui, Add, Hotkey, x3 y77 w62 h22 vb3, 
    Gui, Add, Hotkey, x3 y102 w62 h22 vb4, 
    Gui, Add, Hotkey, x2 y126 w62 h22 vb5, 
    Gui, Add, Text, x68 y32 w20 h16 , =
    Gui, Add, Text, x68 y55 w20 h16 , =
    Gui, Add, Text, x68 y83 w20 h16 , =
    Gui, Add, Text, x68 y105 w20 h16 , =
    Gui, Add, Text, x68 y129 w20 h16 , =
    Gui, Tab, Chat
    Gui, Add, Edit, x93 y26 w209 h24 ve1, TOP MISSING!
    Gui, Add, Edit, x93 y54 w209 h24 ve2, BTM MISSING!
    Gui, Add, Edit, x93 y80 w209 h24 ve3, MID MISSING!
    Gui, Add, Edit, x93 y106 w209 h24 ve4, ...
    Gui, Add, Edit, x93 y132 w209 h24 ve5, ...
    Gui, Tab, Macros
    Gui, Add, Hotkey, x5 y28 w63 h21 vc1, 
    Gui, Add, Hotkey, x5 y50 w63 h21 vc2, 
    Gui, Add, Hotkey, x5 y72 w63 h21 vc3, 
    Gui, Add, Hotkey, x5 y94 w63 h21 vc4, 
    Gui, Add, Hotkey, x5 y115 w63 h21 vc5, 
    Gui, Tab, Macros
    Gui, Add, Text, x72 y30 w10 h20 , =
    Gui, Add, Text, x72 y50 w10 h20 , =
    Gui, Add, Text, x72 y70 w10 h20 , =
    Gui, Add, Text, x72 y90 w10 h20 , =
    Gui, Add, Text, x72 y110 w10 h20 , =
    Gui, Tab, Macros
    Gui, Add, Edit, x85 y28 w217 h24 , Edit
    Gui, Add, Edit, x86 y53 w217 h24 , Edit
    Gui, Add, Edit, x87 y77 w217 h24 , Edit
    Gui, Add, Edit, x85 y101 w217 h24 , Edit
    Gui, Add, Edit, x85 y123 w217 h24 , Edit
    ; Generated using SmartGUI Creator 4.0
    Gui, Show, x340 y274 h164 w311, New GUI Window
    Return
    
    GuiClose:
    ExitApp
    so this is my current code

    btw I've read about the different commands, just can't seem to fully understand it, but if sum1 is willing to provide examples , i'll be more than thankful, because it would clarify my problems



    ::First Tab::

    each hotkey box would be set to a variable
    1stbox = Var1
    2ndboc = Var2 ... etc.

    then the variables would become a substitute key
    eg.
    Numpad7::Send, {Var1} ;Var1 is currently set to Alt + Q

    ::Second Tab::

    The inputted text in the box would be assigned on a variable.
    Also the assigned hotkeys
    eg.
    String1="Top Missing!";
    Hotkey1=^Q ; Ctrl+Q
    then the variable would be used like this

    ^Q::Send, {Enter}{Top Missing!}{Enter}

    ::Third Tab::

    This one, i think would be tricky, so I think this would be optional instead
    the assigned hotkey would be set to the one inputted on the box

    eg.
    !R::Send, {E}{Sleep 20}{R}{Click}
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2011
    Posts
    3
    Rep Power
    0
    Bring Up My Post
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2011
    Posts
    3
    Rep Power
    0
    Anyone can help me here?

IMN logo majestic logo threadwatch logo seochat tools logo