Advertisement

05.13.2008 at 08:27PM PDT, ID: 23400199
[x]
Attachment Details

Emulate keystroke and get focus

Asked by Latzi_Marian in VB Objects, Visual Basic Programming

Tags: Microsoft, Visual Basic, vb6

Hi Gents,

My question is the following.I written a VB6 application to initiate a 3g Mobile internet connection.Everything works fine untill the point I call the 3g Program.The program actually opens but if the program was minimized my code Shell("C\Program Files\3 Mobile\3 Mobile Broadband\3 Mobile Broadband.exe") will be maximized and has got the focus.At this point I have to press F2 Key to make the actuall connection.How can I do it I don't know.
Also if the 3 Mobile program is closed (not just minimized) the code starts it but I don't have the focus on it so it is not enough to press F2 but I also have to get the focus first.Is there any way to emulate a keystroke? and get trhe focus?Start Free Trial
[+][-]05.13.2008 at 08:32PM PDT, ID: 21561054

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 09:45PM PDT, ID: 21561326

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: VB Objects, Visual Basic Programming
Tags: Microsoft, Visual Basic, vb6
Sign Up Now!
Solution Provided By: vb_elmar
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628