Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
monitor blank area of window for any change
#18
[img]blob:http://www.quickmacros.com/eceb6552-43df-4f28-a103-a09687eb3b34[/img]

Kevin:  Here is the window that I am trying to monitor for ham radio transmission automation monitoring.  I have a macro built that makes a ham contact and logs it to my logging program and repeats the calling for a new ham contact.  All works well until someone returns my contact but does not supply the full information that is required for a complete verifiable ham contact.  In this case the right side of the screen (all ;lines in yellow) keeps repeating the exact same line over and over and over again without ever cancelling the contact and starting initiation of my macro. I thought that if I defined an area ind the bottom of the right side where the white area is and if anything changes in thaat area....any colored linen matter what is there.... will then run a recording to press the HALT DTX button, Erase button dot clear eevverything on the right side, press the CQ W4EIS EM13 lineOR the radio button in the next columm and finally the ENABLE TX button to start the transmission all over again.  Right now the defined area to monitor for any change is LARGER that the white area showing in this screen shot is not working.
I will inclue a copy of each of three macros.

BlankAreaCk macro 
Code:
Copy      Help
Macro [b]BlankAreaCk[/b] [help1][/help1]
[code]RECT r
SetRect &r 2000 710 2500 900
int w=win("WSJT-X   v2.0.0   by K1JT" "Qt5QWindowIcon")
rep
,wait 0 -S "" w r 16
,#region Recorded 1/21/19 10:43:15 AM
,lef 2926 1056 w 1 ;;push button 'Halt Tx Alt+H'
,lef 3652 1388 w 1 ;;radio button
,lef 1748 1060 w 1 ;;push button 'Erase Alt+E'
,lef 2456 1062 w 1 ;;check box 'Enable Tx Alt+n'
,#endregion
,1[/code]


WSJX Macro - this works logging contacts and restarting until returning station does not reply
Code:
Copy      Help
Macro [b]WSJTX[/b] [help1][/help1]
Trigger [b]$a 130 0 "" "Qt5QWindowIcon" "" "WSJT-X   v2.0.0   by K1JT - Log QSO"[/b] [help2][/help2]
[code];\
;\
function hwnd idObject idChild
;Acc a.FromEvent(hwnd idObject idChild)
;out a.Name

#region Recorded 1/22/19 7:03:07 PM
int w1=win("WSJT-X   v2.0.0   by K1JT - Log QSO" "Qt5QWindowIcon")
lef 238 17 w1 ;;title bar
lef 335 401 w1 1 ;;dialog 'WSJT-X   v2.0.0   by K1JT -...'
int w2=act(win("WSJT-X   v2.0.0   by K1JT" "Qt5QWindowIcon"))
lef 1750 1068 w2 1 ;;push button 'Erase Alt+E'
lef 3652 1390 w2 1 ;;radio button
lef 2558 1072 w2 1 ;;check box 'Enable Tx Alt+n'
#endregion
[/code]

START macro that combines the two macros
Code:
Copy      Help
Macro [b]Start[/b] [help1][/help1]
[code]mac BlankAreaCk
mac WSJTX

[/code]
  I am open to any help or better way of accomplishing the desired result

Here is an attachment that may not have shown in prior message


Attached Files
.docx   WSJTX screen.docx (Size: 448.54 KB / Downloads: 257)


Messages In This Thread
RE: monitor blank area of window for any change - by AggieBQ1972 - 01-25-2019, 10:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)