Having problem - Error in ReadIniFile command

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
mkl
Newbie
Posts: 2
Joined: Tue Jan 25, 2005 7:21 pm

Having problem - Error in ReadIniFile command

Post by mkl » Tue Jan 25, 2005 7:40 pm

Hello,

I hope you can help me resolve this issue. I am using the latest release of Macro Scheduler Pro (7.3.06). I am receiving the following error while my script runs:
Error in ReadIniFile command.
The problem is that I am not even using the ReadIniFile command in my script!

The error occurs in the following situation:
The script opens a window which generates a report that I need to save. There is no key sequence for saving so I must click on the save icon. The report takes a varying amount of time to generate the report and while the report is being generated the save icon is disabled. Because I can never know how long it will take to finish I set the macro to click on the disabled save icon every two seconds until it successfully opens the "Save As" window. The problem occurs when the script sends the click command on the disabled save icon. It pops up the error message about ReadIniFile. Is this a bug? It seems to me that clicking a disabled icon should not cause any problems and I've tried to find other ways to accomplish what I want but this is the only one that would be reliable under my circumstances.

Here is the part of the script that causes the error:

Remark>Get window position and move mouse over the Save icon since there is no key-combo available
Remark>Save icon is disabled until report is finished loading so we'll click the icon every 2 seconds until the Save window opens
GetWindowPos>Performance Report*,pX,pY
Let>pxt=pX+18
Let>pyt=pY+43
MouseMoveRel>18,43
Wait>1
Let>ReadyToSave=0
Repeat>ReadyToSave
ReadyToSave=ReadyToSave+1
LClick
Wait>2
IfWindowOpen>Save As
Let>ReadyToSave=1
EndIf
Until>ReadyToSave,1

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Tue Jan 25, 2005 8:31 pm

ReadyToSave=ReadyToSave+1

Try:
Let>ReadyToSave=ReadyToSave+1
or
Add>ReadyToSave,1


The abbreviation for the command "ReadIniFile" is "Rea>"... which is why you're getting that specific error.

mkl
Newbie
Posts: 2
Joined: Tue Jan 25, 2005 7:21 pm

Thanks

Post by mkl » Tue Jan 25, 2005 9:42 pm

Thanks Captive, that should fix the problem. I still haven't adjusted to the syntax that Macro Scheduler uses.

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