Jump to content

Tabs in tab??


Recommended Posts

  • Replies 42
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

That you very much big_daddy, and please smarteee next time, maybe u just think alittle bit more like enaiman, becouse i nvr mentioned the word "bot" or anything near... anyway if any1 know the answer on that would be nice... (scroll down and read it's not the first question anymore)

Edited by Wiggyboy
Link to comment
Share on other sites

Hmm, my sincerest apologies then, I seemed to have wrongly jumped to conclusions.

If you don't mind though, this leaves me with a bit of questions.

Ok, so in this case its his in-game hero's aesthetics he seeks to modify, by automating the process of creating the required files to, in some cases force a particular model onto a hero in game.

Deceptively innocent it seems, for had it been helping him skip a couple levels or adding super-powers to his in game character by way of game modification (even if doing so meant simply editing some plain text file), it would be quite easy to spot the not.

I understand it is not a bot in the classic aim-and-shoot sense, however doesn't automating the modification of a game an its resources amount to game automation?

Its just that in this case, while its effects are definitely felt in-game, the modifying/automating process isn't done there. Right?

Link to comment
Share on other sites

Hmm, my sincerest apologies then, I seemed to have wrongly jumped to conclusions.

If you don't mind though, this leaves me with a bit of questions.

Ok, so in this case its his in-game hero's aesthetics he seeks to modify, by automating the process of creating the required files to, in some cases force a particular model onto a hero in game.

Deceptively innocent it seems, for had it been helping him skip a couple levels or adding super-powers to his in game character by way of game modification (even if doing so meant simply editing some plain text file), it would be quite easy to spot the not.

I understand it is not a bot in the classic aim-and-shoot sense, however doesn't automating the modification of a game an its resources amount to game automation?

Its just that in this case, while its effects are definitely felt in-game, the modifying/automating process isn't done there. Right?

This application will just create a special file called "honmods"(a zip file with the extension of .honmoad), instead of creating 100 of different mods u create this application so the user can modify his game the way he wants it,

the HoNmod file is used with the software called as "HoNModManager" and this software will create a copy of the game resources with my options or the users options, which is written in the "*.honmod\mod.xml". So what i use this for is to make all "alt heroes"(alt outfits) look like the original outfit, but now ofcourse u can do it just the other way if u'd like, or abit custom some forced to be standard some force'd to be alt heroes...

So Basiclly this appliction ain't even suppose to be started at the same time as HoN...(then ofc this was just an instance i'll be adding 2-3 more feature's)

Link to comment
Share on other sites

Continuing...

;Scripts
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiTab.au3>

;Variables
Dim $herolist[101][4]
    $herolist[1][0] = "Accursed"
Dim $herorec[101][21]

;Functions
Func WM_NOTIFY($hWnd, $iMsg, $iwParam, $ilParam)
    #forceref $hWnd, $iMsg, $iwParam
    Local $hWndFrom, $iIDFrom, $iCode, $tNMHDR, $hWndTab
    $tNMHDR = DllStructCreate($tagNMHDR, $ilParam)
    $hWndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom"))
    $iIDFrom = DllStructGetData($tNMHDR, "IDFrom")
    $iCode = DllStructGetData($tNMHDR, "Code")
    Switch $hWndFrom
    case $gui_tab
        Switch $iCode
        Case $TCN_SELCHANGE; The Selected Tab has change
            $CurSel = _GUICtrlTab_GetCurSel($hWndFrom)
            ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $CurSel = ' & $CurSel & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
            ;If _GUICtrlTab_GetCurSel($gui_hero_tab) == 0 Then
            ;   $gui_hero_tab_hide = $gui_hero_althero
            ;Else
            ;   $gui_hero_tab_hide = $gui_hero_recshop
            ;EndIf
            Switch $CurSel
            Case $gui_tab1
                GUISetState(@SW_SHOW, $gui_hero)
                    ;GUISetState(@SW_SHOW, $gui_hero_tab_hide)
                GUISetState(@SW_HIDE, $gui_annonce)
                GUISetState(@SW_HIDE, $gui_taunt)
                Return $GUI_RUNDEFMSG
            Case $gui_tab2
                GUISetState(@SW_HIDE, $gui_hero)
                    ;GUISetState(@SW_HIDE, $gui_hero_tab_hide)
                GUISetState(@SW_SHOW, $gui_annonce)
                GUISetState(@SW_HIDE, $gui_taunt)
                Return $GUI_RUNDEFMSG
            Case $gui_tab3
                GUISetState(@SW_HIDE, $gui_hero)
                    ;GUISetState(@SW_HIDE, $gui_hero_tab_hide)
                GUISetState(@SW_HIDE, $gui_annonce)
                GUISetState(@SW_SHOW, $gui_taunt)
                Return $GUI_RUNDEFMSG
            EndSwitch
        EndSwitch
    case $gui_hero_tab
        Switch $iCode
        Case $TCN_SELCHANGE; The Selected Tab has change
            $CurSel = _GUICtrlTab_GetCurSel($hWndFrom)
            ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $CurSel = ' & $CurSel & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
            Switch $CurSel
            Case $gui_hero_tab1
                GUISetState(@SW_SHOW, $gui_hero_althero)
                GUISetState(@SW_HIDE, $gui_hero_recshop)
                Return $GUI_RUNDEFMSG
            Case $gui_hero_tab2
                GUISetState(@SW_HIDE, $gui_hero_althero)
                GUISetState(@SW_SHOW, $gui_hero_recshop)
                Return $GUI_RUNDEFMSG
            EndSwitch
        EndSwitch
    EndSwitch
    Return $GUI_RUNDEFMSG
EndFunc

;Start of script
$gui = GUICreate("CustomIt", 600, 400)
GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")
    $gui_tab = _GUICtrlTab_Create($gui,0,0, 580, 250)
        $gui_tab1 = _GUICtrlTab_InsertItem($gui_tab, 1, "Hero")
            _GUICtrlTab_SetItemSize($gui_tab1, 200, 18)
        $gui_tab2 = _GUICtrlTab_InsertItem($gui_tab, 2, "Annoncement")
        $gui_tab3 = _GUICtrlTab_InsertItem($gui_tab, 3, "Item 1-3")
$gui_hero = GUICreate("Hero",560,220,0,21, $WS_POPUP, $WS_EX_MDICHILD, $gui)
GUISetBkColor(0xFFFFFF)
    $gui_hero_list = GUICtrlCreateList("",5,5,100,100)
        For $i = 1 To 80
            GUICtrlSetData($gui_hero_list,$i &"|")
        Next
    $gui_hero_tab = _GUICtrlTab_Create($gui_hero,110,5, 580, 250)
    GUICtrlSetBkColor(-1,0xFFFFFF)
        $gui_hero_tab1 = _GUICtrlTab_InsertItem($gui_hero_tab, 1, "Alt heroes")
        $gui_hero_tab2 = _GUICtrlTab_InsertItem($gui_hero_tab, 1, "Recommended")
$gui_hero_althero = GUICreate("Alt heroes",560,220,114,29, $WS_POPUP, $WS_EX_MDICHILD, $gui_hero)
GUISetBkColor(0xFFFFFF)
$gui_hero_recshop = GUICreate("Recommended",560,220,114,29, $WS_POPUP, $WS_EX_MDICHILD, $gui_hero)
GUISetBkColor(0xFFFFFF)
    GUICtrlCreatePic("textures\shop\recbg.jpg",0,0,216,198); <--- PICUTRE!!!
    $gui_hero_recshop_shop1_tab = GUICtrlCreateTab(0,220,100,100); <--
    $gui_hero_recshop_shop1_tab1 = GuiCtrlGetHandle($gui_hero_recshop_shop1_tab); <-- now here is my issue, this tab doesn't seem to show up, it's in the "Recommended" tab and so are the picture mention before so why isn't it showing??
    GUICtrlCreateTabItem("test1"); <--
    GUICtrlCreateTabItem("test2"); <--
    GUICtrlCreateTabItem(""); <--
$gui_annonce = GUICreate("Annoncement",560,220,0,21, $WS_POPUP, $WS_EX_MDICHILD, $gui)
    
$gui_taunt = GUICreate("Taunt",560,220,0,21, $WS_POPUP, $WS_EX_MDICHILD, $gui)
GUISetState(@SW_SHOW, $gui)
GUISetState(@SW_SHOW, $gui_hero)
GUISetState(@SW_SHOW, $gui_hero_althero)

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

these are the tabs i'm trying to create...

Posted Image

Link to comment
Share on other sites

That you very much big_daddy, and please smarteee next time, maybe u just think alittle bit more like enaiman, becouse i nvr mentioned the word "bot" or anything near... anyway if any1 know the answer on that would be nice... (scroll down and read it's not the first question anymore)

You say that is for a game, i already told you the word "game" is not a "goodlooking" word around here, so don`t be so hard with smartee.

Anyway i fix you script.

The first thing that was wrong was the sizes. try to set the sizes to avoid a GUI pass over the tab

The Second thing was That you need to tell the script that the next tab will be created in the parent GUI, because that tab was created but inside the last GUI you create. so the Y pos 220 that you use for the last tab was invisible because the Last GUI Height was less than 220.

The Tird thing that i correct is a little glitch that happends when you change the tabs.

i added a couple of controls to check the behavior

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiTab.au3>
;$hTab2 = GuiCtrlGetHandle($iTab) ; You will need this to recognize this tab from the WM_NOTIFY

$gui = GUICreate("CustomIt", 600, 400)
GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")
$gui_tab = _GUICtrlTab_Create($gui, 0, 0, 580, 250)
$gui_tab1 = _GUICtrlTab_InsertItem($gui_tab, 1, "Hero")
$gui_tab2 = _GUICtrlTab_InsertItem($gui_tab, 2, "Item 1-2")
$gui_tab3 = _GUICtrlTab_InsertItem($gui_tab, 3, "Item 1-3")
$gui_hero = GUICreate("Hero", 565, 220, 10, 21, $WS_POPUP, $WS_EX_MDICHILD, $gui)
GUISetBkColor(0xFF0000)
$herolist = GUICtrlCreateList("", 5, 5, 100, 100)
For $i = 1 To 80
    GUICtrlSetData($herolist, $i & "|")
Next
$gui_hero_tab = _GUICtrlTab_Create($gui_hero, 110, 5, 450, 210)
$gui_hero_tab1 = _GUICtrlTab_InsertItem($gui_hero_tab, 1, "Alt heroes")
$gui_hero_tab2 = _GUICtrlTab_InsertItem($gui_hero_tab, 1, "Recommended")
$gui_hero_althero = GUICreate("Alt heroes", 440, 180, 120, 29, $WS_POPUP, $WS_EX_MDICHILD, $gui_hero)
GUISetBkColor(0x00ff00)
$gui_hero_recshop = GUICreate("Recommended", 440, 180, 120, 29, $WS_POPUP, $WS_EX_MDICHILD, $gui_hero)
GUISetBkColor(0x0000ff)
;~     GUICtrlCreatePic("textures\shop\recbg.jpg",0,0,216,198)
GUISwitch($gui)
$gui_hero_recshop_shop1_tab = GUICtrlCreateTab(10, 260, 580, 130)
;~ $gui_hero_recshop_shop1_tab1 = GUICtrlGetHandle($gui_hero_recshop_shop1_tab) ; <--------- HERE!!! this tab won't show up Dx
$item1 =GUICtrlCreateTabItem("test1")
$item2 =GUICtrlCreateTabItem("test2")
GUICtrlCreateTabItem("")
$gui_annonce = GUICreate("Annoncement", 565, 220, 10, 21, $WS_POPUP, $WS_EX_MDICHILD, $gui)
$gui_taunt = GUICreate("Taunt", 565, 220, 10, 21, $WS_POPUP, $WS_EX_MDICHILD, $gui)

; Some examples adding controls to the tabs
GUISwitch($gui,$item1) ; To add controls to the main GUI Tab item n1
$but1 = GuiCtrlCreatebutton("Test me!",50,295,150,40)
GUISwitch($gui,$item2) ; Second tab
GuiCtrlCreateLabel("Hey i`m in the main GUI but in the TabItem 2!!",60,340,250,20)
GUISwitch($gui_hero_althero) ; "All heroes" GUI inside the Tab
$But2 = GuiCtrlCreatebutton("Test me!",50,50,150,40)
GUISwitch($gui_hero_recshop) ; "Recommended" GUI inside the Tab
$Edit = GuiCtrlCreateEdit("Hey i`m in a Tab!!",10,10,420,160)

; Let start the show!!
GUISetState(@SW_SHOW, $gui)
GUISetState(@SW_SHOW, $gui_hero)
GUISetState(@SW_SHOW, $gui_hero_althero)

;Main Loop!
While True
$msg = GUIGetMsg()
Switch $msg
    case $GUI_EVENT_CLOSE
        Exit
    Case $but1
        msgbox(0,"yes","I`m Here")
    case $But2
        msgbox(0,"Ta big test","The edit in the other tab says         "&GuiCtrlread($Edit)&"           ")
EndSwitch

WEnd
Func WM_NOTIFY($hWnd, $iMsg, $iwParam, $ilParam)
    #forceref $hWnd, $iMsg, $iwParam
    Local $hWndFrom, $iIDFrom, $iCode, $tNMHDR, $hWndTab
    $tNMHDR = DllStructCreate($tagNMHDR, $ilParam)
    $hWndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom"))
    $iIDFrom = DllStructGetData($tNMHDR, "IDFrom")
    $iCode = DllStructGetData($tNMHDR, "Code")
    Switch $hWndFrom
        Case $gui_tab
            Switch $iCode
                Case $TCN_SELCHANGE; The Selected Tab has change
                    $CurSel = _GUICtrlTab_GetCurSel($hWndFrom)
                    ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $CurSel = ' & $CurSel & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
                    Switch $CurSel
                        Case $gui_tab1

                            GUISetState(@SW_SHOW, $gui_hero)
                            $CurSel = _GUICtrlTab_GetCurSel($gui_hero_tab)
                            Switch $CurSel
                                Case $gui_hero_tab1
                                    GUISetState(@SW_SHOW, $gui_hero_althero)
                                    GUISetState(@SW_HIDE, $gui_hero_recshop)

                                Case $gui_hero_tab2
                                    GUISetState(@SW_HIDE, $gui_hero_althero)
                                    GUISetState(@SW_SHOW, $gui_hero_recshop)

                            EndSwitch
                            GUISetState(@SW_HIDE, $gui_annonce)
                            GUISetState(@SW_HIDE, $gui_taunt)
                            Return $GUI_RUNDEFMSG
                        Case $gui_tab2
                            GUISetState(@SW_HIDE, $gui_hero)
                            GUISetState(@SW_HIDE, $gui_hero_althero)
                            GUISetState(@SW_HIDE, $gui_hero_recshop)
                            GUISetState(@SW_SHOW, $gui_annonce)
                            GUISetState(@SW_HIDE, $gui_taunt)
                            Return $GUI_RUNDEFMSG
                        Case $gui_tab3
                            GUISetState(@SW_HIDE, $gui_hero)
                            GUISetState(@SW_HIDE, $gui_hero_althero)
                            GUISetState(@SW_HIDE, $gui_hero_recshop)
                            GUISetState(@SW_HIDE, $gui_annonce)
                            GUISetState(@SW_SHOW, $gui_taunt)
                            Return $GUI_RUNDEFMSG
                    EndSwitch
            EndSwitch
        Case $gui_hero_tab
            Switch $iCode
                Case $TCN_SELCHANGE; The Selected Tab has change
                    $CurSel = _GUICtrlTab_GetCurSel($hWndFrom)
                    ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $CurSel = ' & $CurSel & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
                    Switch $CurSel
                        Case $gui_hero_tab1
                            GUISetState(@SW_SHOW, $gui_hero_althero)
                            GUISetState(@SW_HIDE, $gui_hero_recshop)
                            Return $GUI_RUNDEFMSG
                        Case $gui_hero_tab2
                            GUISetState(@SW_HIDE, $gui_hero_althero)
                            GUISetState(@SW_SHOW, $gui_hero_recshop)
                            Return $GUI_RUNDEFMSG
                    EndSwitch
            EndSwitch
    EndSwitch
    Return $GUI_RUNDEFMSG
EndFunc   ;==>WM_NOTIFY

Sorry my crapy english meeeen, use your imagination and correct me when you can men :) shity shity jajaja

i have a nervius collapse

Edited by monoscout999
Link to comment
Share on other sites

You say that is for a game, i already told you the word "game" is not a "goodlooking" word around here, so don`t be so hard with smartee.

Anyway i fix you script.

The first thing that was wrong was the sizes. try to set the sizes to avoid a GUI pass over the tab

The Second thing was That you need to tell the script that the next tab will be created in the parent GUI, because that tab was created but inside the last GUI you create. so the Y pos 220 that you use for the last tab was invisible because the Last GUI Height was less than 220.

The Tird thing that i correct is a little glitch that happends when you change the tabs.

i added a couple of controls to check the behavior

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiTab.au3>
;$hTab2 = GuiCtrlGetHandle($iTab) ; You will need this to recognize this tab from the WM_NOTIFY

$gui = GUICreate("CustomIt", 600, 400)
GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")
$gui_tab = _GUICtrlTab_Create($gui, 0, 0, 580, 250)
$gui_tab1 = _GUICtrlTab_InsertItem($gui_tab, 1, "Hero")
$gui_tab2 = _GUICtrlTab_InsertItem($gui_tab, 2, "Item 1-2")
$gui_tab3 = _GUICtrlTab_InsertItem($gui_tab, 3, "Item 1-3")
$gui_hero = GUICreate("Hero", 565, 220, 10, 21, $WS_POPUP, $WS_EX_MDICHILD, $gui)
GUISetBkColor(0xFF0000)
$herolist = GUICtrlCreateList("", 5, 5, 100, 100)
For $i = 1 To 80
    GUICtrlSetData($herolist, $i & "|")
Next
$gui_hero_tab = _GUICtrlTab_Create($gui_hero, 110, 5, 450, 210)
$gui_hero_tab1 = _GUICtrlTab_InsertItem($gui_hero_tab, 1, "Alt heroes")
$gui_hero_tab2 = _GUICtrlTab_InsertItem($gui_hero_tab, 1, "Recommended")
$gui_hero_althero = GUICreate("Alt heroes", 440, 180, 120, 29, $WS_POPUP, $WS_EX_MDICHILD, $gui_hero)
GUISetBkColor(0x00ff00)
$gui_hero_recshop = GUICreate("Recommended", 440, 180, 120, 29, $WS_POPUP, $WS_EX_MDICHILD, $gui_hero)
GUISetBkColor(0x0000ff)
;~     GUICtrlCreatePic("textures\shop\recbg.jpg",0,0,216,198)
GUISwitch($gui)
$gui_hero_recshop_shop1_tab = GUICtrlCreateTab(10, 260, 580, 130)
;~ $gui_hero_recshop_shop1_tab1 = GUICtrlGetHandle($gui_hero_recshop_shop1_tab) ; <--------- HERE!!! this tab won't show up Dx
$item1 =GUICtrlCreateTabItem("test1")
$item2 =GUICtrlCreateTabItem("test2")
GUICtrlCreateTabItem("")
$gui_annonce = GUICreate("Annoncement", 565, 220, 10, 21, $WS_POPUP, $WS_EX_MDICHILD, $gui)
$gui_taunt = GUICreate("Taunt", 565, 220, 10, 21, $WS_POPUP, $WS_EX_MDICHILD, $gui)

; Some examples adding controls to the tabs
GUISwitch($gui,$item1) ; To add controls to the main GUI Tab item n1
$but1 = GuiCtrlCreatebutton("Test me!",50,295,150,40)
GUISwitch($gui,$item2) ; Second tab
GuiCtrlCreateLabel("Hey i`m in the main GUI but in the TabItem 2!!",60,340,250,20)
GUISwitch($gui_hero_althero) ; "All heroes" GUI inside the Tab
$But2 = GuiCtrlCreatebutton("Test me!",50,50,150,40)
GUISwitch($gui_hero_recshop) ; "Recommended" GUI inside the Tab
$Edit = GuiCtrlCreateEdit("Hey i`m in a Tab!!",10,10,420,160)

; Let start the show!!
GUISetState(@SW_SHOW, $gui)
GUISetState(@SW_SHOW, $gui_hero)
GUISetState(@SW_SHOW, $gui_hero_althero)

;Main Loop!
While True
$msg = GUIGetMsg()
Switch $msg
    case $GUI_EVENT_CLOSE
        Exit
    Case $but1
        msgbox(0,"yes","I`m Here")
    case $But2
        msgbox(0,"Ta big test","The edit in the other tab says         "&GuiCtrlread($Edit)&"           ")
EndSwitch

WEnd
Func WM_NOTIFY($hWnd, $iMsg, $iwParam, $ilParam)
    #forceref $hWnd, $iMsg, $iwParam
    Local $hWndFrom, $iIDFrom, $iCode, $tNMHDR, $hWndTab
    $tNMHDR = DllStructCreate($tagNMHDR, $ilParam)
    $hWndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom"))
    $iIDFrom = DllStructGetData($tNMHDR, "IDFrom")
    $iCode = DllStructGetData($tNMHDR, "Code")
    Switch $hWndFrom
        Case $gui_tab
            Switch $iCode
                Case $TCN_SELCHANGE; The Selected Tab has change
                    $CurSel = _GUICtrlTab_GetCurSel($hWndFrom)
                    ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $CurSel = ' & $CurSel & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
                    Switch $CurSel
                        Case $gui_tab1

                            GUISetState(@SW_SHOW, $gui_hero)
                            $CurSel = _GUICtrlTab_GetCurSel($gui_hero_tab)
                            Switch $CurSel
                                Case $gui_hero_tab1
                                    GUISetState(@SW_SHOW, $gui_hero_althero)
                                    GUISetState(@SW_HIDE, $gui_hero_recshop)

                                Case $gui_hero_tab2
                                    GUISetState(@SW_HIDE, $gui_hero_althero)
                                    GUISetState(@SW_SHOW, $gui_hero_recshop)

                            EndSwitch
                            GUISetState(@SW_HIDE, $gui_annonce)
                            GUISetState(@SW_HIDE, $gui_taunt)
                            Return $GUI_RUNDEFMSG
                        Case $gui_tab2
                            GUISetState(@SW_HIDE, $gui_hero)
                            GUISetState(@SW_HIDE, $gui_hero_althero)
                            GUISetState(@SW_HIDE, $gui_hero_recshop)
                            GUISetState(@SW_SHOW, $gui_annonce)
                            GUISetState(@SW_HIDE, $gui_taunt)
                            Return $GUI_RUNDEFMSG
                        Case $gui_tab3
                            GUISetState(@SW_HIDE, $gui_hero)
                            GUISetState(@SW_HIDE, $gui_hero_althero)
                            GUISetState(@SW_HIDE, $gui_hero_recshop)
                            GUISetState(@SW_HIDE, $gui_annonce)
                            GUISetState(@SW_SHOW, $gui_taunt)
                            Return $GUI_RUNDEFMSG
                    EndSwitch
            EndSwitch
        Case $gui_hero_tab
            Switch $iCode
                Case $TCN_SELCHANGE; The Selected Tab has change
                    $CurSel = _GUICtrlTab_GetCurSel($hWndFrom)
                    ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $CurSel = ' & $CurSel & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
                    Switch $CurSel
                        Case $gui_hero_tab1
                            GUISetState(@SW_SHOW, $gui_hero_althero)
                            GUISetState(@SW_HIDE, $gui_hero_recshop)
                            Return $GUI_RUNDEFMSG
                        Case $gui_hero_tab2
                            GUISetState(@SW_HIDE, $gui_hero_althero)
                            GUISetState(@SW_SHOW, $gui_hero_recshop)
                            Return $GUI_RUNDEFMSG
                    EndSwitch
            EndSwitch
    EndSwitch
    Return $GUI_RUNDEFMSG
EndFunc   ;==>WM_NOTIFY

Sorry my crapy english meeeen, use your imagination and correct me when you can men :) shity shity jajaja

