Jump to content

Recommended Posts

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

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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