 |
Overview |
Example |
Screenshots
|
|
Details - EMac - Control Programs Automatically
|
|
Scripts are instructions that EMac follows to perform your desired actions. EMac provides
an IDE (Integrated Development Environment) that consists of an Editor, Wizards, Help and test tools
to assist in macro creation and editing.
EMac's wizards are intuitive and robust. Literally every possible command has a wizard.
EMac's wizards can guide you through the entire macro development process and at the same
time teach you the Evans Macro Interpreter's language. Of course you don't have to
learn it, that is what the wizards are for!
For the most part, EMac works by setting the focus to a window, then sending
keystrokes to the window. The most important thing to remember when creating
scripts is to always set the focus to a window before starting to send keystrokes
to it.
|
Example
|
|
Lets say for example you have to go to the Evans Programming web site
about 100 times a day and fill out the I Just Tested EMac form because
it tickles you so much.
One day you decide that if you spent one half an hour automating the
process that you would then save 2 hours a week thereafter and maybe
your boss will see how smart you are and give you a raise.
First, because you are a seasoned macro developer, you figure out the exact steps that you want to automate.
- Start your I.E. browser
- Set focus to the browser
- Select File / Open on the menu
- Set focus to the Open window
- Type in the URL "http://www.evansprogramming.com/emactest.asp"
- Select [OK] from the Open window
- Set focus to the browser with "http://www.evansprogramming.com/emactest.asp" in the title. Doing so will assure that your macro is ready to proceed.
- Tab to the 1st field in the form
- Type in the data
- Tab to the option buttons
- Arrow over to the 3rd option button
- Tab to the [Submit] button and press [Enter]
- All done
|
Step 1
|
|
- Click on EMac's Macro New / Edit button to open the EMac IDE.
- In the IDEs' Commands window double-click the Run command.
- The wizard shown in the view icon will appear.
|
Step 2
|
|
- Click the wizard's Find button.
- Browse for and locate Internet Explorer. On my PC it was located in "C:\Program Files\Internet Explorer\Iexplore.exe".
- Click the wizard's Next button.
- Click the wizard's Next button.
- Click the wizard's Launch button.
- Click OK when the Launch Successful window displays.
- Click the wizard's Next button.
- Click the wizard's Finish button.
- The wizard will paste your command into the editor.
- When asked Would you like to terminate your program?, answer No.
- You editor will look similar to that shown in the view icon.
|
Step 3
|
|
- In the IDEs' Commands window double-click the SetFocus command.
- Select to set focus by Title. Note: Most apps can allow focus to be set by PID or WID, which is easier, but I.E. is an exception.
- Click the wizard's Next button.
- In the drop-down list find and select the title that matches the title on your browser.
- Click the wizard's Next button.
- Click the wizard's Test button.
- Click the wizard's Next button.
- Click the message boxes' OK button.
- Click the wizard's Finish button.
- The wizard will paste your command into the editor.
|
Step 4
|
|
- In the IDEs' Commands window double-click the Send command.
- In the drop-down list find and select the title that matches the title on your browser.
- Click the wizard's Next button.
- In the Send Command Record / Edit Window hold down the [alt] key and type f, then let off the [alt] key and type o. Notice that this is how I.E does a File / Open.
- Click the wizard's Test button. I.E.s' Open window should be displayed.
- Click the wizard's Record / Edit toggle button.
- Click the wizard's Finish button.
- The wizard will paste your command into the editor.
|
Step 5
|
|
- In the IDEs' Commands window double-click the SetFocus command.
- Select to set focus by Title.
- In the drop-down list find and select Open.
- Select the wizard's Matches option.
- Click the wizard's Next button.
- Click the wizard's Test button. I.E.s' Open window should be displayed.
- Click the wizard's Finish button.
- The wizard will paste your command into the editor.
|
Step 6
|
|
- In the IDEs' Commands window double-click the Send command.
- In the drop-down list find and select Open.
- Select the wizard's Matches option.
- Click the wizard's Next button.
- Click the wizard's Rec / Edit button.
- Type in "http://www.evansprogramming.com/emactest.asp" (without the quotes).
- Click the wizard's Rec / Edit button.
- Press [Enter].
- Click the wizard's Rec / Edit button.
- Click the wizard's Test button. The EMac Test web page should display.
- Click the wizard's Finish button.
- The wizard will paste your command into the editor.
|
Step 7
|
|
- In the IDEs' Commands window double-click the SetFocus command.
- Select to set focus by Title.
- In the drop-down list find and select http://www.evansprogramming.com/emactest.asp - Microsoft Internet Explorer.
- Select the wizard's Matches option.
- Click the wizard's Next button.
- Click the wizard's Test button.
- Click the wizard's Finish button.
- The wizard will paste your command into the editor.
|
Step 9
|
|
- In the IDEs' Commands window double-click the Send command.
- In the drop-down list find and select http://www.evansprogramming.com/emactest.asp - Microsoft Internet Explorer.
- Select the wizard's Matches option.
- Click the wizard's Next button.
- Select the wizard's Sleep button.
- Accept the default of one second and click [OK].
- Press the [TAB] key 7 times.
- Click the wizard's Rec / Edit button.
- Type "EMac" (without the quotes).
- Click the wizard's Rec / Edit button.
- Press the [TAB] button.
- Press the right-arrow key two times.
- Press the [TAB] button.
- Press the [Enter].
- Click the wizard's Rec / Edit button.
- Click the wizard's Test button. The EMac Test web page should be filled out automatically and the 'thanks' message should display.
- Click the wizard's Finish button.
- The wizard will paste your command into the editor.
|
Step 10
|
|
Your completed script should look something like this EMac Test.mcr.
|
|
EMac Screenshots
|
|
|
Overview |
Example |
Screenshots
|