i have a nervius collapse

I'm trying to set a Gui size but i don't know how big it's gna be and that's why i'm in need of creating all the tabs, and i'll know how big it needs to be...

yes thanks it was the cordinates who were wrong

and thank you very much for all your help, i ow ya so big,

but now there's just this problem left, how can i change the upper one, so it looks like the bottom...

Posted Image

i've tried using this

_GUICtrlTab_SetItemSize($gui_tab, 100, 18) ;only the heigh changes not the width... did i do it wrong?
Edited by Wiggyboy
Link to comment
Share on other sites

@Wiggyboy:

My previous post was not a response to you (I know, I should have specified :)), with the exception of my apologies, targeted at the entire community. It was targeted at big_daddy or any other moderator that drops by. Also please don't take any of this personally.

As of now though, as its within the rules, allow me to offer you some design ideas. ;)

Maybe you would like to "skin your tabs" for a more appealing look.

by Yashied

Here is a horizontal tab example I hatched up with very minor adjustments to Yashied's code. ;)

Hope this helps,

-smartee

@all:

Below is my previous post as it should have been, formatted to specify my target audience. If you read my last post you needn't bother reading the rest of this one.

Hmm, my sincerest apologies then, I seemed to have wrongly jumped to conclusions.

@big_daddy (or any other moderator):

