mIRC Home    About    Download    Register    News    Help

Print Thread
#220704 22/04/10 02:59 AM
Joined: Apr 2010
Posts: 966
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 966
in a keydown event, is there a way to check if the key was pressed while the ctrl key was being held. (I'm trying to do things when ctrl+uparrow and ctrl+downarrow are pressed) in an @picwin


I am SReject
My Stuff
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
I don't recall that there is an identifier to tell if CTRL was being held or not. However, using the keydown and keyup events, and the $keyval and $keyrpt identifiers, you should be able to manually track whether CTRL was held or not.

-genius_at_work

Joined: Apr 2010
Posts: 966
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 966
Yea, that's what I'm thinking, but it's alot of code compared to just having an identifer (feature request here I come)


I am SReject
My Stuff
Joined: Apr 2010
Posts: 966
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 966
$mouse.key worx, curtisy of to someone(can't remember his name) in the new features request forum


I am SReject
My Stuff

Link Copied to Clipboard