B3TA_SCR1PT3R Posted August 3, 2005 Posted August 3, 2005 So i created a ini file with settings but this wont show up in the ini ? If $v = $GUI_CHECKED Then IniWrite("C:\Program Files\Pop-Up Blcoker\System.ini","Settings","Record","1") Else IniWrite("C:\Program Files\Pop-Up Blcoker\System.ini","Settings","Record","0") EndIf also i created this to read the ini file how what do i need to make it work $t = IniReadSection("C:\Program Files\Pop-Up Blocker\System.ini","Settings") If $t = $t[1][1] Then Opt("TrayIconHide",1) EndIf i know that the If $t = $t[1][1] isnt right wat do i type to make it right [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]
Josbe Posted August 3, 2005 Posted August 3, 2005 Because you have only one value to read, just do that: $t = IniRead("C:\Program Files\Pop-Up Blcoker\System.ini","Settings","Record") IF $t = 1 Then Opt("TrayIconHide", 1) AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
B3TA_SCR1PT3R Posted August 3, 2005 Author Posted August 3, 2005 thx butSo i created a ini file with settings but this wont show up in the ini ? [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]
Josbe Posted August 3, 2005 Posted August 3, 2005 (edited) First:"Pop-Up Blcoker" or "Pop-Up Blocker"?Second, check if the value returned is zero too:IniWrite("C:\Program Files\Pop-Up Blcoker\System.ini","Settings","Record","1") Msgbox( 0, "Output", @error ) Edited August 3, 2005 by Josbe AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
B3TA_SCR1PT3R Posted August 3, 2005 Author Posted August 3, 2005 (edited) oh F*** i had the dir name rong works now Edited August 3, 2005 by B3TA_SCR1PT3R [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now