If you don't mind though, this leaves me with a bit of questions.

Ok, so in this case its his in-game hero's aesthetics he seeks to modify, by automating the process of creating the required files to, in some cases force a particular model onto a hero in game.

Deceptively innocent it seems, for had it been helping him skip a couple levels or adding super-powers to his in game character by way of game modification (even if doing so meant simply editing some plain text file), it would be quite easy to spot the not.

I understand it is not a bot in the classic aim-and-shoot sense, however doesn't automating the modification of a game an its resources amount to game automation?

Its just that in this case, while its effects are definitely felt in-game, the modifying/automating process isn't done there. Right?

Regards,

-smartee

Link to comment
Share on other sites

@Wiggyboy:

My previous post was not a response to you (I know, I should have specified :)), with the exception of my apologies, targeted at the entire community. It was targeted at big_daddy or any other moderator that drops by. Also please don't take any of this personally.

As of now though, as its within the rules, allow me to offer you some design ideas. ;)

Maybe you would like to "skin your tabs" for a more appealing look.

by Yashied

Here is a horizontal tab example I hatched up with very minor adjustments to Yashied's code. ;)

Hope this helps,

-smartee

Thanks you, but i like windows own, i don't like when 1 window looks much different then all the others, by using windows own GUI it all looks the same ^^'

