sendkeys VB.NET的替代方案 [英] Alternative to sendkeys VB.NET
问题描述
您好,
我是新手。我正在用VB.NET开发一个应用程序,它必须能够打开一个窗口并使用键盘按钮编译一些字段...
第一个字段必须编写像0542645这样的代码,然后用TAB按钮将焦点集中到另一个文本框,依此类推。我正在使用WINDOWS 10.
有什么想法吗?
谢谢。
我尝试过:
问题是经典的SendKeys功能没有在该程序中工作,我尝试使用记事本相同的代码,它的工作原理。还有其他选择吗?我也尝试使用SendMessageA脚本,但没有。
也许你可以尝试PostMessage
,参见: VB.NET通过Postmessage发送字符串 - 堆栈溢出 [ ^ ]
另一种选择将使用像 [ AutoHotkey的]
Hello,
I'm new. I'm developing an application with VB.NET that must be able to open a window and compile some fields using only keyboard button...
The first field have to write a code like "0542645" then have to focus to another textbox with the TAB button and so on. I'm using WINDOWS 10.
Have you any ideas?
Thanks.
What I have tried:
The problem is that the classic SendKeys function doesn't work in that program, I tried the same code with the "Notepad" and it works. Is there any alternative? I tried also to use SendMessageA script but nothing.
Maybe you can tryPostMessage
, see: VB.NET Sending Strings via Postmessage - Stack Overflow[^]
Another option would be to use a utility like [AutoHotkey]
这篇关于sendkeys VB.NET的替代方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!