Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Text for Commands
#3
That was helpful to know I can't do it that way. The screen where the text is coming from is a DOS program window and I can't really define the child or subscreen screen specific to the area I need, instead it takes the entire screen. I think the best way is to copy it onto the clipboard and then extract the text. Here is how I set that up but it still didn't work.

//Get PatSex from screen and click the correct M or F
//if text is M then left click on M in "enter new patient demographics else if text is F click F
int w14=act(win("C332 - PCN-TERM - [91]192.168.0.50]" "Afx:400000:8:10011:0:*""" 0x800))
lef+ 403 329 w14
lef- 413 340 w14
rig+ 411 338 w14
int w18=win("" "#32768")
rig- 0 0 w18
lef 32 14 w18
str s = "A"
int w15 getclip("A")
if("A"="M")
int w16=act(win("ENTER NEW PATIENT DEMOGRAPHICS" "ThunderRT6FormDC"))
lef 168 92 w16
else if("A"="F")
int w17=act(win("ENTER NEW PATIENT DEMOGRAPHICS" "ThunderRT6FormDC"))
lef 164 90 w17


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)