Sign in to follow this  
Followers 0
CyberFunk Productions

Ini Write

4 posts in this topic

For some reason the ini's won't write, i have the exe in a file of its own so i shouldn't need a path it should just write into the folder, and it also won't write my txt file. what am i doing wrong?

Func ShortC()                                                         ;Writes keys
   $Path = FileSelectFolder("Choose a file", "", 0)                   ;gets values
   $File = FileOpenDialog("File EXE", "C:\Program Files\", "Files (*.exe)", 1) 
   Sleep(500)
   IniWrite( "Keys.ini", $Key, "F6P", $Path)                     ;then write the values
   IniWrite( "Keys.ini", $Key, "F6F", $File)
   $answer = MsgBox(4, "Description", "Would you like to put a description on key?")
   If $answer = 6 Then
        $Des = Inputbox("Description", "Please enter the description of the key:", "Description", "", -1, 75, -1, -1 )
        $File = FileOpen("Log.txt", 1)
        FileWriteLine( $File, $Key & " - " & $Des)
   EndIf
EndFunc

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

For some reason the ini's won't write, i have the exe in a file of its own so i shouldn't need a path it should just write into the folder, and it also won't write my txt file. what am i doing wrong?

Deja Vu: http://www.hiddensoft.com/forum/index.php?...indpost&p=13048 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

lol, ok, i forgot about that one....

Share this post


Link to post
Share on other sites

lol, ok, i forgot about that one....

Wow...that's scary. You forgot about a post you made two days ago?

Jeff

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