mIRC Home    About    Download    Register    News    Help

Print Thread
on click #229446 05/02/11 02:26 AM
Joined: Nov 2009
Posts: 295
P
pball Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
I'm thinking something like on hotlink but for a click in any window would be nice. The idea I have is updating a right click menu before it's opened by a right click. I tried it with on hotlink and that works great, but on hotlink on works when the mouse is over text.


http://scripting.pball.win
My personal site with some scripts I've released.
Re: on click [Re: pball] #229481 06/02/11 08:33 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Well, there is the mouse event that can be used with menus and allows clicking anywhere in the window. /help mouse event


Invision Support
#Invision on irc.irchighway.net
Re: on click [Re: Riamus2] #229514 08/02/11 03:01 AM
Joined: Nov 2009
Posts: 295
P
pball Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
The mouse event is triggered when you move a mouse inside a picture window.

Doesn't really seem like what I'm looking for


http://scripting.pball.win
My personal site with some scripts I've released.
Re: on click [Re: pball] #229515 08/02/11 03:50 AM
Joined: Apr 2010
Posts: 959
F
FroggieDaFrog Offline
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 959
Code:
menu #ThisChannel {
  .sclick:{ echo -a User Single Clicked! }
  .rclick:{ echo -a User Right clicked! }
  .dclick:{ echo -a User double clicked! }
}
menu #ThisChannel {
  .Reminder:{ echo -a Remember that the right click menu can't be in the same menu as the mouse events }
}


I didn't test it, and if it doesn't work then yes, I think those events should be extended to all windows, but just @wins smile


I am SReject
My Stuff
Re: on click [Re: FroggieDaFrog] #229540 08/02/11 11:13 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yeah, it doesn't work in normal windows. I didn't realize that until I tested it.


Invision Support
#Invision on irc.irchighway.net