Is it possible to change the keybindings in VB6? Right now,
Step Over is Shift + F8
Step Into is F8
I'd like to make them the say as I have in VB.NET where
Step Over is F10
Step Into is F11
Thanks
Printable View
Is it possible to change the keybindings in VB6? Right now,
Step Over is Shift + F8
Step Into is F8
I'd like to make them the say as I have in VB.NET where
Step Over is F10
Step Into is F11
Thanks
You can do it in couple of ways:
- create menu and for each menu item assign shortcut and then code each menu's click event to do whatever
- or use code similar to this quick sample
Code:Option Explicit
Private Sub Form_Load()
Me.KeyPreview = True
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case Shift
Case vbShiftMask
Select Case KeyCode
Case vbKeyF8
Debug.Print "SHIFT+F8 key was pressed"
Case vbKeyF10
Debug.Print "SHIFT+F10 key was pressed"
End Select
Case vbCtrlMask
Debug.Print "CTRL key was pressed"
Case vbAltMask
Debug.Print "ALT key was pressed"
Case 0
Select Case KeyCode
Case vbKeyF8
Debug.Print "F8 key was pressed"
Case vbKeyF10
Debug.Print "F10 key was pressed"
End Select
End Select
End Sub
RB
I read OP's request as to have it apply to the IDE,
ie, when the app is in break-mode (ie, when app's
code is being debugged).
I don't understand how your code remaps
- F10 to be what was formerly Shift+F8
- F11 to be what was formerly F8
What am I missing?
Spoo
Ah, you might be right Spoo...
RB
Haha.. not that I wanted to be..
I, too, would like to know how to remap those keys
Spoo
AutoHotKey can(sort of).
RB
Well, now that you ask ...
There are times that during a debugging endeavor,
I am comparing a current version of the app to the
prior version of the app, and really need to drill down
to find a bug.
I do this on 2 boxes, and thusly am pressing F8 on
each keyboard as I step thru, line by line. I have
a lot of custom functions that I know are ok, so,
really, I need to press Shift+F8 to Step Over...
which, as you might be able to surmise, gets
a little tricky doing with 1 hand on each keyboard.
Hence, I'd like to be able to remap the dual key
Shift+F8 to a single F key, say F12,
or, put another way, enable F12 to do a Step Over
Is it possible to do that?
Spoo
You can [perhaps] keep your thumb (left) on the Shift key while keepping your Index or Middle finger on the other key (F8)...
FX
I checked out their site, and under FAQ found something
on remapping...
- using their app,
- w/o their app, but instead, using Registry assignment
The latter would be more to my liking.. I'll ponder this
for a while.
Spoo
RB
Yeah.. my piano teacher would be proud of me
EDIT:
In actuality, I'd like to do this with one hand only...
my keyboards are one-in-front-of-other, so I'd like
to be able to use
- index finger on F12 of kb-1
- thumb on F12 of kb-2
Spoo
I don't think that'll work.... :(
Such as Shift+F8.Quote:
Originally Posted by disadvantages of registry remapping
FX
Thanks for that.
So, what is your reading of their app's capabilities?
I really only scanned it briefly .. can it deal with
the Shift+F8 combo?
Spoo
FX
OK.. I'll give it a further look-see.
Thnkx
Spoo