Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wait for image problem
#1
This code work only if i click the run
Is the second macro
Macro 1 works ok
Macro 2 no work.
Any help?

Code:
Copy      Help
function hwnd idObject idChild
Acc a.FromEvent(hwnd idObject idChild)
out a.Name
int w=win("WSJT-X   v1.8.0   by K1JT" "Qt5QWindowIcon")
wait 0 S "image:h6CA8E71D" w 0 1|16|0x400
#region Recorded 28/12/2017 6:07:17 μμ
wait 1
int w1=act(win("WSJT-X   v1.8.0   by K1JT" "Qt5QWindowIcon"))
lef 800 397 w1 1 ;;κουμπί πίεσης 'Erase Alt+E', "~:AD067C6D"
lef 1814 622 w1 1 ;;κουμπί πίεσης 'Tx 6 Alt+6', "~:F658943B"
#endregion

The macro one is:
Code:
Copy      Help
\
function hwnd idObject idChild
Acc a.FromEvent(hwnd idObject idChild)
out a.Name
int w=win("WSJT-X   v1.8.0   by K1JT - Log QSO" "Qt5QWindowIcon")
#region Recorded 27/12/2017 6:23:04 μμ
wait 1
int w1=win("WSJT-X   v1.8.0   by K1JT - Log QSO" "Qt5QWindowIcon")
lef 206 214 w1 1 ;;κουμπί πίεσης 'OK Enter'
wait 1
int w2=act(win("WSJT-X   v1.8.0   by K1JT" "Qt5QWindowIcon"))
lef 1222 395 w2 1 ;;πλαίσιο ελέγχου 'Enable Tx Alt+n'
#endregion
#2
Ok, I make new code, but sometimes not work, any idea?

Code:
Copy      Help
\
function hwnd idObject idChild
Acc a.FromEvent(hwnd idObject idChild)
out a.Name
int w=win("WSJT-X   v1.8.0   by K1JT" "Qt5QWindowIcon")
wait 0 S "image:h1B016CA3" w 0 1|16|0x400
#region Recorded 28/12/2017 8:47:05 μμ
int w1=act(win("WSJT-X   v1.8.0   by K1JT" "Qt5QWindowIcon"))
lef 790 399 w1 1 ;;κουμπί πίεσης 'Erase Alt+E'
mou ":@bJ@TDQB+27+8+39+7+44+8+46+10+46+11+58+13+48+11+47+12+46+8+44+7+38+9+33+8+30+5TCNDPDLDJBLAJCTFO@PDJANDFBJ@PGJAJAICGAG@CAHADDC@DAC@ECC@B@A@B@BAAADBCAJDGAGAECMBFCF@HEJAJFMDD@HBEBF@E@EAAAA@B@B@AA"
lef 1810 623 w1 1 ;;κουμπί πίεσης 'Tx 6 Alt+6'
#endregion


Forum Jump:


Users browsing this thread: 1 Guest(s)