borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Standalone .exe to kill explorer.exe)Next Topic (property pages of user controls) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Programming keystrokes
Poster Message
Creatica
Level: Protégé

Registered: 01-02-2007
Posts: 4

icon Programming keystrokes

Is there a way I can program a command button to open a program, press [Home], press down arrow three times, then press enter?  Thanks!

17-02-2007 at 01:03 AM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon Re: Programming keystrokes

You'd have to use the "sendkeys" command.  The help file with VB will give you all the options of how to use it, but it's something like:
sendkeys "{home}"

ex:
http://www.andreavb.com/forum/viewtopic.php?TopicID=3230
http://www.andreavb.com/forum/viewtopic.php?TopicID=1349

____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

19-02-2007 at 08:36 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VB General : Programming keystrokes
Previous Topic (Standalone .exe to kill explorer.exe)Next Topic (property pages of user controls) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder