mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2006
Posts: 93
Babel fish
OP Offline
Babel fish
Joined: May 2006
Posts: 93
I want to open the mIRC editor (on remote tab, not alias) by clicking on an icon on the toolbar.
I made the icon and I placed it in the toolbar, but i don't know what command use to open the mIRC editor.
Thanks.
Taggnostr

Joined: Dec 2002
Posts: 212
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Dec 2002
Posts: 212
there's a SENDKEYS alias, which uses windows shell script com, it can be used to send key combinations (in your case it will be /sendkeys (%r) )
but i'm not sure where I got this alias from, so I wont paste it here, use google smile


And all I need now is intellectual intercourse, a soul to dig the hole much deeper
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
alias sendkeys {
  .comopen sendkeys WScript.Shell
  if ($com(sendkeys)) .comclose sendkeys $com(sendkeys,SendKeys,3,bstr,$1-)
}


sendkeys % $+ r

Joined: May 2006
Posts: 93
Babel fish
OP Offline
Babel fish
Joined: May 2006
Posts: 93
Thanks, it works laugh
I've also find here the documentation about SendKeys wink
http://msdn.microsoft.com/library/defaul...sclasstopic.asp

Joined: May 2006
Posts: 93
Babel fish
OP Offline
Babel fish
Joined: May 2006
Posts: 93
There's a little problem, every time that I click the button the mIRC editor open, but the block num is (de)selected.
I also tryed to insert the %r in the SendKeys ( .comclose Sendkeys $com(Sendkeys,Sendkeys,3,bstr,% $+ r) ), but nothing change.

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
What do you mean by "the block num is (de)selected" ?

Joined: May 2006
Posts: 93
Babel fish
OP Offline
Babel fish
Joined: May 2006
Posts: 93
I find the problem, the software of my bluethoot key shows a tooltip when the num lock (sorry, in italian is bloc num :P), caps lock and scroll lock. I don't know why, but when i use the sendkeys the tooltip appears, but the num lock remain activated.
Now i've just to find how to disable that tooltip.

Joined: May 2006
Posts: 93
Babel fish
OP Offline
Babel fish
Joined: May 2006
Posts: 93
Find the problem, find the solution :P
http://groups.google.it/group/microsoft....5e93e33a9c4b96e (last post)
now i've disable the tooltip, everything should now works right.
Tnx to all wink

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
Quote:
Code:
alias sendkeys {
  .comopen sendkeys WScript.Shell
  if ($com(sendkeys)) .comclose sendkeys $com(sendkeys,SendKeys,3,bstr,$1-)
}


sendkeys % $+ r


Just curious about the sendkey alias - I've also seen aliases here where the 3 method is instead as 1, and I was just curious which is best? It seems to work both ways.

Joined: May 2006
Posts: 93
Babel fish
OP Offline
Babel fish
Joined: May 2006
Posts: 93
what are the other aliases?

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You use 1 to call a method and 2 to retrieve a property. If you add them together you're calling a function (a method that returns a value).


Link Copied to Clipboard