Solved

sendkeys   double click

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

733 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