challenge with ms doing crazy things

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
csb72
Newbie
Posts: 17
Joined: Thu Sep 20, 2007 6:21 am

challenge with ms doing crazy things

Post by csb72 » Sun Oct 14, 2007 8:13 pm

Perhaps you can help me figure out what is happening. Here is the script I am running:

Code: Select all

//*****************************************************************************
// *** Complete Upload Of Daily Leads To MMPM *** //
// Started_ 200710141156
// Finished 2007
// Each main sections of the below script are seperated by //******
//*****************************************************************************
// Things to work on:
// 1. text message.
//*****************************************************************************
Label>check_internet_connection
//check for internet connection
Let>RP_WAIT=1
Run>cmd /c ping ask.com > %TEMP_DIR%InternetConnectionTest
ReadFile>%TEMP_DIR%InternetConnectionTest,file
DeleteFile>%TEMP_DIR%InternetConnectionTest
Separate>file,Reply from,var
If>var_count>1,Connection_Available
//wait 1 minutes
Wait>60
Goto>check_internet_connection
Label>Connection_Available
Goto>open_firefox_browser
//*****************************************************************************


//*****************************************************************************
Label>open_firefox_browser
//open firefox
Run Program>C:\Program Files\Mozilla Firefox\firefox.exe
//wait for firefox to open
Wait>10
Goto>click_address_bar
//*****************************************************************************


//*****************************************************************************
Label>click_address_bar
//click in address bar area
MouseMove>250,64
LClick
//wait 5 seconds
Wait>5
//set focus to Mozilla Firefox
SetFocus>Mozilla Firefox
//ctrl a to select all in address bar
Press CTRL
Send>a
Release CTRL
//wait 5 seconds
Wait>5
Goto>login_to_mmpm
//*****************************************************************************


//*****************************************************************************
Label>login_to_mmpm
//set focus to Mozilla Firefox
SetFocus>Mozilla Firefox
//type http://www.mmpm.com/members/ into address bar
Send>http://www.mmpm.com/members/
Press Enter
//wait for the page to load
Wait>10
//set focus to MMPM - Mozilla Firefox
SetFocus>MMPM - Mozilla Firefox
//tab 7 times so that cursor is in the username field and the username is selected
Press Tab * 7
//type in username
Send>[email protected]
//tab to password text box
Press Tab
//type in password
Send>removedduetosecuritysettings
Press Enter
//wait for the page to load
Wait>20
//*****************************************************************************
which I have used several times and it worked correctly. Then all of a sudden ... it no longer works. So, I played around with it and noticed that if I already had firefox open the ms script would open up another firefox window and work fine. If I did not have a firefox window opened before I ran the ms script it would stop between [Label>open_firefox_browser] and [Label>click_address_bar]. ???

Then if I attempt to close the opened ms script that I am working on it immediately clears all fields (i.e. macro name and the script area) to look like a new macro does (you know the window that would show if I clicked on the new script (macro) button (or control + n)) and then freeze. At this point I am unable to close the opened ms script window.

So in order to close ms scheduler, I close firefox and clear my cache. I am then able to close ms scheduler.

I then start ms scheduler again and everything looks normal but if I attempt it again the same things happen.

Any ideas?

My thinking is that I should uninstall ms scheduler completely and then reinstall it.

Do you think that this could fix the challenge? If so, how do I uninstall ms completely?

Thank you and have a fantastic day!
Carl

P.S. I have adjusted the above script so that it does not go to the website or have the correct username or password. I already know that the script will work. I just don't understand why it is causing malfunctions with ms scheduler.

csb72
Newbie
Posts: 17
Joined: Thu Sep 20, 2007 6:21 am

Post by csb72 » Thu Oct 18, 2007 1:32 am

Please explain how I can simply uninstall Macro Scheduler completely.

Carl

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Fri Oct 19, 2007 5:33 am

before you go to the trouble of an uninstall/re-install. Are you running this script with the Editor window open? If you are, that would potentially interfere with your application (Firefox). You should close the editor and simply assign a hotkey to the macro or select RUN from the Macro Scheduler interface.

You should try using a WaitWindowOpen> to wait for firefox to open and SetFocus> before each screen interaction step of your script.

See if these changes help your script to be more reliable.[/u]

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