Solved

sendkeys   double click

Posted on 1998-10-26
5
1,055 Views
Last Modified: 2008-03-17
How can I send a double click so the target text
is hilighted with sendkeys?

.selstart and .sellen dont work with sendkeys?

Its a different exe I want to send sending the hilight command. How can I highlight the text.
0
Comment
Question by:josmic
  • 2
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
ameba earned 50 total points
ID: 1441675
for selstart use
sendkeys "{Right}" ' see vb help for repeting keys
for sellen
send shift-right, or shift-ctrl-right to select a word.
shift is +, again see vb help for sendkeys

sendkeys "+{Right}" ' character right, holding shift
sendkeys "^{Right}" ' word right, etc

0
 

Author Comment

by:josmic
ID: 1441676
Thanks for the help, Good but not a mouse double click simulation.

Left Mouse double click hilights entire word reguardless of original mouse pointer position

Do you Know how to  without using mouse?
0
 
LVL 15

Expert Comment

by:ameba
ID: 1441677
You can calculate position, by parsing the string.
If you are at the middle of the word, you can try sending
Ctrl-Left,
Shift-Ctrl-Right.

This will work for all situations:
Ctrl-Right,
Ctrl-Left,
Shift-Ctrl-Right.

0
 
LVL 12

Expert Comment

by:gbzhhu
ID: 1441678
Hi

I have the code you need and it is one line but I am on holiday and it is at work and I can't remember. Send me a mail and I will send it to you by 09th Oct. 98 when I get back to work - that is if you donn't get a satisfactory answer.

My mail is hassan.hussein@zurich.com
0
 

Author Comment

by:josmic
ID: 1441679
Thats it ameba thanks

gbxhhu thanks for the help

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question