mIRC Homepage
Posted By: lcrzoex Scripts Editor at Start - 27/07/11 04:49 AM
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.
Posted By: Wims Re: Scripts Editor at Start - 27/07/11 05:16 PM
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)

Posted By: Tomao Re: Scripts Editor at Start - 27/07/11 09:39 PM
Wims, I don't see the purpose of the alias when you can place the code directly under the start event.
Posted By: Tomao Re: Scripts Editor at Start - 27/07/11 09:50 PM
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.
Posted By: Wims Re: Scripts Editor at Start - 27/07/11 10:37 PM
The purpose is that he can re-use the alias
Posted By: lcrzoex Re: Scripts Editor at Start - 28/07/11 04:09 AM
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
Posted By: Riamus2 Re: Scripts Editor at Start - 28/07/11 10:18 AM
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
Posted By: lcrzoex Re: Scripts Editor at Start - 18/08/11 11:57 AM
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. =)

© mIRC Discussion Forums