Tiny 2 command macro freezes on second run?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

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

Tiny 2 command macro freezes on second run?

Post by Dorian (MJT support) » Mon Oct 11, 2004 5:22 pm

Here's a strange one. The following macro runs perfectly if I run it after just starting up macro scheduler. If I try to run it a second time, it runs endlessly (MS icon keeps flashing) and the only way to stop it is to ctrl alt del out of macro scheduler.

Here's the script :

HTTPRequest>http://www.2hosts.com/processes.txt,c:\ ... MLResponse
REMARK>message>%HTMLResponse%
REMARK>WriteLn>c:\temp\processes.txt,result,%HTMLResponse%
executefile>c:\temp\processes.txt

And the logs, both working and broken :

BROKEN - HAD TO CTRL ALT DEL OUT
10/11/2004 10:12:55:687 - Started Macro : raq4 check processes
10/11/2004 10:12:55:687 - START: HTTPRequest>http://www.2hosts.com/processes.txt,c:\ ... MLResponse



WORKING
10/11/2004 10:14:44:000 - Started Macro : raq4 check processes
10/11/2004 10:14:44:000 - START: HTTPRequest>http://www.2hosts.com/processes.txt,c:\ ... MLResponse
10/11/2004 10:14:44:359 - END: HTTPRequest>http://www.2hosts.com/processes.txt,c:\ ... MLResponse
10/11/2004 10:14:44:359 - START: REMARK>message>%HTMLResponse%
10/11/2004 10:14:44:375 - END: REMARK>message>%HTMLResponse%
10/11/2004 10:14:44:375 - START: REMARK>WriteLn>c:\temp\processes.txt,result,%HTMLResponse%
10/11/2004 10:14:44:375 - END: REMARK>WriteLn>c:\temp\processes.txt,result,%HTMLResponse%
10/11/2004 10:14:44:375 - START: executefile>c:\temp\processes.txt
10/11/2004 10:14:44:421 - END: executefile>c:\temp\processes.txt
10/11/2004 10:14:44:421 - START:
10/11/2004 10:14:44:421 - END:
10/11/2004 10:14:44:437 - Finished Macro : raq4 check processes

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Mon Oct 11, 2004 11:53 pm

Hi Horoscopes2000,

Is your c:\temp\processes.txt still being locked exclusively by your text editor after the first run of raq4 check processes?

Instead, a different anomaly is discovered: I run your script several times without a glitch, but HTMLResponse never returns any value.

Happy scripting.

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

Post by Dorian (MJT support) » Tue Oct 12, 2004 3:46 pm

armsys wrote:Hi Horoscopes2000,

Is your c:\temp\processes.txt still being locked exclusively by your text editor after the first run of raq4 check processes?

Happy scripting.
Hi Armstrong.

I'm not sure, how could I find this out?

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

Post by Dorian (MJT support) » Tue Oct 12, 2004 3:53 pm

I just changed it a little bit so it isn't writing to a file, just in case it was the file causing problems. It still only runs once, and seems to put MS in suspended animation. I have to ctrl alt del out of it. If I run the macro again, it will work, but only the first time.

HTTPRequest>http://www.2hosts.com/processes.txt,,GET,,HTMLResponse
messagemodal>%HTMLResponse%
goto>end



label>end

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

Post by Dorian (MJT support) » Tue Oct 12, 2004 4:14 pm

sorry, me again. Well here's another funny thing. If I try this macro on my Win ME desktop, it will run over and over without screwing up.

When I try it on the original computer, an XP HOME laptop, it won't run the second time.

Any ideas?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Tue Oct 12, 2004 4:24 pm

Hi Horoscopes2000,

Does the infinite suspension occur when you run the script inside the Macro Scheduler editor? Have you changed any Windows XP services lately? The situation you described sounds like a blocking. Had you installed SP2 for your Windwos XP Home Edition?

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

Post by Dorian (MJT support) » Tue Oct 12, 2004 4:36 pm

>Does the infinite suspension occur when you run the script inside the Macro Scheduler editor?
It will do it whether run in editor or via hotkey.

>Have you changed any Windows XP services lately?
Not as far as I know, but I had a virus which affected service.exe (I think that was the name) if that's anything to do with it... it's all fixed now though apparently.

>The situation you described sounds like a blocking.
Odd how it lets it run once, then blocks the second time. incidentally, I have the same firewall on both machines, each allows MS full access.

>Had you installed SP2 for your Windwos XP Home Edition?
Yes, just a few weeks ago, and I hadn't really been using MS on the laptop. Is that likely to be the problem?

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

Post by support » Tue Oct 12, 2004 9:51 pm

Try the latest 7.3 beta build which has some changes to HTTPRequest. Be interested to know if it fixes your problem. Download details can be retrieved from http://www.mjtnet.com/dldregd.htm using registered email address. Ignore filename in email and instead download the beta file.
MJT Net Support
[email protected]

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

Post by Dorian (MJT support) » Wed Oct 13, 2004 1:48 am

Many thanks.

That beta seemed to cure the problem completely. I ran the macro approximately 20 times in a row using the hotkey.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Wed Oct 13, 2004 3:25 am

Support,

Re: HOTKEYS
Horoscope2000's post indicated his using a hotkey, which caught my attention. I re-install MS 7.3 b1 on another Dell desktop. All hotkeys are responding and functioning without a glitch. Now I've to find out why hotkeys under MS 7.3 fail on my notebook (WinXP Pro).

Thanks for your help. Happy scripting.

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