开发者

How to develop a simple prog, to sendkeys to another program?

I'm trying to develop a simple program which will show a form with a listbox and a button. The buttom will allow a listbox entry to be selected and close the form. The entry will them be sent to the previous open application.

For example, I could select my postcode from the listbox and have it sent to the currently selected field in my internet browser. Or the current date to my text editor.

This is what I have, which doesn't work, it seems to bring up my开发者_运维技巧 task bar.

Module Module1
    Sub Main()
        Form1.ShowDialog()
        SendKeys.SendWait("fred") 'I'll substitute fred later.
        Application.Exit()
    End Sub
End Module

I intend to create a shortcut and a ssign a hot key to start the program, i'm justing running it from the ide at the moment.

Any suggestions ?


Have a look at this tool AutoIt - http://www.autoitscript.com/site/autoit/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