This will do some magic

_GUICtrlTab_SetPadding($gui_tab, 79, 4)

add just one line after you create the tab.

ty once again XD
Link to comment
Share on other sites

Hey xD, sorry to bother u but thought i could update u with my project, and i'm having alittle issue...

this is what it looks like

Posted Image

So my issue is the checkboxes i've focus'd, i can only find the solution of remvoing the text and create a label beside it, but i think that would be unneccary, i'm sure there's another way?? right?

Link to comment
Share on other sites

Is there a way to set which of the tabs shows when the GUICtrlCreateTab loads?

That is, if the user chooses x from another form, I want the tab where item X is to show in front.

So, if my gui has tabs called "one", "two" and "three" and tab one has items "a,b,c", tab two has "e,f,g" and tab three has items "x,y,z."

When the user chooses "x" in a previous question, the tab should load, showing tab three in front and item x highlighted.

Link to comment
Share on other sites

Is there a way to set which of the tabs shows when the GUICtrlCreateTab loads?

That is, if the user chooses x from another form, I want the tab where item X is to show in front.

So, if my gui has tabs called "one", "two" and "three" and tab one has items "a,b,c", tab two has "e,f,g" and tab three has items "x,y,z."

When the user chooses "x" in a previous question, the tab should load, showing tab three in front and item x highlighted.

