External variables to compiled code

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
D_S
Junior Coder
Posts: 32
Joined: Sun Apr 24, 2005 6:43 pm

External variables to compiled code

Post by D_S » Mon May 12, 2008 2:31 am

I have a program that will be installed on 22 pc's...many are pretty slow. The user scans a barcode that will become the basis for several screen inputs. Found that since the pc's don't run the same the wait commands must be tailored to each pc...a pain if they're compiled. So I brought the wait's as well as 2 parameters dealing with image recognition out to an ini file. This way I can fine tune the running program, it loops continuously, as it's running by modifing the data in the ini file. Not rocket science but it works for me...a portion of the code is shown below.

Code: Select all

Label>PRINTLABEL
EditIniFile>C:\FRONTEND\FRONTEND.INI,settings,%BTR%,%NOW%
WindowAction>1,- print by design*
setfocus>- print by design*
Send>%TEMPLATE%
Press DOWN
*****************wait #1
ReadIniFile>c:\frontend\frontend.ini,settings,wait1,wait_1
WAIT>%wait_1%
Send>%BTR%
Press Enter
*****************wait #2
ReadIniFile>c:\frontend\frontend.ini,settings,wait2,wait_2
WAIT>%wait_2%
Send>%COPIES%
Press Enter
****************wait #3
ReadIniFile>c:\frontend\frontend.ini,settings,wait3,wait_3
WAIT>%wait_3%
Send>%LABELS%
PRESS ENTER
****************wait #4
ReadIniFile>c:\frontend\frontend.ini,settings,wait4,wait_4
WAIT>%wait_4%
PRESS ENTER
*****************wait #5
ReadIniFile>c:\frontend\frontend.ini,settings,wait5,wait_5
WAIT>%wait_5%
PRESS ENTER
*****************wait #6
ReadIniFile>c:\frontend\frontend.ini,settings,wait6,wait_6
WAIT>%wait_6%
**********fip from ini file
ReadIniFile>c:\frontend\frontend.ini,settings,fip,fip_1
Let>FIP_SCANPIXELS=%fip_1%

ReadIniFile>c:\frontend\frontend.ini,settings,colort,color_t
FindImagePos>C:\FRONTEND\CLEAR.BMP,SCREEN,%color_t%,1,XPS,YPS,NumFound

MouseMove>%XPS_0%,%YPS_0%
LClick
WindowAction>2,- print by design*
GOTO>CHECKTATTOO

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