My application is unable to send Pageup/down and Control T/X key combination to a commercial application. Can anyone tell me the virtual key value for the above or do i have to use any special functions to do this.
thanks
Printable View
My application is unable to send Pageup/down and Control T/X key combination to a commercial application. Can anyone tell me the virtual key value for the above or do i have to use any special functions to do this.
thanks
Ctrl_T 84 2
Ctrl_X 88 2
PageUp 33 0
PageDown 34 0
One way to send the keystrocks you are asking about to the active window is to use SendKeys:
SendKeys "^T", true 'Ctrl_T
SendKeys "^X", true 'Ctrl_X
SendKeys "{PGUP}", true 'PageUP
SendKeys "{PGDN}", true 'PageDown
thank you MKSA
i would also like to kow the values for the control E/O/C/Z/V or the link to where i can find these..
Go to the Object Browser VBRUN Library and peruse the KeyCodeConstants Class for key code values. They are all there.
Shift, ALt and Ctrl depends on what function or event you are using at the time such as, the MouseDown event has a "Shift" parameter that describes whether or not Ctrl, Alt and or Shift are depressed.
John G
Ctrl_E 69 2
Ctrl_O 79 2
Ctrl_C 67 2
Ctrl_Z 90 2
Ctrl_V 86 2