I have problems with WaitPixelColor.
I heve an Crystal Report of which I have to copy 23 parts to the harddrive
Selections are made with the Parameters in Crystal.
It takes up to 5 minites to colect the data through the ODBC driver and fo the next step te export as an pdf file.
During the reading of the data the icons on the toolbar are grey and after reading they are coloured again.
I cannot use the change cursor since is changes it shape during reading of the linked subreports
The proces does not stop until the pixel changes colour.
What is mij ommission.
I tried enay value of the waittime but no luck sofar.
Let>RP_WAIT=1
Let>WPC_TIMEOUT=0
DeleteFile>c:\a_Upload\*.pdf
SetFocus>Crystal*
Press F5
Press Tab
Press Tab
Press Tab
Press Tab
Press Down
Send Character/Text>SALESDEP
Press Tab
Press Tab
Press Tab
Press Tab
Press Down
Send Character/Text>WAREHOUS
Press Tab
Press Down
Send Character/Text>11
Press Enter
WaitPixelColor>0,21,701,0 //color,X,Y,max waitingtime
Message>WPC_RESULT
Etcetera
Any help will be preciated
Thanks
Adriaan Stoop
WaitPixelColor and Crystal Reports
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
is not in the correct format.WaitPixelColor>0,21,701,0 //color,X,Y,max waitingtime
1. Should be something more like:
11038776 is the color.WaitPixelColor>11038776,453,573,10
453 is the x position, or column of the mouse.
573 is the y position or row of the mouse.
10 is the timeout value.
You can get these desired values by opening the Macro Scheduler editor, click on Tools, Cursor Monitor. Now as you move the mouse you will see the values. Go to your desired mouse position, set the conditions to show the color you want to wait for, write down the values.
2. Don't believe you can comments on the same line as a command, so "//color,X,Y,max waitingtime" needs to be on its own line. I usually put such notes above the line that I use.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!