10-06-2015, 02:52 PM
Hi, I'm just started with this program and haven't got a clue really how to do things.
I understand that this question must have popped up before and I tried to search this forum part, but either missed it or didn't understand it.
Or rather, some parts I could understand, but not all.
I'm trying to figure out how to do two similar things when two program starts - clicking on a button.
The first button is activated on the dialog after 12 seconds.
If possible, I just want the dialogs to go away as soon as the buttons on them is active.
If that's not possible, I'm ok with a solution where both dialogs is closed after 12 seconds.
I think it's enough to just close the dialogs too, as soon as the buttons is active if that is easier.
This is from a recorded macro where I click the button when the button is active (after 12 seconds)
I'm sure it will work ok, but I'm really after a fully automated solution where it is done as soon as the button is activated.
#region Recorded 2015-10-06 15:56:36
int w2=win("gSyncit - Evaluation / Restricted Functionality" "WindowsForms10.Window.8.app.0.1b6501_r87_ad2")
lef 79 168 w2 1 ;;kommandoknapp 'Use Evaluation'
#endregion
Here is the dialog name from "Find window or control"
win("gSyncit - Evaluation / Restricted Functionality" "WindowsForms10.Window.8.app.0.1b6501_r87_ad2")
Here is the control
child("" "*.BUTTON.*" {window} 0x0 "wfName=button3")
The second one from "Find window or control"
The Window I want a control from:
int w=wait(30 WA win("PhraseExpress - Update Notification" "TUpdateDlg"))
The control I want to click when it's active
int w=wait(30 WA child("Skip this version" "TButton" {window}))
I really appreciate any help I can get.
I understand that this question must have popped up before and I tried to search this forum part, but either missed it or didn't understand it.
Or rather, some parts I could understand, but not all.
I'm trying to figure out how to do two similar things when two program starts - clicking on a button.
The first button is activated on the dialog after 12 seconds.
If possible, I just want the dialogs to go away as soon as the buttons on them is active.
If that's not possible, I'm ok with a solution where both dialogs is closed after 12 seconds.
I think it's enough to just close the dialogs too, as soon as the buttons is active if that is easier.
This is from a recorded macro where I click the button when the button is active (after 12 seconds)
I'm sure it will work ok, but I'm really after a fully automated solution where it is done as soon as the button is activated.
#region Recorded 2015-10-06 15:56:36
int w2=win("gSyncit - Evaluation / Restricted Functionality" "WindowsForms10.Window.8.app.0.1b6501_r87_ad2")
lef 79 168 w2 1 ;;kommandoknapp 'Use Evaluation'
#endregion
Here is the dialog name from "Find window or control"
win("gSyncit - Evaluation / Restricted Functionality" "WindowsForms10.Window.8.app.0.1b6501_r87_ad2")
Here is the control
child("" "*.BUTTON.*" {window} 0x0 "wfName=button3")
The second one from "Find window or control"
The Window I want a control from:
int w=wait(30 WA win("PhraseExpress - Update Notification" "TUpdateDlg"))
The control I want to click when it's active
int w=wait(30 WA child("Skip this version" "TButton" {window}))
I really appreciate any help I can get.