Quick Macros Forum
wait for image problem - Printable Version

+- Quick Macros Forum (http://www.quickmacros.com/forum)
+-- Forum: Support (http://www.quickmacros.com/forum/forumdisplay.php?fid=4)
+--- Forum: General (http://www.quickmacros.com/forum/forumdisplay.php?fid=8)
+--- Thread: wait for image problem (/showthread.php?tid=6344)



wait for image problem - john_b - 12-28-2017

This code work only if i click the run
Is the second macro
Macro 1 works ok
Macro 2 no work.
Any help?

Code:
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:
\
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



Re: wait for image problem - john_b - 12-28-2017

Ok, I make new code, but sometimes not work, any idea?

Code:
\
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