Jump to content
Sign in to follow this  
rachel

BUG? BUG? BUG?

Recommended Posts

rachel

CODE
$message = "Hold down Ctrl or Shift to choose multiple files."

$var = FileOpenDialog($message, @WindowsDir & "\", "Images (*.jpg;*.bmp)", 1 + 4 )

If @error Then

MsgBox(4096,"","No File(s) chosen")

Else

$var = StringReplace($var, "|", @CRLF)

IniWrite("cfg.ini", "aaaa", "bbbb", $var)

;MsgBox(4096,"","You chose " & $var)

EndIf

[ IniWrite ] cut no ice

Edited by rachel

Share this post


Link to post
Share on other sites
Jos

change this line:

IniWrite("cfg.ini", "aaaa", "bbbb", $var)

to

IniWrite(@scriptdir & "\cfg.ini", "aaaa", "bbbb", $var)

Because FileOpenDialog() is changing the WorkingDirectory.

:P


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×