Click to See Complete Forum and Search --> : key presses


mohamedf
September 20th, 2001, 06:16 PM
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

MKSa
September 20th, 2001, 07:21 PM
Ctrl_T 84 2
Ctrl_X 88 2
PageUp 33 0
PageDown 34 0

MKSa
September 20th, 2001, 07:37 PM
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

mohamedf
September 21st, 2001, 02:23 PM
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..

John G Duffy
September 21st, 2001, 02:41 PM
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

MKSa
September 21st, 2001, 03:00 PM
Ctrl_E 69 2
Ctrl_O 79 2
Ctrl_C 67 2
Ctrl_Z 90 2
Ctrl_V 86 2