Sign in to follow this  
Followers 0
pille24

Ini Write Problem

10 posts in this topic

$newalarm=FileOpenDialog("Choose sound","","Sound Files (*.wav)")

    IniWrite("config.ini","Settings","sound",$newalarm)

Hi, thats my code..

unfortunately, it doesnt write to the ini at all...

Does anyone know y?

Share this post


Link to post
Share on other sites



$newalarm=FileOpenDialog("Choose sound","","Sound Files (*.wav)")

    IniWrite("config.ini","Settings","sound",$newalarm)

Hi, thats my code..

unfortunately, it doesnt write to the ini at all...

Does anyone know y?

Works fine for me... :lmao:

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

Share this post


Link to post
Share on other sites

Works fine for me... :lmao:

crap. Then the mistake must be anywhere else...

Happy searching^^

Share this post


Link to post
Share on other sites

crap. Then the mistake must be anywhere else...

Happy searching^^

Hmmh, I also get the problem that the script doesn´t want to add the path to the ini file.

I´ve got the problem when the path of the config.ini is deeper then the file I´ve chosen.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

i doesnt work for me either i dont really know how to help you out here.. a messegebox can show the dir but i cant get it to iniwrite

Edited by Liope

Share this post


Link to post
Share on other sites

i doesnt work for me either i dont really know how to help you out here.. a messegebox can show the dir but i cant get it to iniwrite

same here, that was y i wondered. THe Box showed me the right path, but it didnt write it to the ini...

Share this post


Link to post
Share on other sites

same here, that was y i wondered. THe Box showed me the right path, but it didnt write it to the ini...

are you making some kind of alarm?

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Your problem probably is that the Config.ini file is created in the directory you select the WAV file from, because FileOpenDialog() changes the workingdirectory to the select directory.

change yoy script to something like this and try it:

$newalarm=FileOpenDialog("Choose sound","","Sound Files (*.wav)")
 IniWrite(@ScriptDir & "\config.ini","Settings","sound",$newalarm)
Edited by JdeB

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

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

ive just testede it and it works :lmao: and ty for the info about fileopendialog i didnt knew that it changed the working dir..

Edited by Liope

Share this post


Link to post
Share on other sites

Your problem probably is that the Config.ini file is created in the directory you select the WAV file from, because FileOpenDialog() changes the workingdirectory to the select directory.

change yoy script to something like this and try it:

$newalarm=FileOpenDialog("Choose sound","","Sound Files (*.wav)")
 IniWrite(@ScriptDir & "\config.ini","Settings","sound",$newalarm)
thx, I just found it out after 10 mins trial and error.. :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  
Followers 0