我不明白如何在 .NetWrapper 中使用此方法内容来注入键盘键(在 C# 中)我需要在调用该方法时模拟“Enter”键盘。(就像我真的按下回车键)
:
// msg:
// The Windows keyboard message (usually WM_KEYDOWN, WM_KEYUP and WM_CHAR).
//
// wparam:
// The first parameter of the message as intercepted by the window procedure.
//
// lparam:
// The second parameter of the message as intercepted by the window procedure.
protected void InjectKeyboardEventWin(int msg, int wparam, int lparam);
如果我不能使用这种方法来模拟“Enter”键,有没有办法用 javascript 来做到这一点?
关于javascript:
在 HTTP 表单中(我想模拟“输入”键)没有任何“提交”按钮。
因此,在 TextBot 中提交数据内容的唯一方法是使用“Enter”
PS我不能使用JQuery