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