If i understand you correct it should work fine with mine/the script mono gave me, or Refran, u just need to epit them... correct me if i'm wrong

Link to comment
Share on other sites

This is what I mean:

When the user answers X to the input box, I want the gui to open and show tab three with radio button $Radio9 ("X ") highlighted.

#include <GUIConstants.au3>
#include <GuiTab.au3>

$test = InputBox("Lettter Choser", "Please enter A,B,C,E,F,G,X,Y or Z")

$myTab = GUICreate("This is my tab test", 740, 480, 20, 100)
GUICtrlSetFont(-1, 28, 400, 0, "Niagara Solid")

$PageControl1 = GUICtrlCreateTab(8, 8,626, 344)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)

$TabSheet1 = GUICtrlCreateTabItem("One")
$Radio1 = GUICtrlCreateRadio("A", 160,150, 40, 20)
$Radio2 = GUICtrlCreateRadio("B", 160, 180, 40, 20)
$Radio3 = GUICtrlCreateRadio("C", 160, 210, 60, 20)
$TabSheet2 = GUICtrlCreateTabItem("Two")
$Radio4 = GUICtrlCreateRadio("E", 160,150, 40, 20)
$Radio5 = GUICtrlCreateRadio("F", 160, 180, 40, 20)
$Radio6 = GUICtrlCreateRadio("G", 160, 210, 60, 20)

