mIRC Home    About    Download    Register    News    Help

Print Thread
#182325 08/08/07 12:26 AM
Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
is there command that enables/disables treebar and switchbar ?


The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I don't think there is.

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You can simulate a keystroke using COM objects, but you'll have to open up the mIRC menus to do that, so on slow computers there might be a slight flicker. Seems fine on mine though.

Code:
alias sendkeys {
  var %object = sendkeys $+ $ticks
  .comopen %object WScript.Shell
  if ($com(%object)) { .comclose %object $com(%object,SendKeys,3,bstr,$1-) }
}
alias toggletreebar { sendkeys % $+ vr }
alias toggletoolbar { sendkeys % $+ vt }


/toggletoolbar
/toggletreebar

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
An addition to hixxy's nice little work around for toggling treebar/toolbar here's one for the switchbar as you mentioned:

Code:
alias toggleswitchbar { sendkeys % $+ vs }


/toggletreebar

hixxy #182366 08/08/07 06:42 PM
Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
i respect your effort hixxy (always did :P)
but that code only opens view menu for me
and i wanted to know if theres way for directly
enableing/disableing treebar

like you did for menu, but so it just shows/hides :P

?

---

@SladeKraven: your alias works ok (shows/hides switchbar)
--

is it because i use 6.20 the trrebar thing by hixxy dont work ?

Last edited by WideOpenSpace; 08/08/07 06:44 PM.

The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
I believe in 6.2 there was a problem where the treebar and toolbar had the same accelerator key, so you might wish to try:

Code:
alias toggletoolbar { sendkeys % $+ vt{ENTER} }
alias toggletreebar { sendkeys % $+ vtt{ENTER} }

hixxy #182368 08/08/07 06:50 PM
Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
now i know why it dont work...

2 T shortcuts are in same menu...



The harder I chase my dreams the more I experience the time for smiles and tears...
hixxy #182369 08/08/07 06:53 PM
Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
Code:
alias toggletreebar { sendkeys % $+ vtt{ENTER} }


this still not working smirk


The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
my apoligoies hixxy.
it works smile

kinda weird behaviour of mirc...

for toolbar i just renamed alias to "tbar"
and for treebar "ttbar" and on /ttbar it didnt work
but when i rename it to anything else it works...
---

many thanks hixxy !

edit:
just a lil question, will this work on any win version ?

Last edited by WideOpenSpace; 08/08/07 08:02 PM.

The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
It should work on anything that has the windows script host installed, which most computers come with these days. Some antiviruses disable it but I find that COM scripts work for the majority of people.

hixxy #182442 09/08/07 05:17 PM
Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
have any idea would it work with winME and win2k ?


The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
If it has the windows script host installed, yes.

hixxy #182843 15/08/07 04:55 PM
Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
btw, is there a way (mirc) or non mirc(hixxy ways)
to detect if treebar OR switchbar is already used by mirc
(at present moment)

?


The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
Dcx.dll can do that smile


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #182852 15/08/07 06:14 PM
Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
that was terrible answer...


The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
It looked like a pretty accurate answer to me. You asked if something could be done, and Wims informed you that you can. In fact, he even gave you additional information (that you didn't request) by telling you what can be used to accomplish your task.

-genius_at_work

Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
but dcx is for changing gui ...


The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
Not exactly, it appear that some people believed this but dcx.dll include some other thing like docking, and it's this feature that allow you to know if menu/switch/tree/toolbar are visible or not :

$xdock(mIRC).isMenuBar
$xdock(mIRC).isSwitchBar
$xdock(mIRC).isTreeBar
$xdock(mIRC).isToolBar

see this page for more help : http://dcx.scriptsdb.org/xdock.htm

smile


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #182889 16/08/07 02:02 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yes, DCX is a great DLL for doing a lot of different things that cannot be done with mIRC scripting (or not as easily).


Invision Support
#Invision on irc.irchighway.net
Riamus2 #182893 16/08/07 02:18 AM
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
I agree completely, it's the single one dll that is really useful for mirc itself (other dll a great too, but generally doing only one thing that is specific to something else of mirc).
Another dll that doing great thing for mirc too is cwnd.dll (use API message) but help is only in french.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard