Solved

sendkeys   double click

Posted on 1998-10-26
5
1,048 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Write data from SQL to CSV file - position 1 52
Problem to skip loop 6 54
How does CurrentUser work? 10 31
SLMGR Switches Are Not Working On KMS Host 3 63
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

943 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

5 Experts available now in Live!

Get 1:1 Help Now