Jump to content
Sign in to follow this  
unknown12

Quick Question

Recommended Posts

unknown12

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)

Share this post


Link to post
Share on other sites
jpm

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) :lmao:

Share this post


Link to post
Share on other sites
unknown12

won't work :lmao:

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.

Share this post


Link to post
Share on other sites
jpm

won't work o:)

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 working

the following code works

GuiCreate("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_close

PS next time put a complete repro script, I can answer quicker :lmao:

Share this post


Link to post
Share on other sites
unknown12

well, it works, but it dosn't put the file path in the input box. Its in a tab if that helps. thanks.

Share this post


Link to post
Share on other sites
jpm

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

Share this post


Link to post
Share on other sites
jpm

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 ...

Share this post


Link to post
Share on other sites
jpm

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

Share this post


Link to post
Share on other sites
unknown12

i'm still not sure... so would the full script do?

Share this post


Link to post
Share on other sites
jpm

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.

Share this post


Link to post
Share on other sites
unknown12

pmed you the script. Its not too big. thanks.

Share this post


Link to post
Share on other sites
jpm

pmed you the script. Its not too big. thanks.

<{POST_SNAPBACK}>

solved :lmao:

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.