typing a string, without Ms being installed?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1353
Joined: Sun Nov 03, 2002 3:19 am
Contact:

typing a string, without Ms being installed?

Post by Dorian (MJT support) » Thu Jul 03, 2003 8:18 am

I want to make a macro which others can use to automatically type some text in to an email. Here's the problem... 1, they will not have Ms installed, and 2, as soon as the exe is run (if I convert a SEN> acro into an exe) it will deselect the email window.

Is there a way around this?

Lumumba

Post by Lumumba » Thu Jul 03, 2003 3:20 pm

Have a try,

Code: Select all

IfFileExists>C:\MailClient.txt,Go
Input>MailWindowTitle,Please input the title of a blank mail in your mail client,Untitled - Message
If>MailWindowTitle=,Exit
WLN>C:\MailClient.txt,Result,%MailWindowTitle%%CRLF%%CRLF%This file belongs to MailWriter.exe. Don't touch it.

Label>Go
ReadLn>C:\MailClient.txt,1,MailWindowTitle
Ask>Should I write some nonsense to the window:%MailWindowTitle%, Answer
If>Answer=NO,Exit
SetFocus>%MailWindowTitle%*
WaitWindowOpen>%MailWindowTitle%*
Send>George W. Bush definitely knows what to do!

Label>Exit

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1353
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Post by Dorian (MJT support) » Thu Jul 03, 2003 4:57 pm

Many thanks for this code. Unfortunately it isn't what I am trying to do. I didn't realize I had more than one thread dealing with this, so I will stick the the other thread I started and close this one. Seems I've been working on this so long I forgot I'd already posted. :?

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