$TabSheet3 = GUICtrlCreateTabItem("Three")
$Radio7 = GUICtrlCreateRadio("X", 160,150, 40, 20)
$Radio8 = GUICtrlCreateRadio("Y", 160, 180, 40, 20)
$Radio9 = GUICtrlCreateRadio("Z", 160, 210, 60, 20)
GUICtrlCreateTabItem("")

;**********
GUISetState(@SW_SHOW)



While 1
        $msg = GUIGetMsg()



        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    WEnd
Link to comment
Share on other sites

This is what I mean:

When the user answers X to the input box, I want the gui to open and show tab three with radio button $Radio9 ("X ") highlighted.

#include <GUIConstants.au3>
#include <GuiTab.au3>

$test = InputBox("Lettter Choser", "Please enter A,B,C,E,F,G,X,Y or Z")

$myTab = GUICreate("This is my tab test", 740, 480, 20, 100)
GUICtrlSetFont(-1, 28, 400, 0, "Niagara Solid")

$PageControl1 = GUICtrlCreateTab(8, 8,626, 344)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)

$TabSheet1 = GUICtrlCreateTabItem("One")
$Radio1 = GUICtrlCreateRadio("A", 160,150, 40, 20)
$Radio2 = GUICtrlCreateRadio("B", 160, 180, 40, 20)
$Radio3 = GUICtrlCreateRadio("C", 160, 210, 60, 20)
$TabSheet2 = GUICtrlCreateTabItem("Two")
$Radio4 = GUICtrlCreateRadio("E", 160,150, 40, 20)
$Radio5 = GUICtrlCreateRadio("F", 160, 180, 40, 20)
$Radio6 = GUICtrlCreateRadio("G", 160, 210, 60, 20)

$TabSheet3 = GUICtrlCreateTabItem("Three")
$Radio7 = GUICtrlCreateRadio("X", 160,150, 40, 20)
$Radio8 = GUICtrlCreateRadio("Y", 160, 180, 40, 20)
$Radio9 = GUICtrlCreateRadio("Z", 160, 210, 60, 20)
GUICtrlCreateTabItem("")

;**********
GUISetState(@SW_SHOW)



While 1
        $msg = GUIGetMsg()



        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    WEnd

See the help file and look for the examples, look how it does... anyway your scritp have errors,

GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)

GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)

GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)

What did you think when you write this? once is not enough?
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...