Re: how to simulate a ctrl+clic

Author: Joel Fischoff

Posted: 2014-04-02 at 01:09:21

>But if I forgot to press the CTRL key (and it will happen very often), all

>the pupils become unselected at the same time and it is unbearable.

>I didn't find a mean to 'simulate' the CTRL key in the click event or the

>mousedown event ! Have you an idea ?

Well, off the top of my head (mostly because I can't test it here at the

moment):

Will nodefault prevent the issue? Either in keypress, click, or mousedown?

If so, you can use the nShift (the second one, if I remember right)

parameter of mousedown to detect whether the Control key is pressed. I'm

not sure if there's a way to simulate Control-Click, but you might be able

to use Keyboard "{CTRL+SPACEBAR}" to effectively do the same thing.

Alternatively, code to detect a keypress combination (Control-A, for

example), that just resets all of the pupils to selected again. If you

only need to deselect a couple of students and you screw up, you just hit

Control-A and be more careful next time.

Joel

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CC00D752DB174D79949D32C942223727@ASUS1

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2014 Joel Fischoff