|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 12/1/2008 2:32:17 AM
Posts: 1,
Visits: 4
|
|
| hi, when I use "SendCustomKey" to left windows key, but it doesn't work. is any wrong with my code? my C# code: this.viewerX.SendCustomKey((int)System.Windows.Forms.Keys.LWin); otherwise, how can I send the combine key(ex: Ctrl+Space) with "SendCustomKey" method. thx.
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 12/10/2008 8:58:19 PM
Posts: 10,
Visits: 14
|
|
| I have the same problem to viewerX control, have any support guys can help us ?
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: Yesterday @ 1:53:20 AM
Posts: 968,
Visits: 1,591
|
|
SendCustomKey sends so called keyboard keys scan codes. These are standard key codes. When you execute this method it send the events to the server: key down and key up.
Here is the key codes list:
XK_VoidSymbol 0x
XK_space 0x
XK_BackSpace 0x
XK_Tab 0x
XK_Linefeed 0x
XK_Clear 0x
XK_Return 0x
XK_Pause 0x
XK_Scroll_Lock 0x
XK_Sys_Req 0x
XK_Escape 0x
XK_Delete 0x
XK_Print 0x
XK_dead_grave 0x
XK_dead_acute 0x
XK_dead_circumflex 0x
XK_dead_tilde 0x
XK_dead_diaeresis 0x
XK_Home 0xFF50
XK_Left 0xFF51
XK_Up 0xFF52
XK_Right 0xFF53
XK_Down 0xFF54
XK_Page_Up 0xFF55
XK_Page_Down 0xFF56
XK_End 0xFF57
XK_Begin 0xFF58
XK_Select 0xFF60
XK_Print 0xFF61
XK_Execute 0xFF62
XK_Insert 0xFF63
XK_Cancel 0xFF69
XK_Help 0xFF6A
XK_Break 0xFF6B
XK_Num_Lock 0xFF7F
XK_KP_Space 0xFF80
XK_KP_Tab 0xFF89
XK_KP_Enter 0xFF8D
XK_KP_Home 0xFF95
XK_KP_Left 0xFF96
XK_KP_Up 0xFF97
XK_KP_Right 0xFF98
XK_KP_Down 0xFF99
XK_KP_Prior 0xFF9A
XK_KP_Page_Up 0xFF9A
XK_KP_Next 0xFF9B
XK_KP_Page_Down 0xFF9B
XK_KP_End 0xFF9C
XK_KP_Begin 0xFF9D
XK_KP_Insert 0xFF9E
XK_KP_Delete 0xFF9F
XK_KP_Equal 0xFFBD
XK_KP_Multiply 0xFFAA
XK_KP_Add 0xFFAB
XK_KP_Separator 0xFFAC
XK_KP_Subtract 0xFFAD
XK_KP_Decimal 0xFFAE
XK_KP_Divide 0xFFAF
XK_KP_0 0xFFB0
XK_KP_1 0xFFB1
XK_KP_2 0xFFB2
XK_KP_3 0xFFB3
XK_KP_4 0xFFB4
XK_KP_5 0xFFB5
XK_KP_6 0xFFB6
XK_KP_7 0xFFB7
XK_KP_8 0xFFB8
XK_KP_9 0xFFB9
XK_F1 0xFFBE
XK_F2 0xFFBF
XK_F3 0xFFC0
XK_F4 0xFFC1
XK_F5 0xFFC2
XK_F6 0xFFC3
XK_F7 0xFFC4
XK_F8 0xFFC5
XK_F9 0xFFC6
XK_F10 0xFFC7
XK_F11 0xFFC8
XK_F12 0xFFC9
XK_F13 0xFFCA
XK_F14 0xFFCB
XK_F15 0xFFCC
XK_F16 0xFFCD
XK_F17 0xFFCE
XK_F18 0xFFCF
XK_F19 0xFFD0
XK_F20 0xFFD1
XK_F21 0xFFD2
XK_F22 0xFFD3
XK_F23 0xFFD4
XK_F24 0xFFD5
XK_Shift_L 0xFFE1
XK_Shift_R 0xFFE2
XK_Control_L 0xFFE3
XK_Control_R 0xFFE4
XK_Caps_Lock 0xFFE5
XK_Shift_Lock 0xFFE6
XK_Meta_L 0xFFE7
XK_Meta_R 0xFFE8
XK_Alt_L 0xFFE9
XK_Alt_R 0xFFEA
 Kindest Regards, SmartCode Solutions Support
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 12/10/2008 8:58:19 PM
Posts: 10,
Visits: 14
|
|
| how to send the combination keys? example: left_control + left_shift , left_control + space ?
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: Yesterday @ 1:53:20 AM
Posts: 968,
Visits: 1,591
|
|
I'm afraid this won't be possible. We will be releasing a new ViewerX build next week; we are going to have a discussion here but I think this method will be changed to SendCustomKey(int keyCode, bool bPressDown)
With such modified method you will be able to send any key combination.
 Kindest Regards, SmartCode Solutions Support
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 12/10/2008 8:58:19 PM
Posts: 10,
Visits: 14
|
|
| ok, this change will be fine to me.
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: Yesterday @ 1:53:20 AM
Posts: 968,
Visits: 1,591
|
|
Just to let you know that a new method SendCustomKeyEx has been added to the ViewerX. It implements the feature discussed in this thread. Attached is the documentation for this new method. New ViewerX build that we are planning to release next week will have this method implemented.
 Kindest Regards, SmartCode Solutions Support
|
|
|
|