bluebier Posted June 19, 2012 Posted June 19, 2012 How to make: program folder: -main.exe -plugin -1 -1 - pluginname.file - info.ini -2 -info.ini -2 -info.ini I want to load the plugin folder, the files. Having finished the exe, then only the plugin folder, I add a module and move on. twice when I click on it in the treeview, then open the plugin, pass the main variables I do that? expandcollapse popup#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <TreeViewConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=c:\users\user\desktop\butrokeszito\script\form1.kxf $Form1_1 = GUICreate("Form1", 1002, 557, 192, 121) $TreeView1 = GUICtrlCreateTreeView(8, 8, 417, 545) $Label1 = GUICtrlCreateLabel(IniRead("info.ini", "Nevek", "Mezo1", "NotFound"), 448, 64, 36, 17) $Label2 = GUICtrlCreateLabel(IniRead("info.ini", "Nevek", "Mezo2", "NotFound"), 448, 96, 36, 17) $Label3 = GUICtrlCreateLabel(IniRead("info.ini", "Nevek", "Mezo3", "NotFound"), 448, 128, 36, 17) $Label4 = GUICtrlCreateLabel(IniRead("info.ini", "Nevek", "Mezo4", "NotFound"), 448, 160, 36, 17) $Label5 = GUICtrlCreateLabel(IniRead("info.ini", "Nevek", "Mezo5", "NotFound"), 448, 192, 36, 17) $Label6 = GUICtrlCreateLabel(IniRead("info.ini", "Nevek", "Mezo6", "NotFound"), 448, 224, 36, 17) $Input2 = GUICtrlCreateInput("Input2", 504, 96, 121, 21) $Input3 = GUICtrlCreateInput("Input3", 504, 128, 121, 21) $Input4 = GUICtrlCreateInput("Input4", 504, 160, 121, 21) $Input5 = GUICtrlCreateInput("Input5", 504, 192, 121, 21) $Input6 = GUICtrlCreateInput("Input6", 504, 224, 121, 21) $Input1 = GUICtrlCreateInput("Input1", 504, 64, 121, 21) $Label7 = GUICtrlCreateLabel(IniRead("info.ini", "Nevek", "Mezo7", "NotFound"), 448, 296, 36, 17) $Label8 = GUICtrlCreateLabel(IniRead("info.ini", "Nevek", "Mezo8", "NotFound"), 448, 328, 36, 17) $Combo1 = GUICtrlCreateCombo("Combo1", 496, 296, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) $Combo2 = GUICtrlCreateCombo("Combo2", 496, 328, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) $Checkbox1 = GUICtrlCreateCheckbox(IniRead("info.ini", "Nevek", "Pipa1", "NotFound"), 448, 360, 97, 17) $Button1 = GUICtrlCreateButton(IniRead("info.ini", "Nevek", "Gomb1", "NotFound"), 448, 488, 201, 25) $Button2 = GUICtrlCreateButton(IniRead("info.ini", "Nevek", "Gomb2", "NotFound"), 448, 528, 201, 25) $Group1 = GUICtrlCreateGroup("Group1", 680, 24, 305, 521) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $i = 1 While $i <= 100 $nev = IniRead("plugin/" & $i & "/info.ini", "Kategoria", "Név", "NotFound") if $nev = "NotFound" Then $i = 100 Else $generalitem = GUICtrlCreateTreeViewItem($nev, $TreeView1) $e = 1 While $e <= 100 $nev1 = IniRead("plugin/" & $i &"/"& $e & "/info.ini", "Modul", "Név", "NotFound") if $nev1="NotFound" Then $e =100 Else $generalitem1 = GUICtrlCreateTreeViewItem($nev1, $generalitem) EndIf $f = 1 While $f <= 100 $nev2 = IniRead("plugin/" & $i &"/"& $e & "/" & $f & "/info.ini", "Modul", "Név", "NotFound") if $nev2="NotFound" Then $f =100 Else GUICtrlCreateTreeViewItem($nev2, $generalitem1) EndIf $f = $f + 1 WEnd $e = $e + 1 WEnd EndIf $i = $i + 1 WEnd _GUICtrlTreeView_GetText($TreeView1, _GUICtrlTreeView_GetSelection($TreeView1)) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEndscript.rar
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now