05-27-2014 05:51 PM
In an attempt to keep my hand from going back and forth on the keyboard I've taken Darren's advice and put all my QD shortcut keys left hand reachable.
Although this has been a time saver I still find myself often moving my left hand over to the arrow keys to adjust the position of BD items.
I would like to create a QD shortcut that uses the new scroll wheel event to move selected items a pixel at a time instead of having to use the arrow keys.
I've built a few QD shortcuts but haven't tried anything like this.
Has anyone tried using events inside of QD shortcuts or can point me to code that does?
Also any advice would be appreciated.
Thank
Mark
05-27-2014 06:01 PM
This sounds like a fantastic tool. I imagine holding shift makes the object move multiple pixels at a time. You will need a way to indicate that movement is over. Maybe use spacebar. Interestingly this could be done on versions before 2013 but the new events may make it easier.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-28-2014 11:12 AM
I agree that this would be a great shortcut, but I couldn't find a straightforward way to implement it. For one thing, the Mouse Wheel event is only available on controls and panes. For another, the VI containing the control/pane registered for the Mouse Wheel event must be running (or reserved for running).
Perhaps there's a hacky way to do this where you could have an invisible panel appear under the mouse that could capture the events?
If somebody can figure out a decent way to implement this, I know I'd find it useful.
05-28-2014 11:42 AM
Oh what I had in mind was hacky for sure. The quick drop command would run the VI that then keeps looking for mouse input moving the selected objects until some operation tells the running VI to stop. I may give it a try and see what I come up with. But to be honest I don't mind moving my hand off the mouse quickly then back but maybe this would change my programming flow to where I would prefer it.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-28-2014 12:59 PM
Okay I have a "working" prototype but can you seriously not upload attachments to a discussion? Where can I put this?
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-28-2014 04:31 PM
Hooovahh wrote:
Okay I have a "working" prototype but can you seriously not upload attachments to a discussion? Where can I put this?
A new "Document" in the Quick Drop Enthusiasts group I suppose, and then include a link to it in this thread.
05-29-2014 12:16 AM
You can attach an image.
So create a VI snippet.
05-29-2014 07:16 AM
My initial thought was this
Advanced options would include 8 buttons on the VI. U,D,L,R and 4 diagonals for mice with only one scroll wheel.
I've started playing with the move idea.
Hoovahh
looking forward to seeing your prototype
05-29-2014 07:45 AM
Well I posted what I came up with but after reading your list of wants for this plugin I don't think the approach I took will be right for you. I really think for what you want it will be much, much easier to say the plugin should be 2013 or newer because of the added wheel events. This can check for your Shift/CTRL in the event.
I also think that needing both Shift and CTRL for increased speed is not needed based on some acceleration technique. Maybe just use Shift to increase movement, and CTRL could be used to move left and right, using the single mouse wheel instead of up and down.
https://decibel.ni.com/content/docs/DOC-37066
EDIT: I know we are getting ahead of our selves but what about middle click, move the mouse, then middle click again? Is that something we could do? I guess at that point why wouldn't you just drag the selected items? Maybe this is only needed for smaller movements.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-30-2014 01:42 AM
I've appended my first attemp to Hoovahh's document.
Mark