mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 09:24:58 +00:00
Update Toolkit.cs
This commit is contained in:
parent
45029caca6
commit
4ef76576f8
|
@ -176,9 +176,9 @@ namespace WelsonJS
|
|||
}
|
||||
|
||||
[ComVisible(true)]
|
||||
public bool SendFnKey(int num) {
|
||||
public bool SendFnKey(string wName, int num) {
|
||||
IntPtr hWnd = QueryHandleWindow(wName);
|
||||
char cKey = 0x00;
|
||||
char cKey = (char)0x00;
|
||||
|
||||
if (hWnd != IntPtr.Zero)
|
||||
{
|
||||
|
@ -195,7 +195,6 @@ namespace WelsonJS
|
|||
case 10: cKey = (char)WVirtualKeys.VK_F10; break;
|
||||
case 11: cKey = (char)WVirtualKeys.VK_F11; break;
|
||||
case 12: cKey = (char)WVirtualKeys.VK_F12; break;
|
||||
default: cKey = 0x00;
|
||||
}
|
||||
|
||||
if (cKey != 0x00) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user