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?
typing a string, without Ms being installed?
Moderators: JRL, Dorian (MJT support)
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
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
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am