绑定键盘按钮+文本 [英] Bind keyboard button + a text

查看:137
本文介绍了绑定键盘按钮+文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

所以,我对编程很陌生,但我想开始创建一个程序,可以绑定我的密码,电子邮件等,所以我只能按它和它输入我的电子邮件。



喜欢这样:



F1 +''xxx@hotmail.com''



当我按F1时,它会输入我的''xxx@hotmail.com''



问候



删除了代码块格式[/ Edit]

Hi!
So, I''m kinda new to programming, but I want to start out with creating a program that can bind my password, email etc so i just can press it and it enters my email.

Like this:

F1 + ''xxx@hotmail.com''

And when i press F1 it will type my ''xxx@hotmail.com''

Regards

Code block formatting removed[/Edit]

推荐答案

嗨!



你应该使用SendKeys。它模拟键盘按下。



Hi!

You should use the SendKeys. It simulates the keyboard presses.

SendKeys.Send("xxx@hotmail.com");





唯一的问题是,如果按下F1键,你将如何获得信息。如果您的申请没有集中,那就无法运作。你应该试试,我对此不太确定。



问候!



The only problem is, how will you get information if F1 key is pressed. If your aplication is not focused that could not work. You should try, I''m not sure about this.

Regards!


这篇关于绑定键盘按钮+文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