AutoHotkey Community

It is currently May 27th, 2012, 11:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: May 11th, 2010, 4:29 pm 
Offline

Joined: January 23rd, 2008, 6:38 pm
Posts: 162
I have an AHK script with an embedded browser. I've overwritten minimize to move the window way off screen. I'm wondering if it's possible, inside my script, to get a screen capture of what is currently showing in the embedded browser, and then do some pixel searches on what it finds.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2010, 6:02 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Display.ahk: http://www.autohotkey.com/forum/viewtopic.php?t=24900
RegionGetColor: http://www.autohotkey.com/forum/viewtopic.php?t=36394

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2010, 6:26 pm 
Offline

Joined: January 23rd, 2008, 6:38 pm
Posts: 162
Excellent, so i use display.ahk to get the image and then regiongetcolor to do the pixel searches?

Does display work on an image that's offscreen? Do I need to do anything special to be sure that the windows is updated?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2010, 6:27 pm 
did u try before asking?
if yes, post ur non-working script


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2010, 6:27 pm 
Offline

Joined: January 23rd, 2008, 6:38 pm
Posts: 162
I haven't tried yet, just asking based on my reading of forums before this.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2010, 7:23 pm 
Offline

Joined: January 23rd, 2008, 6:38 pm
Posts: 162
it worked, very excellent. thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2010, 8:27 pm 
Offline

Joined: January 23rd, 2008, 6:38 pm
Posts: 162
It works, until I give the gui a +toolWindow (when I "minimize" it i move it off screen and use +toolWindow to hide the taskbar). Any ideas on how to make it work in this case?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2010, 8:39 pm 
Code:
WinGet, id, ID

u might want to use process id, as there should be no title when u use toolwindows


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2010, 8:50 pm 
Offline

Joined: January 23rd, 2008, 6:38 pm
Posts: 162
It's the window of my script. I don't think that the issue is that it isn't getting the win id, but rather that it isn't getting the windows image.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], MSN [Bot], Yahoo [Bot] and 21 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group