|
Joined: Jun 2007
Posts: 157
Vogon poet
|
OP
Vogon poet
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
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
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. 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
Hoopy frood
|
Hoopy frood
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: alias toggleswitchbar { sendkeys % $+ vs } /toggletreebar
|
|
|
|
Joined: Jun 2007
Posts: 157
Vogon poet
|
OP
Vogon poet
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
Hoopy frood
|
Hoopy frood
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: alias toggletoolbar { sendkeys % $+ vt{ENTER} }
alias toggletreebar { sendkeys % $+ vtt{ENTER} }
|
|
|
|
Joined: Jun 2007
Posts: 157
Vogon poet
|
OP
Vogon poet
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...
|
|
|
|
Joined: Jun 2007
Posts: 157
Vogon poet
|
OP
Vogon poet
Joined: Jun 2007
Posts: 157 |
alias toggletreebar { sendkeys % $+ vtt{ENTER} } this still not working 
The harder I chase my dreams the more I experience the time for smiles and tears...
|
|
|
|
Joined: Jun 2007
Posts: 157
Vogon poet
|
OP
Vogon poet
Joined: Jun 2007
Posts: 157 |
my apoligoies hixxy. it works  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
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Jun 2007
Posts: 157
Vogon poet
|
OP
Vogon poet
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
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
If it has the windows script host installed, yes.
|
|
|
|
Joined: Jun 2007
Posts: 157
Vogon poet
|
OP
Vogon poet
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,213
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,213 |
Dcx.dll can do that 
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Jun 2007
Posts: 157
Vogon poet
|
OP
Vogon poet
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
Hoopy frood
|
Hoopy frood
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
Vogon poet
|
OP
Vogon poet
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,213
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,213 |
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
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
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
|
|
|
|
Joined: Jul 2006
Posts: 4,213
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,213 |
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
|
|
|
|
|