Tiny 2 command macro freezes on second run?
Moderators: JRL, Dorian (MJT support)
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
Tiny 2 command macro freezes on second run?
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
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
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
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
HTTPRequest>http://www.2hosts.com/processes.txt,,GET,,HTMLResponse
messagemodal>%HTMLResponse%
goto>end
label>end
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
>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?
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?
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]
[email protected]
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 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.
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.