mIRC Home    About    Download    Register    News    Help

Print Thread
on keydown #220704 22/04/10 02:59 AM
Joined: Apr 2010
Posts: 923
F
FroggieDaFrog Offline OP
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 923
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
Re: on keydown [Re: FroggieDaFrog] #220707 22/04/10 03:27 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
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

Re: on keydown [Re: genius_at_work] #220709 22/04/10 03:29 AM
Joined: Apr 2010
Posts: 923
F
FroggieDaFrog Offline OP
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 923
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
Re: on keydown [Re: genius_at_work] #220714 22/04/10 04:11 AM
Joined: Apr 2010
Posts: 923
F
FroggieDaFrog Offline OP
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 923
$mouse.key worx, curtisy of to someone(can't remember his name) in the new features request forum


I am SReject
My Stuff