mIRC Home    About    Download    Register    News    Help

Print Thread
channelbar #9814 05/02/03 03:42 PM
Joined: Feb 2003
Posts: 19
eyeffect Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Feb 2003
Posts: 19
hi (again), could anyone tell me if there is any command to place the channelbar on another side (left,right,bottom)? And there is on mirc.ini an item telling its actual position? 10x


trace me
Re: channelbar #9815 05/02/03 07:51 PM
Joined: Dec 2002
Posts: 1,237
T
The_Game Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
May be just as easy to drag and drop to where you want it...try clicking on the bar itself and hold it then drag it to where you want it!

Re: channelbar #9816 05/02/03 09:56 PM
Joined: Feb 2003
Posts: 19
eyeffect Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Feb 2003
Posts: 19
? I asked for a /command or an item in mirc.ini that can tell the actual position. drag and drop it everybody knows... (!)


trace me
Re: channelbar #9817 05/02/03 11:10 PM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Code:

alias ShowSwitchbar return $iif($gettok($readini($mircini, Options, n5), 23, 32), $true, $false)
alias SwitchbarPosition {
  var %Position = $gettok($readini($mircini, Options, n4), 21, 32)
  if (%Position == 3) return Right
  elseif (%Position == 2) return Left
  elseif (%Position == 1) return Top
  else return Bottom
}

if ($ShowSwitchbar) { commands }
if (($ShowSwitchbar) && ($SwitchbarPosition == Left)) { commands }


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Re: channelbar #9818 05/02/03 11:38 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
But seems like it can't be controlled by /writeini. mIRC just doesn't save it.

Re: channelbar #9819 06/02/03 02:05 AM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Well. I think you might find that it does save it; it's just that mIRC itself doesn't reread your changes to the file since it has already read it and knows what its settings are. The next time you use a built-in dialog to make changes, it will save again, overwriting any changes you made. You can force the save with /saveini (no parameters). This is useful if you alter a setting through a command. mIRC doesn't immediately update $mircini when you use a command rather than a built-in dialog. (It's the OK button that causes the write, which doesn't get called through a /command interface). That is why /saveini is available.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Re: channelbar #9820 06/02/03 07:23 AM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Thanks for making it clear smile

Re: channelbar #9821 06/02/03 06:03 PM
Joined: Feb 2003
Posts: 19
eyeffect Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Feb 2003
Posts: 19
are you sure that works in mirc 6.03? In my case didn't work. So if you know for mirc 6.03 please tell me. thanks


trace me
Re: channelbar #9822 06/02/03 08:31 PM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
I did not say it "works" at all...quite the opposite, in fact, and I explained why. Here's are better examples.
  1. Suppose you wrote to $mircini and added another filename to the end of [rfiles]. That was very well done! Good job. However, does that mean that you did the equivalent of /load -rs filename.mrc? No, not at all. When mIRC exits, it will rewrite the $mircini file with its current settings, blowing away your changed rfiles section anyway. And obviously, writing to that section is not at all the same thing as loading a remote script file.
  2. Suppose you are a beta tester for someone's script. They send you a file, you save it directly into your mIRC directory where you keep such files, choosing to overwrite the previous version with the new version. All's well so far, but why doesn't the new script work? You complain to the script's author and he tells you to /unload the old one first, then load the new one. But you find that when you /unload the current file, it overwrites the new copy with the old version, so you have to ask the author to send it again. The author gets all pissed off that you can't manage your files very well and strikes you from his beta list, putting you on his permanent UtterIgnore list.

    Well, perhaps that wasn't such a good example; I should have picked an example where the author was a bit more PATIENT with his beta testers or who should have learned the value of the /reload command!!! It doesn't matter, it probably wasn't a very good script anyway.
  3. When you make changes to Windows' ini files, it asks you to reboot your computer to make the changes active.

    Ok, that's a bad example too. mIRC doesn't require you to reboot your computer if you want to change your nick, so it's not much like Windows' registry management at all.
  4. If you
Oh nevermind. I never said it worked in v6.03.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Re: channelbar #9823 06/02/03 08:38 PM
Joined: Feb 2003
Posts: 19
eyeffect Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Feb 2003
Posts: 19
ok, sorry. my mistake


trace me