Click here to Skip to main content
15,892,059 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Programmatically controlling mouse. Pin
the fossil1-Feb-09 4:02
the fossil1-Feb-09 4:02 
GeneralRe: Programmatically controlling mouse. Pin
Dave Kreskowiak1-Feb-09 6:36
mveDave Kreskowiak1-Feb-09 6:36 
GeneralRe: Programmatically controlling mouse. Pin
the fossil1-Feb-09 7:16
the fossil1-Feb-09 7:16 
GeneralRe: Programmatically controlling mouse. Pin
Dave Kreskowiak1-Feb-09 11:20
mveDave Kreskowiak1-Feb-09 11:20 
AnswerRe: Programmatically controlling mouse. Partial answer Pin
the fossil2-Feb-09 9:25
the fossil2-Feb-09 9:25 
AnswerRe: Programmatically controlling mouse. Pin
Bharat Jain2-Feb-09 20:50
Bharat Jain2-Feb-09 20:50 
GeneralRe: Programmatically controlling mouse. Pin
the fossil2-Feb-09 22:51
the fossil2-Feb-09 22:51 
GeneralRe: Programmatically controlling mouse. Pin
Bharat Jain2-Feb-09 23:51
Bharat Jain2-Feb-09 23:51 
The control will be still with your application , just after sending the click command , write
Me.Activate()(i don't recommend its use)

this will activate your form , but if you have to enter any text in a different application the focus must be on the other application , not on your .

To make it more clear let us consider an example, if i have application "A" running it has a text box where we need to enter user name (without using a keyboard & mouse) , i will first position my mouse location on the text box (using the code i sent earlier) and we would send a mouse click (using the same code) just below the Mouse click code(now the focus is on other form (application "A")) we will write the code to send keystrokes (focus is on another form but your code will be executed , till your function ends), this keystroke would be sent to the form in focus (that is the form of application "A").

Also if you want to send keystrokes, you must use the Win32 API Called "keybd_event" defined in user32.dll , the same way we used mouse_event in previous reply.

does this make sense for you Smile | :)

-Regards
Bharat Jain
bharat.jain.nagpur@gmail.com

GeneralRe: Programmatically controlling mouse. Pin
the fossil3-Feb-09 3:25
the fossil3-Feb-09 3:25 
GeneralRe: Programmatically controlling mouse. Pin
the fossil3-Feb-09 3:40
the fossil3-Feb-09 3:40 
GeneralRe: Programmatically controlling mouse. Pin
the fossil3-Feb-09 3:44
the fossil3-Feb-09 3:44 
QuestionCreating DataTable from System.Collections.Generic.List Pin
kanchoette31-Jan-09 1:23
kanchoette31-Jan-09 1:23 
AnswerRe: Creating DataTable from System.Collections.Generic.List Pin
Wendelius31-Jan-09 1:56
mentorWendelius31-Jan-09 1:56 
GeneralRe: Creating DataTable from System.Collections.Generic.List Pin
kanchoette31-Jan-09 2:05
kanchoette31-Jan-09 2:05 
GeneralRe: Creating DataTable from System.Collections.Generic.List Pin
Wendelius31-Jan-09 2:26
mentorWendelius31-Jan-09 2:26 
GeneralRe: Creating DataTable from System.Collections.Generic.List Pin
kanchoette31-Jan-09 3:10
kanchoette31-Jan-09 3:10 
GeneralRe: Creating DataTable from System.Collections.Generic.List Pin
Wendelius31-Jan-09 3:17
mentorWendelius31-Jan-09 3:17 
QuestionEdit Vista file properties details with VBA Pin
piralko30-Jan-09 22:38
piralko30-Jan-09 22:38 
QuestionPopulating from one combobox to another combobox in VB.NET [modified] Pin
kishore1530-Jan-09 20:06
kishore1530-Jan-09 20:06 
AnswerRe: Populating from one combobox to another combobox in VB.NET Pin
Christian Graus30-Jan-09 20:23
protectorChristian Graus30-Jan-09 20:23 
QuestionUnable to close or kill the Excel Application EXE in the Task Manager through code. Pin
manoharbalu30-Jan-09 18:35
manoharbalu30-Jan-09 18:35 
AnswerRe: Unable to close or kill the Excel Application EXE in the Task Manager through code. Pin
Dave Kreskowiak31-Jan-09 4:22
mveDave Kreskowiak31-Jan-09 4:22 
Questionhelp file creation Pin
ngugi30-Jan-09 5:36
ngugi30-Jan-09 5:36 
AnswerRe: help file creation Pin
Dave Kreskowiak30-Jan-09 6:18
mveDave Kreskowiak30-Jan-09 6:18 
QuestionShareware Application Pin
ivo7530-Jan-09 3:00
ivo7530-Jan-09 3:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.