Jump to content

Recommended Posts

Posted

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)
Posted

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:
Posted

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.

Posted

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:

Posted

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
Posted

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

Posted

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

Posted

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.

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
×
×
  • Create New...