|
Joined: Dec 2002
Posts: 212
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 212 |
$background(window) should return the bachkground image for that window props: .style (center/tile/normal/stretch/photo/fill), perhaps a prop to show whether this is the default image also maybe options for the switchbar/toolbar/main mirc window
And all I need now is intellectual intercourse, a soul to dig the hole much deeper
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
$readini(mirc.ini,n,background,WINDOWNAMEHERE)
returns >>> path&filename,# or $null on none # is 1 to 5 for center to photo
%Image = $deltok($iif($readini(mirc.ini,n,background,WINDOWNAMEHERE) != none,$ifmatch),-1,44) %Style = $gettok($iif($readini(mirc.ini,n,background,WINDOWNAMEHERE) != none,$ifmatch),-1,44)
for your switchbar/toolbar/main mirc window use switchbar,toolbar,@mdi, theres also toolbuttons & status Maybe some others those are the ones i had set so were in my mirc.ini
|
|
|
|
Joined: Feb 2003
Posts: 810
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 810 |
I second this suggestion. The less need to read/write directly from/to mirc.ini, the better, IMO.
* cold edits his posts 24/7
|
|
|
|
Joined: Dec 2002
Posts: 212
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 212 |
Davec, I'm aware of that, thanks
And all I need now is intellectual intercourse, a soul to dig the hole much deeper
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
you only ever read, and i would guess its in the system disk cache already, so not likely a big overhead.
but i guess if theres no command, why not it is a kindas commonly used thing and all, isnt it?
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
Sorry , i had (wrongly) assumed you didnt know how to get them.
|
|
|
|
Joined: Dec 2002
Posts: 212
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 212 |
but DaveC, if you have set default background for queries for example, and also a specific background for nickname "my_beloved", you have to do two checks, since if there's default entry reading "other_beloved" from mirc.ini's background section will result in $null so you have to read every time "wquery" and the nickname itself maybe I didn't made my self clear... here's mIRC.ini: [background] @mdi=none wchannel=C:\WINNT\ARCADE.BMP,5 #Gyuvetch=C:\WINNT\ARCHES.BMP,0 now, reading #test will result in $null for example, but you cannot read just "wchannel" since you'll miss #gyuvetch's specific settings that's why I think it's better mIRC to do the job
And all I need now is intellectual intercourse, a soul to dig the hole much deeper
|
|
|
|
Joined: Feb 2003
Posts: 810
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 810 |
No, you write too. Many options (most from alt+o) can't be set through "normal" commands and you can always write what you need and open another instance. Which is exactly what I don't like having to do. Edit: By the way, there are the font settings.. it seems mIRC treats them differently, I don't know why - you can edit them (writing to mirc.ini) without having to open another instance. Inconsistency.. quite a good reason for finally regularizing the /font command, IMHO.. anyway, I digress.
My point is, the more commands and identifiers to deal with them in any way, the better.
Last edited by cold; 18/01/04 09:38 AM.
* cold edits his posts 24/7
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
I beleive that is a check you would want to make yourself, ill explain why in a sec. I do have to admit my code was wrong, it should have been... %Image = $deltok($iif($readini(mirc.ini,n,background,WINDOWNAMEHERE) != none,$ifmatch,none $chr(44) ?),-1,44) %Style = $gettok($iif($readini(mirc.ini,n,background,WINDOWNAMEHERE) != none,$ifmatch),-1,44)
giving true status of the window, as NONE actually means something.
I beleive you should check the "wchannel" setting manually, as you maybe only wanting to insert a different image in for a short period and then returning the window your altering back to its original state. This would not be the state u lefty it in if u loaded it with "wchannel"'s value, as that may have channged or may change later, and the now altered window would not.
|
|
|
|
|