If script not working

Post your questions and help other users.

Moderator: Martin

Post Reply
TheUnknownBuffalo
Posts: 38
Joined: 09 Aug 2017 07:19

If script not working

Post by TheUnknownBuffalo » 03 Oct 2017 19:25

I've got this as an action UI script, but don't understand why it won't work:

title=getText(20,20)
if(title=="OK")
click("OK");

WHat have I done wrong?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: If script not working

Post by Martin » 03 Oct 2017 19:38

Hi,

The script looks almost OK to me, except the missing semicolon after the getText function call:
title=getText(20,20);
if(title=="OK")
click("OK");

Try to append a condition Debug Dialog to the flow and execute the flow to see if the variable title actually contains the expected text.

Regards,
Martin

Post Reply