mIRC Homepage
Posted By: maezr writeini help - 02/11/03 08:12 PM
menu status {
Moo
.run open opera {
/set %proxy $read(proxy.txt)
/writeini -n C:\Program Files\Opera\Opera6.ini proxy "HTTP Server" %prox
/run C:\Program Files\Opera\opera.exe %site
}

I don't get an error message, but the value doesn't change. what's wrong?
Posted By: pheonix Re: writeini help - 02/11/03 08:21 PM
change C:\Program Files\Opera\Opera6.ini to "C:\Program Files\Opera\Opera6.ini" and add an extra }
Posted By: maezr Re: writeini help - 02/11/03 08:29 PM
with that change, I get the following in the ini file...

"HTTP="Server""

(instead of HTTP Server=68.157.124.70:80 or something)
Posted By: pheonix Re: writeini help - 02/11/03 08:32 PM
yes you can't have spaces in the part before the "=" as far as i know.
Posted By: maezr Re: writeini help - 02/11/03 08:35 PM
so there's no way to edit this ini file, then?
Posted By: pheonix Re: writeini help - 02/11/03 08:36 PM
change http server %prox to httpserver %prox
Posted By: CtrlAltDel Re: writeini help - 02/11/03 08:49 PM
it might be helpful to use httpserver %proxy

wink
Posted By: maezr Re: writeini help - 02/11/03 08:49 PM
but opera reads from "http server" not "httpserver" :\
Posted By: Collective Re: writeini help - 02/11/03 08:51 PM
You could do it with a /write instead of a /writeini.

Just overwrite the line.
Posted By: pheonix Re: writeini help - 02/11/03 08:58 PM
ah yes, i just read this bit: /writeini -n C:\Program Files\Opera\Opera6.ini proxy "HTTP Server" %prox
Posted By: maezr Re: writeini help - 02/11/03 08:58 PM
.run open opera {
/set %proxy $read(proxy.txt)
/write -l221 C:\Program Files\Opera\Opera6.ini HTTP Server= $+ %proxy
/run C:\Program Files\Opera\opera.exe %site
}

still not getting any change at all
Posted By: pheonix Re: writeini help - 02/11/03 08:59 PM
you need the quotes: "path"
Posted By: damanseb Re: writeini help - 08/11/03 04:34 PM
Its a bug i think, u could get around it by doing this:

You need to write 2 lines for a valid ini format:

/write -l221 "C:\Program Files\Opera\Opera6.ini" [proxy]
/write -l222 "C:\Program Files\Opera\Opera6.ini" HTTP Server= $+ %proxy

Alot of trouble for a small bug..
Posted By: Collective Re: writeini help - 08/11/03 04:48 PM
What exactly do you think is a bug?
© mIRC Discussion Forums