Hi all,
I'm running the following script where I display a dialogbox - when a specifc pixel color is present I would like the dialog to close, for some reason this is not working. What am I doing incorrect?
//Place dialog
SetDialogProperty>Dialog1,,Position,poDesigned
SetDialogProperty>Dialog1,,Left,785
SetDialogProperty>Dialog1,,Top,40
SetDialogProperty>Dialog1,MSMemo1,Text,Select: %Resultat%
//Display Dialog
Show>Dialog1,res
Wait>0.5
SetFocus>AnyDesk*
Wait>0.5
WaitPixelColor>%nGreenCircle%,391,295,0
Wait>0.5
CloseDialog>Dialog1
SetFocus>AnyDesk*
Wait>0.5
WaitPixelChange when dialog is open
Moderators: Dorian (MJT support), JRL
- Dorian (MJT support)
- Automation Wizard
- Posts: 1389
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: WaitPixelChange when dialog is open
You're using a modal dialog.
Try this :
Try this :
Code: Select all
//Place dialog
SetDialogProperty>Dialog1,,Position,poDesigned
SetDialogProperty>Dialog1,,Left,785
SetDialogProperty>Dialog1,,Top,40
SetDialogProperty>Dialog1,MSMemo1,Text,Select: %Resultat%
//Display Dialog
Show>Dialog1
Wait>0.5
SetFocus>AnyDesk*
Wait>0.5
WaitPixelColor>%nGreenCircle%,391,295,0
Wait>0.5
CloseDialog>Dialog1
SetFocus>AnyDesk*
Wait>0.5
Yes, we have a Custom Scripting Service. Message me or go here
Re: WaitPixelChange when dialog is open
That was the mistake - thanks Dorian you are a life savor.
- Dorian (MJT support)
- Automation Wizard
- Posts: 1389
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: WaitPixelChange when dialog is open
Always happy to help.
Yes, we have a Custom Scripting Service. Message me or go here