mIRC Home    About    Download    Register    News    Help

Print Thread
Scripts Editor at Start #233258
27/07/11 04:49 AM
27/07/11 04:49 AM
Joined: Jun 2011
Posts: 8
L
lcrzoex Offline OP
Nutrimatic drinks dispenser
lcrzoex  Offline OP
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
27/07/11 05:16 PM
Joined: Jul 2006
Posts: 3,515
France
W
Wims Offline
Hoopy frood
Wims  Offline
Hoopy frood
W

Joined: Jul 2006
Posts: 3,515
France
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
27/07/11 09:39 PM
Joined: Jul 2007
Posts: 1,129
United States
T
Tomao Offline
Hoopy frood
Tomao  Offline
Hoopy frood
T

Joined: Jul 2007
Posts: 1,129
United States
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
27/07/11 09:50 PM
Joined: Jul 2007
Posts: 1,129
United States
T
Tomao Offline
Hoopy frood
Tomao  Offline
Hoopy frood
T

Joined: Jul 2007
Posts: 1,129
United States
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
27/07/11 10:37 PM
Joined: Jul 2006
Posts: 3,515
France
W
Wims Offline
Hoopy frood
Wims  Offline
Hoopy frood
W

Joined: Jul 2006
Posts: 3,515
France
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
28/07/11 04:09 AM
Joined: Jun 2011
Posts: 8
L
lcrzoex Offline OP
Nutrimatic drinks dispenser
lcrzoex  Offline OP
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
28/07/11 10:18 AM
Joined: Oct 2004
Posts: 8,327
MA, USA
Riamus2 Offline
Hoopy frood
Riamus2  Offline
Hoopy frood

Joined: Oct 2004
Posts: 8,327
MA, USA
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
18/08/11 11:57 AM
Joined: Jun 2011
Posts: 8
L
lcrzoex Offline OP
Nutrimatic drinks dispenser
lcrzoex  Offline OP
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.