BigDaddyO Posted February 10, 2016 Share Posted February 10, 2016 I have a listview control with a Context menu to allow users to Right Click > Paste and it inserts data copied from an excel spreadsheet into the listview using ClipGet. This works great, but my users keep wanting to hit Ctrl+v and I can't seem to find a way to capture that. Any ideas? I looked at _GUICtrlListView_SetCallBackMask and _GUICtrlListView_GetCallbackMask but it only seems to return 0 Thanks, Mike Link to comment Share on other sites More sharing options...
Radiance Posted February 10, 2016 Share Posted February 10, 2016 I'd suggest you do something more simple using HotKeySet, binding Ctrl+V to a func that only does the insert you want if your GUI has focus and does a plain Send() of Ctrl+V otherwise. Link to comment Share on other sites More sharing options...
BigDaddyO Posted February 10, 2016 Author Share Posted February 10, 2016 I generally hate using HotKeySet, but looking at it again in the help file showed the Related function GuiSetAccelerators which was EXACTLY what I needed. Thanks Radiance for the nudge in the right direction. Local $aAccelKeys[1][2] = [["^v", $hPaste]] GUISetAccelerators($aAccelKeys) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now