keyboard shortcut here

If you require help or assistance with anything then please post here

Moderators: electrogear, exonerate

keyboard shortcut here

Postby tester on Wed May 02, 2012 9:34 am

How to add keyboard shortcut here, as a trigger paralel to mouse LDo (connected to trogs silent reset)? Whatever I'm connecting (in 1 unit for test), I'm getting triggers which reset the state to that unit. Or I'm missing something? I'd like to send trigger only when correct key is pressed.
Attachments
shortcut.osm
(1.51 KiB) Downloaded 48 times
Need to take a break? Looking for relaxing sounds? I have something right for you.
(by purchasing, you are also supporting further development of related projects).
Thank you for your contribution.
tester
smanatic
 
Posts: 688
Joined: Wed Jan 18, 2012 9:52 pm
Location: Poland, internet

Re: keyboard shortcut here

Postby DigitalWhiteByte on Wed May 02, 2012 10:07 am

This one?
Attachments
LDo_only_shortcut_true_DWB.osm
(1.71 KiB) Downloaded 47 times
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: keyboard shortcut here

Postby tester on Wed May 02, 2012 10:23 am

Does not works correctly or we misunderstood. Can't click back on unit 1. What I mean is independent flow of switching buttons via mouse click (as it is) and additional independent flow of switching them with keyboard keys only.
Need to take a break? Looking for relaxing sounds? I have something right for you.
(by purchasing, you are also supporting further development of related projects).
Thank you for your contribution.
tester
smanatic
 
Posts: 688
Joined: Wed Jan 18, 2012 9:52 pm
Location: Poland, internet

Re: keyboard shortcut here

Postby DigitalWhiteByte on Wed May 02, 2012 10:24 am

ok but what function serve the additional key pressed?
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: keyboard shortcut here

Postby DigitalWhiteByte on Wed May 02, 2012 10:38 am

maybe this?
Attachments
LDo_only_shortcut_true_DWB_1.osm
(2.18 KiB) Downloaded 46 times
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: keyboard shortcut here

Postby tester on Wed May 02, 2012 10:49 am

Ah... I see what you mean. What I'd like to get is a way of switching between numbered buttons via mouse click or using PC keyboard keys (like key "1" = click on unit 1, key "2" = click on unit 2, and so on; I assume that regular keys will work if cursor is not involved in editbox editing?) instead of mouse.

Total output sends value to gui multiplexer on which various panels are de/activated.
Need to take a break? Looking for relaxing sounds? I have something right for you.
(by purchasing, you are also supporting further development of related projects).
Thank you for your contribution.
tester
smanatic
 
Posts: 688
Joined: Wed Jan 18, 2012 9:52 pm
Location: Poland, internet

Re: keyboard shortcut here

Postby DigitalWhiteByte on Wed May 02, 2012 10:53 am

you may make a further check, authorizing the key only if it is in current area,
otherwise the keys are always detected.
Last edited by DigitalWhiteByte on Wed May 02, 2012 11:08 am, edited 1 time in total.
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: keyboard shortcut here

Postby DigitalWhiteByte on Wed May 02, 2012 10:59 am

This is another example,
I added a boolean to true for primitive GUI to enable mouse messages for movement on the area
Attachments
LDo_only_shortcut_true_and_only on_area_DWB_2.osm
(2.22 KiB) Downloaded 43 times
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: keyboard shortcut here

Postby tester on Wed May 02, 2012 11:18 am

Either I do something wrong (by making the press key / shortcut like "CTRL+1") or we still don't understand somewhere. Exported exe does not works. It's about using either mouse OR pc keyboard to navigate the app. I'm trying to figure out how to build it.
Need to take a break? Looking for relaxing sounds? I have something right for you.
(by purchasing, you are also supporting further development of related projects).
Thank you for your contribution.
tester
smanatic
 
Posts: 688
Joined: Wed Jan 18, 2012 9:52 pm
Location: Poland, internet

Re: keyboard shortcut here

Postby DigitalWhiteByte on Wed May 02, 2012 11:27 am

for assign othe key you must use the keycode
Keycode helper
try this one it work with key CTRL+1 shortcut
Attachments
LDo_only_shortcut_true_and_only on_area_DWB_3.osm
(2.31 KiB) Downloaded 54 times
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: keyboard shortcut here

Postby DigitalWhiteByte on Wed May 02, 2012 11:35 am

Here is a list of more or less complete virtual keycode
MSDN List Virtual Keycode
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: keyboard shortcut here

Postby tester on Wed May 02, 2012 11:44 am

Thanks, I didn't know that.

I removed the mouseover part. Is there a way to de-conflictize shorcuts and editing routine? For example, I'd like to use numbered key "1" as a shortcut, but when I type number "1" in editbox - I would expect, that shortcuts are bypassed and editing goes uninterrupted. Can this be done too?
Attachments
deconflictize.osm
(3.06 KiB) Downloaded 60 times
Need to take a break? Looking for relaxing sounds? I have something right for you.
(by purchasing, you are also supporting further development of related projects).
Thank you for your contribution.
tester
smanatic
 
Posts: 688
Joined: Wed Jan 18, 2012 9:52 pm
Location: Poland, internet

Re: keyboard shortcut here

Postby DigitalWhiteByte on Wed May 02, 2012 11:47 am

the only way is the mouse area restriction
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: keyboard shortcut here

Postby tester on Wed May 02, 2012 11:52 am

There is an "is editing" boolean output in text edit. Could not this be used for turning on/off the shortcuts while editing?
Need to take a break? Looking for relaxing sounds? I have something right for you.
(by purchasing, you are also supporting further development of related projects).
Thank you for your contribution.
tester
smanatic
 
Posts: 688
Joined: Wed Jan 18, 2012 9:52 pm
Location: Poland, internet

Re: keyboard shortcut here

Postby DigitalWhiteByte on Wed May 02, 2012 11:56 am

exactly, I opted for this option for the edit box,
but for other operations, unfortunately,
the most practical way is to restrict the detection of the action, only at the current area.
Attachments
LDo_only_shortcut_true_editing_box_tip.osm
(3.03 KiB) Downloaded 56 times
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 2 guests