HeavenlyDemon Posted February 22, 2012 Share Posted February 22, 2012 expandcollapse popup#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 430, 382, 192, 114) $Group1 = GUICtrlCreateGroup("Group1", 8, 8, 410, 297) $cs1 = GUICtrlCreateInput("", 16, 24, 321, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) $cs2 = GUICtrlCreateInput("", 16, 48, 321, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) $connser1 = GUICtrlCreateInput("", 16, 72, 321, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) $cons2 = GUICtrlCreateInput("", 16, 96, 321, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) $datajpn = GUICtrlCreateInput("", 16, 120, 321, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) $datakor = GUICtrlCreateInput("", 16, 144, 321, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) $data1 = GUICtrlCreateInput("", 16, 168, 321, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) $data2 = GUICtrlCreateInput("", 16, 192, 321, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) $dataserver1 = GUICtrlCreateInput("", 16, 216, 321, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) $dataserver2 = GUICtrlCreateInput("", 16, 240, 321, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) $mustartup = GUICtrlCreateInput("", 16, 264, 321, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY)) $b_cs1 = GUICtrlCreateButton("...", 344, 24, 59, 17) $b_cs2 = GUICtrlCreateButton("...", 344, 48, 59, 17) $b_connser1 = GUICtrlCreateButton("...", 344, 72, 59, 17) $b_cons2 = GUICtrlCreateButton("...", 344, 96, 59, 17) $b_jpn = GUICtrlCreateButton("...", 344, 120, 59, 17) $b_kor = GUICtrlCreateButton("...", 344, 144, 59, 17) $b_data1 = GUICtrlCreateButton("...", 344, 168, 59, 17) $b_data2 = GUICtrlCreateButton("...", 344, 192, 59, 17) $b_dataserver1 = GUICtrlCreateButton("...", 344, 216, 59, 17) $b_dataserver2 = GUICtrlCreateButton("...", 344, 240, 59, 17) $b_msu = GUICtrlCreateButton("...", 344, 264, 59, 17) GUICtrlCreateGroup("", -99, -99, 1, 1) $save = GUICtrlCreateButton("Save", 8, 312, 410, 25) $cancel = GUICtrlCreateButton("Cancel", 8, 344, 410, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $cancel Exit Case $b_cs1 $of_cs1 = FileOpenDialog("Open CashShopServer : ", @WorkingDir & "\CashShopServer\", "Text Files (*.txt)", 1, "AllowableIPList.txt") GUICtrlSetData($cs1, $of_cs1) Case $b_cs2 $of_cs2 = FileOpenDialog("Open CashShopServer : ", @WorkingDir & "\CashShopServer\", "Ini Files (*.ini)", 1, "CashShopOption.ini") GUICtrlSetData($cs2, $of_cs2) Case $b_connser1 $of_connser1 = FileOpenDialog("Open ConnectServer : ", @WorkingDir & "\ConnectServer\Data\", "Data Files (*.dat)", 1, "ServerInfo.dat") GUICtrlSetData($connser1, $of_connser1) EndSwitch WEnd This is my script My problem : i open file $of_cs1 and\or $of_cs2 but when i open file $of_connser1 it dosent go to connectserver\data it stayes in cashshopserver Link to comment Share on other sites More sharing options...
AlmarM Posted February 22, 2012 Share Posted February 22, 2012 (edited) You sure there is a ConnectServerdata folder? Edited February 22, 2012 by AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
whim Posted February 22, 2012 Share Posted February 22, 2012 Help file for FileOpenDialog says: "@WorkingDir is changed on successful return."Suggestion: use @ScriptDir instead.hope that helps,whim HeavenlyDemon 1 Link to comment Share on other sites More sharing options...
HeavenlyDemon Posted February 22, 2012 Author Share Posted February 22, 2012 @scriptDir works ty whim Link to comment Share on other sites More sharing options...
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