mIRC Home    About    Download    Register    News    Help

Print Thread
#189326 06/11/07 01:50 AM
Joined: Jul 2006
Posts: 4,213
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,213
I'm not sure this a bug or a feature suggestion :
When having a @window you can do something like :

Code:
menu @win {
rclick { echo -a ok }
}

And when you do a right click, you'll have the echo and not a menu.
But you can have the right click menu too :

Code:
menu @win {
rclick :
Ga : echo -a Ga
is : echo -a is
Ga : echo -a Ga
}


What I would like to see is to can have both rclick action.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #189327 06/11/07 02:07 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
And how would that work? Your right click, get a menu and have text echoed at the same time? That seems a little strange to me.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #189330 06/11/07 02:33 AM
Joined: Jul 2006
Posts: 4,213
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,213
I agree that it seems strange but it just would be nice.
It can works like this :

Code:
menu @win {
sclick { command }
mouse { command }
rclick { command }
menuhere { command }
menu1here { command }
}


Or maybe separate :

Code:
menu @win {
sclick { command }
rclick { command }
mouse { command }
rclick :
menuhere { command }
menu1here { command }
}



#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #189346 06/11/07 03:25 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
This is already possible with a custom identifier:
Code:
menu @win {
  rclick :
  $echostuff
  Ga : echo -a Ga
  is : echo -a is
  Ga : echo -a Ga
}

alias echostuff echo -a im echoing stuff!


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Wims #189347 06/11/07 03:28 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
You can already do that...

Code:
alias dosomething { echo @test hi }
menu @test { 
  $dosomething
  sclick { command }
  mouse { command }
  rclick { command }
  menuhere { command }
  menu1here { command }
}


Just gotta learn to massage the lovely language of mIRC and make it do what you want.


sbm beat me to it.

Last edited by argv0; 06/11/07 03:29 PM.

- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Jul 2006
Posts: 4,213
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,213
nice wink but have this in a better way that call a custom identifieur would be great.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #189361 06/11/07 08:25 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
How is it "better"? It's exactly the same. The only difference is the syntax, and syntax doesn't make anything better-- syntax is just "colour" versus "color", and in the end it doesn't matter how you spell it.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #189373 06/11/07 09:42 PM
Joined: Jul 2006
Posts: 4,213
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,213
I agree with what you said, the syntax isn't a matter for me.

In fact in what I said, I mean that if this was in the help file, it would not seems to me as a workaround.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #189374 06/11/07 09:50 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
A lot of things should (and shouldn't) be in the help file, but that's a whole 'nother can of worms right there.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard