mIRC Home    About    Download    Register    News    Help

Print Thread
Open alt+r dialog by clicking a Toolbar icon #154567 30/07/06 08:54 AM
Joined: May 2006
Posts: 93
Taggnostr Offline OP
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

Re: Open alt+r dialog by clicking a Toolbar icon #154568 30/07/06 10:48 AM
Joined: Dec 2002
Posts: 212
V
vasil_michev Offline
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
Re: Open alt+r dialog by clicking a Toolbar icon #154569 30/07/06 10:55 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
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

Re: Open alt+r dialog by clicking a Toolbar icon #154570 30/07/06 12:02 PM
Joined: May 2006
Posts: 93
Taggnostr Offline OP
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

Re: Open alt+r dialog by clicking a Toolbar icon #154571 30/07/06 01:47 PM
Joined: May 2006
Posts: 93
Taggnostr Offline OP
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.

Re: Open alt+r dialog by clicking a Toolbar icon #154572 30/07/06 02:15 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
What do you mean by "the block num is (de)selected" ?

Re: Open alt+r dialog by clicking a Toolbar icon #154573 30/07/06 02:40 PM
Joined: May 2006
Posts: 93
Taggnostr Offline OP
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.

Re: Open alt+r dialog by clicking a Toolbar icon #154574 30/07/06 02:48 PM
Joined: May 2006
Posts: 93
Taggnostr Offline OP
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

Re: Open alt+r dialog by clicking a Toolbar icon #154575 18/08/06 12:38 AM
Joined: Jan 2004
Posts: 1,300
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,300
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.

Re: Open alt+r dialog by clicking a Toolbar icon #154576 18/08/06 01:17 AM
Joined: May 2006
Posts: 93
Taggnostr Offline OP
Babel fish
OP Offline
Babel fish
Joined: May 2006
Posts: 93
what are the other aliases?

Re: Open alt+r dialog by clicking a Toolbar icon #154577 18/08/06 01:18 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
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).