I have a very strange problem.
I have made a macro and when I run it it does the same thing that I can do all the steps manually and then it works fine but when I use the macro for it then it won't work.
It's a bit comlited to say because it's a program for our pbx för extracting statistics.
I run Macroscheduler as administrator and I have alos disabled UAC. I use Windows 7 Pro 64bit.
It does this:
It run a program, press CTRL+O (Open) and then tabs to right place to enter text and then open a new window and it's when it shall open the new window then it says that the file it reads that is 2,5MB big is empty and when I look at the file then it's is 0 byte big. When i do the same steps manully the the window opens and it gets the is right size. It gets the file from our pbx when just before it opens the windows that fail. So when i do it manully the it downloads the file right but from macro with same steps then it fails.
It's very strange and We can not see the diffrence since it's same info and under same user account i windows and so on.
Any ideá what could be wrong?
Here is the code:
Code: Select all
RunProgram>D:\Alcatel\Ticket Analyzer\Ticket.exe
WaitWindowOpen>Ticket Analyzer
Wait>0.4
Press CTRL
Wait>0.4
Send>o
WaitWindowOpen>Connection
Wait>0.4
Release CTRL
Wait>0.4
Press Left * 14
Wait>0.4
Press Tab * 4
Send>pbxname
Wait>0.4
Press Tab
Wait>0.4
Send>username
Wait>0.4
Press Tab
Wait>0.4
Send>password
Wait>0.4
Press Tab
Wait>0.4
Send>Communication
Wait>0.4
Press Tab
Wait>0.4
VBSTART
VBEND
VBEval>DateAdd("d",-1,date),yesterday
VBEval>Right("0" & DatePart("d","%yesterday%"), 2),day_bit
VBEval>Right("0" & DatePart("m","%yesterday%"), 2),month_bit
VBEval>DatePart("yyyy","%yesterday%"),year_bit
Let>formatted_date=%year_bit%-%month_bit%-%day_bit%
Send>formatted_date
Press Tab
Send>formatted_date
Wait>0.4
Press Enter
Best regards
Morten