Skip to content

Conversation

@wzydhek
Copy link
Contributor

@wzydhek wzydhek commented Feb 10, 2016

No description provided.

@ldobson
Copy link
Contributor

ldobson commented Feb 11, 2016

So I can see the use here, but I'm not in love with the structure of how this works. The problems I see are that it potentially clicks pretty aggressively to update (limited only by time to screen scrape and tick_time if it's set), and due to the static nature of where it clicks has a decent chance of getting into a situation where a window moves and now the macro clicks a spot on the screen nonstop. It also can't update multiple windows.

If you need to potentially click to check to see if a window has updated, I would recommend this:

while not waitForText("Take...", 500) do -- Check for item we want
   -- Haven't found our thing yet, so lets try clicking again to update the window
   clickText(findText("This is a Chemistry Laboratory"));
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants