unknown12 Posted February 10, 2005 Posted February 10, 2005 Could someone covert this line to the new autoIT coding style? i'm convertion the rest of my script, but can't get this line, and yes i have look at the manual. GuiWrite($src, 0, $fil)
jpm Posted February 10, 2005 Posted February 10, 2005 Could someone covert this line to the new autoIT coding style? i'm convertion the rest of my script, but can't get this line, and yes i have look at the manual.GuiWrite($src, 0, $fil)<{POST_SNAPBACK}>GuiCtrlSetData($src,$fil)
unknown12 Posted February 10, 2005 Author Posted February 10, 2005 won't work here are the 2 sections of code $src = GuiCtrlCreateInput("c:\", 10, 50, 210, 20) $browse = GuiCtrlCreateButton("Browse...", 230, 50, 80, 20) Case $msg = $browse $fil = FileOpenDialog("Choose a file", "", "Theme Files (*.msstyles)", 1) If @error Then ContinueLoop GuiCtrlSetData($src,$fil) thanks.
jpm Posted February 10, 2005 Posted February 10, 2005 won't work here are the 2 sections of code $src = GuiCtrlCreateInput("c:\", 10, 50, 210, 20) $browse = GuiCtrlCreateButton("Browse...", 230, 50, 80, 20)Case $msg = $browse $fil = FileOpenDialog("Choose a file", "", "Theme Files (*.msstyles)", 1) If @error Then ContinueLoop GuiCtrlSetData($src,$fil)thanks.<{POST_SNAPBACK}>I don't know what is not workingthe following code worksGuiCreate("test") $src = GuiCtrlCreateInput("c:\", 10, 50, 210, 20) $browse = GuiCtrlCreateButton("Browse...", 230, 50, 80, 20) GuiSetState() Do $msg=GUIGetMsg() if $msg = $browse then $fil = FileOpenDialog("Choose a file", "", "Theme Files (*.*)", 1) If @error Then ContinueLoop GuiCtrlSetData($src,$fil) EndIf Until $msg=$gui_event_closePS next time put a complete repro script, I can answer quicker
unknown12 Posted February 10, 2005 Author Posted February 10, 2005 well, it works, but it dosn't put the file path in the input box. Its in a tab if that helps. thanks.
jpm Posted February 10, 2005 Posted February 10, 2005 well, it works, but it dosn't put the file path in the input box. Its in a tab if that helps. thanks.<{POST_SNAPBACK}>put the repro script so I can help you
jpm Posted February 10, 2005 Posted February 10, 2005 repro? full script?<{POST_SNAPBACK}>I prefer repro. sometime user find their problem.I am not saying there is no bug in AutoIt GUI. I sure of the reverse but ...
jpm Posted February 10, 2005 Posted February 10, 2005 what is repro?<{POST_SNAPBACK}>repro is a repoduction script which contain only the sequence you think produce the error.In your case, based on the repro script I posted add what is needed to reproduce the error you are facing.Thanks for your cooperation
unknown12 Posted February 10, 2005 Author Posted February 10, 2005 i'm still not sure... so would the full script do?
jpm Posted February 10, 2005 Posted February 10, 2005 i'm still not sure... so would the full script do?<{POST_SNAPBACK}>I hope it is not too big and too difficult to understand.I don't want to spent a lot of time to search inside.That's the reason I would have prefer you reproduce the error starting with the script I post above.if you cannot PM me the script if it is really big.
unknown12 Posted February 10, 2005 Author Posted February 10, 2005 pmed you the script. Its not too big. thanks.
jpm Posted February 10, 2005 Posted February 10, 2005 pmed you the script. Its not too big. thanks.<{POST_SNAPBACK}>solved
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