Solved

sendkeys   double click

Posted on 1998-10-26
5
1,042 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thats it ameba thanks

gbxhhu thanks for the help

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now