mIRC Home    About    Download    Register    News    Help

Print Thread
#233258 27/07/11 04:49 AM
Joined: Jun 2011
Posts: 8
L
lcrzoex Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Jun 2011
Posts: 8
I using mIRC only as scripting language, main mIRC window running hidden in system tray.

How to open mIRC Scripts Editor when mIRC run? Without(!) open main mIRC window.


also feature suggestion: add scripts editor in system tray menu.

Joined: Jul 2006
Posts: 4,180
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
In the options (alt + o > Display > options > tray), check the box "on startup place mirc in tray" to have mirc in tray on startup.
To open the script editor on startup, you can use the following code:
Code:
on *:start:s_editor
alias -l s_editor .comopen a WScript.Shell | .comclose a $com(a,SendKeys,3,bstr,% $+ r)



#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Wims, I don't see the purpose of the alias when you can place the code directly under the start event.

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Originally Posted By: lcrzoex
I using mIRC only as scripting language, main mIRC window running hidden in system tray. How to open mIRC Scripts Editor when mIRC run?
I think this is what you actually want:
Code:
on *:appactive:{
  if ($mouse.key & 1) {
    .comopen a WScript.Shell 
    .comclose a $com(a,SendKeys,3,bstr,% $+ r)
  }
}
when the mIRC is minimized in the tray, you double left-click on it to open it along with the script editor.

Joined: Jul 2006
Posts: 4,180
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
The purpose is that he can re-use the alias


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jun 2011
Posts: 8
L
lcrzoex Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Jun 2011
Posts: 8
Thanks for reply.
But I use mIRC in Wine and this com object doesn't work, huh..

My problem solved, - now I just use external editor for mIRC Scripts (vim), because my WM (EvilWM) crashed mIRC smile
And use simple "exec" script for control mIRC from IRC.



smile

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
In the future, it helps to mention if you're using WINE. You wouldn't have been given a COM script if they knew that from the start. smile


Invision Support
#Invision on irc.irchighway.net
Joined: Jun 2011
Posts: 8
L
lcrzoex Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Jun 2011
Posts: 8
Sorry for 'bump', just find another solution for problem.

Check winecfg > Graphics > Emulate a virtual desktop.

Now wine have own window for all applications, and mIRC no more crash. =)


Last edited by lcrzoex; 18/08/11 12:00 PM.

Link Copied to Clipboard