- Anecdotally, this appears to be limited to LV2011 and up
- All machines are Parallels 7 virtual machines running on OS X Lion
- Again, some work, and some don't - all with identical (as far as I can tell) VM keyboard and environment settings
CTRL+SHIFT+ Shortcuts sometimes not working in LabVIEW
#1
Posted 30 March 2012 - 05:04 AM
#2
Posted 23 August 2012 - 02:16 AM
Why isn't it handling the others?? Am I misconfigured some way?
Can someone just do a sanity check for me on E, S, and Z on a machine running LV2012? Thanks!
#3
Posted 23 August 2012 - 05:07 AM
By the way, you have just made me very happy... I had no idea ctrl+shift+E existed. That is a great shortcut... for everyone else: when you're on a VI, it finds that VI in the project tree.
#4
Posted 23 August 2012 - 05:33 AM
And yes, CTRL+SHIFT+E makes me happy too, it's been sad not being able to use it
#5
Posted 23 August 2012 - 08:41 PM
Edited by GregSands, 23 August 2012 - 08:43 PM.
#6
Posted 23 August 2012 - 09:05 PM
Have you tried remapping the shortcuts in Tools/Options/Menu Shortcuts? In fact, trying to set new shortcuts there will show you whether the keystrokes are getting through to LabVIEW or not.
Yes, I have tried remapping here. Things like CTRL+SHIFT+3 (from above, that's CTRL+#) and all punctuation (CTRL++, CTRL+>, etc.) will register just fine in this dialog; it's just the CTRL+SHIFT+Alpha keys that won't register.
#7
Posted 23 August 2012 - 11:50 PM
#8
Posted 24 August 2012 - 01:52 AM
I doubt it. We would have heard an earful from Urs when he visited at NIWeek if this were affecting Mac OS generally.
Granted, I'm having this issue in a Win7 VM, and Urs, more of a purist, says he likes to do things natively on the Mac (when we ate lunch together at NIWeek, he did admit to occasionally using Parallels, but will probably come to this forum and deny that conversation ever happened lest it tarnish his rep :-)
#9
Posted 24 August 2012 - 02:10 AM
#10
Posted 24 August 2012 - 02:52 AM
My Quick Drop Ctrl-Space, also stops working on some computers.
So, if you go to "Tools >> Options >> Menu Shortcuts", does this dialog register CTRL+Space? Also, what's your OS/LabVIEW version?
#11
Posted 24 August 2012 - 04:08 AM
Yes, it's linked to Ctrl+Space, and even if I change it to something else, it doesn't work on the computer that is giving me the problem.
So, if you go to "Tools >> Options >> Menu Shortcuts", does this dialog register CTRL+Space? Also, what's your OS/LabVIEW version?
BTW, I didn't dare to bring your Seeded business card into Australia, after a 25 hours flight I didn't want to get cought in custom ;-)
#12
Posted 24 August 2012 - 04:31 AM
BTW, I didn't dare to bring your Seeded business card into Australia, after a 25 hours flight I didn't want to get cought in custom ;-)
That was a good call on your part!
#13
Posted 03 September 2012 - 11:30 PM
Things I've tried:
- Using CTRL+SHIFT+Alpha shortcuts in other applications (Notepad++ works fine)
- Using CTRL+SHIFT+3 shortcut in LabVIEW works fine (It's just CTRL+SHIFT+Alpha shortcuts that have the prob)
- Setting all VM settings to a known good VM (via text-diff on settings file within the VM package) (this feels like a red herring)
- Using the Input VIs in a simple LabVIEW program to see if it can register CTRL+SHIFT+Alpha keypresses; it can
- Remapping modifiers on the Mac side to act like the CTRL key
- Swapping keyboards with a traditional Windows keyboard
- Remapping CTRL+SHIFT+E to be just CTRL+E - then "Show in Project" worked as expected (just a sanity check, to ensure it is indeed a problem with registering the shortcut, not the invoking the action itself)
- Using every imaginable combo of FN, CTRL, ALT, and CMD
- Pressing SHIFT+CTRL+E (notice the order)
- Using the Left and Right Shift keys
- Removing LabVIEW.ini to let it regenerate
- Reinstalling a fresh copy of LV2012 32bit
If this were StackOverflow, I'd offer bounty on this problem.
#14
Posted 04 September 2012 - 07:30 PM
One way to see may be to use System.Runtime.InteropServices.Marshal.ReadInt32().
I don't know it well enough to post code, though.
#15
Posted 04 September 2012 - 08:46 PM
Perhaps Parallels isn't sending all of the HID Keyboard information to the guest OS.
Does this following VI disprove that it's Parallels' fault? Or is this VI using some other keystroke reading mechanism other than the way LabVIEW reads global shortcuts?
**EDIT: By the way, thank you for responding, Todd! I'm still desperately looking for any news avenues to explore to solve this issue.
Edited by JackDunaway, 04 September 2012 - 08:47 PM.
#16
Posted 05 September 2012 - 12:46 AM
That VI calls a LV function called getKeyboardState, which may be an abstraction of Microsoft's DirectInput API. If so, it returns a list of keys that are pressed. But that may be separate from the "Modifier Keys" bitfield in a keyboard report.
Just poking in the dark, here, and drawing a target that someone who knows better will hopefully shoot down
#17
Posted 05 September 2012 - 09:36 AM
Short answer: I don't know.
That VI calls a LV function called getKeyboardState, which may be an abstraction of Microsoft's DirectInput API. If so, it returns a list of keys that are pressed. But that may be separate from the "Modifier Keys" bitfield in a keyboard report.
Just poking in the dark, here, and drawing a target that someone who knows better will hopefully shoot down
The LabVIEW key handling will definitely not be based on DirectX access but directly work on the events returned by Windows in its internal GetMessage() loop. I haven't seen such an issue yet, but I'm not using Macs much, and definitely not with Parallels. I do use Virtual Box quite regularly but with a Windows host and Windows and Linux guests. Would love a Mac guest too but that is just to much trouble to get working reliably. And those VMs sure can do some weird things when passing down events and other stuff to the guest OS. For instance I can reliably crash my computer completely and without even any BSOD if I startup the Windows 7 64 Bit VM and my host Windows system has been operating for quite some time. After a fresh restart of the host it never crashes.
Rolf Kalbermatter
CIT Engineering Netherlands
A division of Test & Measurement Solutions
#18
Posted 05 September 2012 - 12:29 PM
Does this following VI disprove that it's Parallels' fault?
Not necessarily. From my own battle with keyboard shortcuts, I seem to remember that those VIs and the event structure behaved differently, but I wouldn't swear on it. Try checking the key down event (you'll probably need the modifiers terminal to see those keys).
#19
Posted 05 September 2012 - 04:39 PM
Not necessarily. From my own battle with keyboard shortcuts, I seem to remember that those VIs and the event structure behaved differently, but I wouldn't swear on it. Try checking the key down event (you'll probably need the modifiers terminal to see those keys).
You may be onto something here. This is the result I get when pressing CTRL+SHIFT+E:
And here's the snippet in case someone else is able to run on a known-good machine, to compare results:
It's suspicious that in my result above Char is '0' (instead of '69') and VKey is 'Ctrl' (instead of 'ASCII').
#20
Posted 05 September 2012 - 06:38 PM
Virtual Machine -> Configure -> Options -> Advanced -> Optimize modifier keys for games. Oh, I have an old Parallels license around somewhere at home - maybe I can play with it tonight.














