Jump to content
Sign in to follow this  
phew

Hidden window's PixelSearch() possible?

Recommended Posts

phew

hi,

i wondered if there is any way to find a certain area in an hidden IE-window created with _IECreate()?

for example i open www.google.com with _IECreate() in hidden mode and click the link "Groups" by finding it with a PixelSearch().

it would be kinda disturbing when there would always open up the ie window and my mouse jump onto the target-pixel and do click a left-mouse-click, so i tried to find a way making the whole procedure hidden, but at least i couldn't find any working one!

some ideas needed!

greeeeeets,

thanks :P

Share this post


Link to post
Share on other sites
BigDod

Until a window is displayed on the screen it has no pixels to search for.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
jvanegmond

Until a window is displayed on the screen it has no pixels to search for.

Technically, the pixels are there. They're just hidden.

hi,

i wondered if there is any way to find a certain area in an hidden IE-window created with _IECreate()?

for example i open www.google.com with _IECreate() in hidden mode and click the link "Groups" by finding it with a PixelSearch().

it would be kinda disturbing when there would always open up the ie window and my mouse jump onto the target-pixel and do click a left-mouse-click, so i tried to find a way making the whole procedure hidden, but at least i couldn't find any working one!

some ideas needed!

greeeeeets,

thanks :P

Click the group link by using _IELinkClickByText.

Edited by Manadar

Share this post


Link to post
Share on other sites
phew

thanks for the suggestion with _IEClickLinkByText() but i need a pixelsearch because the link's text is variegating all the time

greets

Share this post


Link to post
Share on other sites
jvanegmond

thanks for the suggestion with _IEClickLinkByText() but i need a pixelsearch because the link's text is variegating all the time

greets

No pixelsearch for you mister! :P

The only reason you should ever use PixelSearch in Internet Explorer, is when you are automating Java.

There are other alternatives. Maybe, the alt text stays the same all the time or maybe the position in the page is the same so that the index is also the same _IELinkClickByIndex. Or maybe the text is partially the same, or maybe even the url is somewhat the same. Once you know what the link has in common each time you can automate it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×