Jump to content
Macro Express Forums

Help reqd for macro to wait till a screen appears in the same web browser


sunilvedula
 Share

Recommended Posts

:rolleyes: Hi all,

 

i am designing a macro application for an application which runs in a web browser. It presses certain keys after which a new page comes (with a certain delay which is depenedent on the internet speed) in the same browser window. The browser window does not change. Now my macro is running without waiting for the screen to appear. I am not able to use window delay as there is no particular window or name for the scree. I tried usign time delay but the time it take varies on speed of internet. Can u help me resolve this. I want the macro to wait for the screen and then start after the screen appears. My application is depenedent on the time it saves and hence timing is very important.

Link to comment
Share on other sites

I'm not sure from your post how many different options you have when it goes to another web page, but I'll give you a general idea as to what I have done in this instance a couple times. If I know it's going to go to a specific screen next, so find something on that page you can capture in a variable, either a word, a control or a pixel color. (There are several articles on this here on the board.) I put this in a repeat loop, so after 10 seconds it looks for that word, control or pixel color. If it finds it, the macro "knows" it's on the browser page it needs to be on. If it doesn't find it, the macro waits another 10 seconds and tries again. You can do this repeat every 10 seconds for infiinity. :rolleyes: Once it finds the word, control or pixel color you macro can continue doing what you need it to do.

 

By using this you can also have if statements if there are maybe two or three (or more) pages you know it "might" go to.

 

I'm sure there are much smarter people out there with other ideas, but this one worked for me and was easy to do.

 

John

Link to comment
Share on other sites

Thank you very much for the reply. Let me try and see whether it works or not. For the question u asked there is one option like submit which takes it to another screen where again i need to click on another submit. And also my complete taks needs to be completed in 90 seconds. so milliseconds would that be a good option?

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...