mIRC Home    About    Download    Register    News    Help

Print Thread
Scripts Editor at Start #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.

Re: Scripts Editor at Start [Re: lcrzoex] #233259 27/07/11 05:16 PM
Joined: Jul 2006
Posts: 3,573
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,573
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)



Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Scripts Editor at Start [Re: Wims] #233260 27/07/11 09:39 PM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
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.

Re: Scripts Editor at Start [Re: lcrzoex] #233261 27/07/11 09:50 PM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
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.

Re: Scripts Editor at Start [Re: Tomao] #233262 27/07/11 10:37 PM
Joined: Jul 2006
Posts: 3,573
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,573
The purpose is that he can re-use the alias


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Scripts Editor at Start [Re: lcrzoex] #233263 28/07/11 04:09 AM
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

Re: Scripts Editor at Start [Re: lcrzoex] #233264 28/07/11 10:18 AM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
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
Re: Scripts Editor at Start [Re: lcrzoex] #233484 18/08/11 11:57 AM
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.