Solved

sendkeys   double click

Posted on 1998-10-26
5
1,091 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

717 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