Jump to content
Sign in to follow this  
B3TA_SCR1PT3R

ini write /read problem

Recommended Posts

B3TA_SCR1PT3R

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]

Share this post


Link to post
Share on other sites
Josbe

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)

Share this post


Link to post
Share on other sites
B3TA_SCR1PT3R

thx but

So 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]

Share this post


Link to post
Share on other sites
Josbe

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 by Josbe

Share this post


Link to post
Share on other sites
B3TA_SCR1PT3R

oh F*** i had the dir name rong

works now

Edited by B3TA_SCR1PT3R

[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.