huldu Posted December 31, 2005 Share Posted December 31, 2005 (edited) Hey again!This time i ran into an unexpected problem with FileOpenDialog, the thing is i dont understand what is wrong. Everything works great, but 1 thing...$OpenFile = FileOpenDialog($message, "C:\", "Executables (*.exe)", 1 + 2 )$Convert = String($OpenFile) ;Added this cause i thought the $OpenFile result wasnt a stringIniWrite($FileName, "GAME", "Dir", $Convert)Okay, everything works great until it comes to writting the value to .ini. I just cant get it to write it in there. If i check $OpenFile and/or $Convert i get full path to file, including the .exe so it SHOULD be written to the .ini! If i run this part BEFORE any other IniWrite sections in my script, it messes up ALL IniWrite operations. This is just too evil -- Oh ye, 1 more thing Is it possible to refresh: GUICtrlCreateInput($UpdateDir, 16, 400, 193, 21, -1, $WS_EX_CLIENTEDGE) , in any way if its already been run once?. I tried adding the above line further down in the script but the script locked up and i had to force exit it. Edited December 31, 2005 by huldu "I'm paper, rock is fine, nerf scissors!!!" Link to comment Share on other sites More sharing options...
LxP Posted December 31, 2005 Share Posted December 31, 2005 The code that you supplied works for me. Perhaps it's something else in your (unsupplied) code?You don't need to use String() since the result will already be one.Is it possible to refresh: GUICtrlCreateInput($UpdateDir, 16, 400, 193, 21, -1, $WS_EX_CLIENTEDGE) , in any way if its already been run once?Try GUICtrlSetData() perhaps, without knowing any more information. Link to comment Share on other sites More sharing options...
huldu Posted January 1, 2006 Author Share Posted January 1, 2006 (edited) This is really weird, i couldnt get it to work. -- Really sorry i found the problem, i "assumed" if i used for example "test.ini" it would save it into the same dir as the script was found in. The test.ini it was writting to was found on c:\ drive hehe Thanks once again, gonna start using @ScriptDir ! Edited January 1, 2006 by huldu "I'm paper, rock is fine, nerf scissors!!!" 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