-
Mar 1st, 2010, 01:55 PM
#1
Thread Starter
New Member
VB6 - Simulate Shift+Click and Ctrl+Click
I looked everywhere but can not find, how to simulate shift+left mouse click and ctrl+left mouse click?
anyone know?
thanks!
-
Mar 1st, 2010, 02:53 PM
#2
Thread Starter
New Member
Re: VB6 - Simulate Shift+Click and Ctrl+Click
This is not possible in Visual Basic 6? I know that is possible in Delphi
nobody answered?
-
Mar 1st, 2010, 08:38 PM
#3
Fanatic Member
Re: VB6 - Simulate Shift+Click and Ctrl+Click
What do you mean by "Simulate"? Like how to track it? Or how to change it to make it seem that the Shift and Left mouse click or Ctrl and left mouse click?
-
Mar 2nd, 2010, 05:06 AM
#4
Thread Starter
New Member
Re: VB6 - Simulate Shift+Click and Ctrl+Click
I want something, put a timer on the form with interval 10000, position the cursor on the name of a file and after this interval the VB6 program alone will click automatically shitf + click or control + click selecting other files.
-
Mar 2nd, 2010, 04:13 PM
#5
Fanatic Member
Re: VB6 - Simulate Shift+Click and Ctrl+Click
Hmm.... i dont know about the moving of the cursor, but for the click, you may be able to use GetAsyncKeyStates.
Like:
GetAsyncKeyState(2) <> 0 'forcing the left mouse button to register
GetAsyncKeyState(50)<>0 'forcing the shift/ctrl button to register
Those are not the actual numbers for them though. You may be able to do that.
-
Mar 3rd, 2010, 06:57 AM
#6
Re: VB6 - Simulate Shift+Click and Ctrl+Click
Originally Posted by vbrsoft
I want something, put a timer on the form with interval 10000, position the cursor on the name of a file and after this interval the VB6 program alone will click automatically shitf + click or control + click selecting other files.
Why do you want to do that...???
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Mar 3rd, 2010, 12:53 PM
#7
Thread Starter
New Member
Re: VB6 - Simulate Shift+Click and Ctrl+Click
To create a simulated mouse and keyboard to complete all the options to send keys and set of keys, We all know how to move the mouse cursor in any direction, giving left click, middle click and right click, but could not find anywhere how to simulate the shift + left click and ctrl + left click, are two types of clicks important, without them a function to simulate mouse is not complete. I hope someone has the answer
-
Mar 3rd, 2010, 06:33 PM
#8
Fanatic Member
Re: VB6 - Simulate Shift+Click and Ctrl+Click
i think u can do the same with the mouse click. u just have to figure out how to move it though. (you can click and mouse with the GetAsyncKeyState)
-
Mar 4th, 2010, 03:00 PM
#9
Thread Starter
New Member
Re: VB6 - Simulate Shift+Click and Ctrl+Click
we can simulate the mouse and keyboard, we even send a set of keys, the problem is when we put together an event on the keyboard (shift) and a mouse event (left click) to be simulated at the same time.
-
Mar 4th, 2010, 04:52 PM
#10
Fanatic Member
Re: VB6 - Simulate Shift+Click and Ctrl+Click
I know. You just do it like this
Code:
GetAsyncKeyState('Number for left mouse) <> 0 And GetAsyncKeyState('number for shift or ctrl) <> 0
That makes them go off.
-
Mar 5th, 2010, 08:25 AM
#11
Re: VB6 - Simulate Shift+Click and Ctrl+Click
Originally Posted by vbrsoft
we can simulate the mouse and keyboard, we even send a set of keys, the problem is when we put together an event on the keyboard (shift) and a mouse event (left click) to be simulated at the same time.
How do you simulate..???
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|