CTRL A apparently not working

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
robin

CTRL A apparently not working

Post by robin » Sun Jan 30, 2005 9:26 pm

Can anyone see what is wrong with this bit of coding. The text copied into Open office is refusing to be selected with a CTRL A. Unfortunately I am also having trouble with running the program with the debugger. It seems to focus on the script window and copy the text into it.

Robin

SetFocus>Pegasus Mail - [Folders*
remark>copy selected text
Press CTRL
send>c
Release CTRL
Run Program>D:\Program Files\OpenOffice.org1.1.2\program\soffice.exe
WaitWindowOpen>Untitled1*
setfocus>Untitled1*
Remark>copy into OOo
Press ALT
send>EP
Release ALT
Press CTRL
send>A
Release CTRL
Remark>apply default format
Press ALT
send>OD
Release ALT

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sun Jan 30, 2005 9:35 pm

Try this version:


SetFocus>Pegasus Mail - [Folders*
remark>copy selected text
Press CTRL
send>c
Release CTRL
Run Program>D:\Program Files\OpenOffice.org1.1.2\program\soffice.exe
WaitWindowOpen>Untitled1*
setfocus>Untitled1*
Remark>copy into OOo
Press ALT
send>ep
Release ALT
Press CTRL
send>a
Release CTRL
Remark>apply default format
Press ALT
send>od
Release ALT
MJT Net Support
[email protected]

Guest

Post by Guest » Sun Jan 30, 2005 10:09 pm

The reduction to lower case allowed it to work.

This part of the code is still not working. I wrote a macro in oOO to remove the short lines. It is called by F4. When I run the following manually it does work. Macro scheduler does run my macro properly but will not accept the command to go to the top of the doc. Do you suggest that I write the oOO commands direct into the macro scheduler macro rather than try to run a macro from within MSch.

Robin

Remark>run macro to Remove short lines
Press F4
Remark>go to top of doc
Press CTRL
Press Home
Release CTRL
release Home

Guest

Post by Guest » Sun Jan 30, 2005 10:30 pm

I have just checked my oOO macro and although it works I have changed it to ensure it has a sub main. I guessed the problem was that it was hanging in some way. After this change the MSch macro works so that the cursor goes to the top of the page.

Robin

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts