Jump to content

Quick Question


 Share

Recommended Posts

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:
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...