How can I capture and take screenshots of all the browser tabs and not only windows ?

This class identifies all minimized windows and take a snapshot (screenshot) of them. I want to take screenshots also of all the broswer for example chrome tabs windows that are open but not in the front. Same idea that it get now the minimized windows but
to get the screenshots of the broswer opened tabs ! What should I change in the WindowSnap class? Since both classes are a bit long I added them to pastebin.com
What i'm doing now is to get all the minimized windows i mean all the the windows in the back if it's chrome browser windows or open tabs if it's program games other windows. This is what i'm doing in form1 constructor:
this.listBoxSnap.Items.AddRange(WindowSnap.GetAllWindows(true, true).ToArray());
int numitems = this.listBoxSnap.Items.Count;
for (int i = listBoxSnap.Items.Count - 1; i >= 0; i--)
string tt = listBoxSnap.Items[i].ToString();
if (tt.Contains(" ,"))
listBoxSnap.Items.RemoveAt(i);
listBoxSnap is just a regular listBox1 in my form1 designer.
And this is the WindowSnap class code, it's a bit long code but it's all connected:
I'm not sure what to show here from this class what is the most important part so i added all the class code to a link to pastebin.com:
WindowSnap.cs
What i'm calling/using in form1 constructor from this WindowSnap.cs class is the GetAllWaindows method:
public static WindowSnapCollection GetAllWindows(bool minimized, bool specialCapturring)
windowSnaps = new WindowSnapCollection();
countMinimizedWindows = minimized;//set minimized flag capture
useSpecialCapturing = specialCapturring;//set specialcapturing flag
EnumWindowsCallbackHandler callback = new EnumWindowsCallbackHandler(EnumWindowsCallback);
EnumWindows(callback, IntPtr.Zero);
return new WindowSnapCollection(windowSnaps.ToArray(), true);
EnumWindowsCallBackHandler is:
private delegate bool EnumWindowsCallbackHandler(IntPtr hWnd, IntPtr lParam);
EnumWindows is:
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
private static extern bool EnumWindows(EnumWindowsCallbackHandler lpEnumFunc, IntPtr lParam);
Then i have the class called WindowSnapCollection:
WindowSnapCollection.cs
The problem is in form1 constructor i'm getting only 23-24 windows in the listBox1. When i'm doing this two lines:
this.listBoxSnap.Items.AddRange(WindowSnap.GetAllWindows(true, true).ToArray());
int numitems = this.listBoxSnap.Items.Count;
I see in numitems about 30 windows and after filtering i'm getting 20 windows and i checked that's the correct number of opened minmizied windows i have in this example 20.
Now what i want to do is somehow to get with all this windows in the listBox also all the opened tabs in chrome.
For exmaple i have only 4 opened chrome windows. But in one of the chrome windows i have almost 40 tabs opened !
I want somehow to add to the listBox all this opened tabs also as captured screenshots like i'm doing now with the windows.
This is a screenshot of my program showing what i'm doing and what i get:
So now i have 19 windows captured in the next refresh it will show 20.
My question is if there is any way to capture also all the chrome opened tabs in all the windows if any opened tabs are opened at all ? Now i'm getting only the chrome opened windows captured screenshot. But i want to get also the chrome tabs captured screenshots.

Hi Chocolade1972,
Since this forum is discussing about Windows Forms general like winform controls, and your issue is related with Windows Desktop SDK, I will move this thread to the more related forum.
Thanks for your understanding.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.

Similar Messages

  • I just bought macbook pro with 10.8.3 os. When i start the system, all applications automatically start up as well! How can I turn them off. I checked the user settings and no application is set tom open automatically!

    I just bought macbook pro with 10.8.3 os. When i start the system, all applications automatically start up as well! How can I turn them off. I checked the user settings and no application is set tom open automatically!

    You have 14 days to return the computer w/no questions asked.  Plus you have 90 days of FREE phone tech support on top of your standard 1 year warranty unless you also purchased AppleCare which gives you an additional 2 years of coverage plus FREE phone support.
    Strongly suggest that you take FULL advantage of the above before it runs out.  Let Apple deal w/the problems.

  • My laptop had a virus and I am trying to sync my IPHONE 4 to my desktop, how can I sync my phone without losing all my music, apps and contacts?

    my laptop had a virus and I am trying to sync my IPHONE 4 to my desktop, how can I sync my phone without losing all my music, apps and contacts?

    You are talking about the menu bar of Itunes, right?
    Yes. With iTunes open the menu bar is at the top of your screen.
    where exactly is the Store/synck you iphone option?
    After you authorize the computer connect your iPhone then follow the instructions here > iOS: How to transfer or sync content to your computer
    When you are done transferring the data to the desktop, right or control click the iPhone under Devices left side of the iTunes window then click Back Up.
    That way you will have a backup just in case you need to restore your iPhone.

  • I have an iMac running OS 10.4.11. How can I check to see if I have the Flashback Trojan (and remove it, if I have it)? IMy Safari is also crashing frequently. Any suggestions?

    I have an iMac running OS 10.4.11. How can I check to see if I have the Flashback Trojan (and remove it, if I have it)? IMy Safari is also crashing frequently. Any suggestions?

    Hi Barry, is this an Intel iMac, or a PPC iMac?
    Disable Java in your Browser settings, not JavaScript.
    http://support.apple.com/kb/HT5241?viewlocale=en_US
    http://support.google.com/chrome/bin/answer.py?hl=en-GB&answer=142064
    http://support.mozilla.org/en-US/kb/How%20to%20turn%20off%20Java%20applets
    Flashback - Detect and remove the uprising Mac OS X Trojan...
    http://www.mac-and-i.net/2012/04/flashback-detect-and-remove-uprising.html
    In order to avoid detection, the installer will first look for the presence of some antivirus tools and other utilities that might be present on a power user's system, which according to F-Secure include the following:
    /Library/Little Snitch
    /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
    /Applications/VirusBarrier X6.app
    /Applications/iAntiVirus/iAntiVirus.app
    /Applications/avast!.app
    /Applications/ClamXav.app
    /Applications/HTTPScoop.app
    /Applications/Packet Peeper.app
    If these tools are found, then the malware deletes itself in an attempt to prevent detection by those who have the means and capability to do so. Many malware programs use this behavior, as was seen in others such as the Tsunami malware bot.
    http://reviews.cnet.com/8301-13727_7-57410096-263/how-to-remove-the-flashback-ma lware-from-os-x/
    http://x704.net/bbs/viewtopic.php?f=8&t=5844&p=70660#p70660
    The most current flashback removal instructions are F-Secure's Trojan-Downloader:OSX/Flashback.K.
    https://www.securelist.com/en/blog/208193454/Flashfake_Removal_Tool_and_online_c hecking_site
    More bad news...
    https://www.securelist.com/en/blog/208193467/SabPub_Mac_OS_X_Backdoor_Java_Explo its_Targeted_Attacks_and_Possible_APT_link
    Removal for 10.5...
    http://support.apple.com/kb/DL1534

  • How can I make a button that on press the object appears and on second press the object to disappear

    Hello,
    I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:
    on (press)
        _root.top1.gotoAndStop(2);
        _root.topp.gotoAndStop(2);
        _root.mm1.gotoAndStop(2);
              _root.m1.gotoAndStop(2);
    but from here I'm stuck.
    Thank you for your help

    What you can do is use the _visible property of the object to make it appear and disappear, or more correctly, use the opoosite of the _visible property.  You should not put code "on" objects, keep it in the timeline.
    If "object" is the instance name of the object you want to toggle, then in the timeline code you can use...
    object._visible = false;  // start with the object being invisible
    yourButtonName.onRelease = function(){
        object._visible = !object._visible;
    That one line in the function sets the object's _visible property to be the opposite of what it currently is.

  • HT1420 I just bought my cousin's ipod, and I want to update it on my computer.  However, it needs authorization from his account to keep all the apps, and he's already authorized it on 5 computers.  How can I update this ipod without losing all the apps?

    I just bought my cousin's ipod, and I want to update it on my computer.  However, it needs authorization from his account to keep all the apps, and he's already authorized it on 5 computers.  How can I update this ipod without losing all the apps?

    You cannot use someone else's apps without violating the license agreement. The apps are tied to the owner (via Apple ID). The right thing to do would be to update and start fresh.

  • How can I buy a song but always asked the security questions and you don't remember them what should I do

    How can I buy a song but always asked the security questions and you don't remember them what should I do

    Write down your security questions.......
    Here is what you should do if you do not remember the answers to your Apple ID security questions:
    Try answering them at least once to see if you can get them right, even if you are not sure you remember the answers to your security questions.
    If you are confident you can't remember them, try one of the following:
    If you have three security questions and a rescue email addresssign in to My Apple ID and select the Password and Security tab to send an email to your rescue email address to reset your security questions and answers. 
    If you have one security question and you know your Apple ID passwordsign in to My Apple ID and select the Password and Security tab to reset your security question.
    If you have one security question, but don't remember your Apple ID passwordcontact Apple Support for assistance. Learn more about creating a temporary support PIN to help Apple confirm your identity when you contact Apple Support.
    Note: If you have forgotten your password and answer your security questions incorrectly too many times in a row, you will be unable to try to answer your security questions for a period of time. During that time you will not be able to reset your password and will not have access to your account.
    Cheers,
              Alec

  • How can i make apple tv 3 store all my purchased movies and tv shows onto a hard drive somewhere in my house

    Currently my apple tv 3 downloads movies/shows when I want to watch them.  I'd prefer if it downloaded everything already and it is all available locally without having to download gigabytes from the internet.
    Q: How can i make apple tv 3 store all my purchased movies and tv shows onto a hard drive somewhere in my house?
    a) Impossible
    b) Link my apple tv 3 to a computer running itunes
    c) Link my apple tv 3 to my Apple Time Machine
    d) purchase an external USB drive and plug it directly to the apple tv 3
    e) purchase a NAS drive and configure the apple tv 3 to use it
    f) [your answer here]
    Thank you,
    Chris

    Hi! Dwagner, once again ...
    I've just got my Mac last friday ... i'm still getting amazed with this new world to me ... eehe .. quite different ... but
    ... "i can do it, i can do it" eheeh
    i'm in that period that a new question appears at almost every mouse click ... lol
    so ... can you help me (once again) ..
    you said you had your hard drive with this settings...
    "You can partition for OSX (extended Journal) - read/write by only OSX or read only by Windows via BootCamp
    You can partition for Windows (NTFS) - readable by only Windows
    OR - you can format with ex-FAT and this is read/write capable for both operating systems."
    how did you formated the partition in NTFS ? ... on the mac? using the "disk utility" ? or did you use another program to do so ...?
    i hope i'm not "bugging" you ... this might be a silly question for most of people ... but right now ... it's a major question for me ... ehehe
    once again Obrigado (Thank You)
    Rui from Portugal

  • How can I easily create a playlist contain all the songs on my iPhone

    How can I easily create a playlist containing all the songs on my phone? I have iOS 7.1.1. on the iPhone. Older versons of iOS had a one button operations to add all songs. iOS 7 does not seem to have this one button operation, which requires me to add songs individually. Considering I have over 1500 songs on my iPhone this takes a long to to do.

    It has always been very basic to always maintain a backup copy of your computer for this very occasion.  Use your backup copy of your computer to put everything on the new one.
    If for some reason you have failed to backup, big mistake, then you can transfer itunes purchases from the iphone to the computer:  File>Transfer Purchases
    You may be able to buy a 3rd party program to get any other music off of the iphone ( not supported by Apple).
    When you sync the iphone, it will erase the current content and replace with content form the new computer.
    "Not happy with itunes right now, more then a bit of a joke"
    Not itunes fault that you did not do the very basics and maintain a backup copy.

  • How can I just disable "navigation toolbar" completely for the App Tabs? I don't want to disable this for other normal tabs.

    How can I just disable "navigation toolbar" completely for the App Tabs? I don't want to disable this for other normal tabs. This is important as otherwise while I am in the app tab, i mistakenly start browsing from that tab and meaning of the app tab is completely lost...

    How can I view my full billing history for the app and music stores without iTunes installed?
    No.
    If my account has been compromised
    If you even think this may have happened, immediately change your password.
    See this -> Apple ID: Changing your password

  • Everytime I try to update to iOS5 on my iPhone 4 I get an error containing 0xE while it is trying to backup data from the iPhone.  I have done everything suggested in Apple support.  How can I upgrade to iOS5 without losing all the data on my phone?

    Everytime I try to update to iOS5 on my iPhone 4 I get an error containing 0xE while it is backing up data from the iPhone before installing the new operating system.  I have done everything suggested in Apple support with no success.  I still get the error everytime (about 5 minutes into backing up iPhone data).  How can I upgrade to iOS5 without losing all the data on my iPhone (the error message says that if I continue I will lose all data on the phone)?  If I have already synced the phone before upgrading the OS, would I be able to restore my data after installing the new OS by syncing after the OS upgrade is complete?  Any help would be greatly appreciated. 

    I had the same problem today and was able to resolve it without having to do a restore or reset. The problem had something to do with my mail accounts. The upgrade reset my mail settings, switching both my gmail and my .mac mail to "archive all mail". I went into the General Settings, disabled that setting, and resynced the phone. The "other" storage allottment dropped back down to less than a gig.
    Before you restore or reset, I would try that first.

  • HT5622 If I have two emails for my iMessage how can I see or receive my msj or the email that is not the primary email

    If I have two emails for my iMessage how can I see or receive my msj or the email that is not the primary email

    It's basically ment for iMessage and FaceTime. I might be wrong but this can only be done between two Apple products that allow this function. You won't receive an email if I sent you an iMessage to a secondary email you use for iMessages. You would only receive a text message. Now if someone using a PC sent an email to the secondary email you use you will receive an email not a text message. The secondary email is used basically if you do not have a data plan and you're connected to wifi you can still send iMessages using those emails you provided.

  • How can you search this forum without searching all the other forums

    how can you search this forum without searching all the other forums at the same time which is a big fat waste of time.

    Follow this tip to create a bookmark to a search page that searches only the forum you want or...
    Browse with Firefox and enable this Greasemonkey script, which forces all searches from a sub-forum to be local.

  • My one year old macbook pro is full.  :  (   How can I see what's taking up all the GB?

    My one year old macbook pro is full already.  :  (   How can I see what's taking up all the space?  I cannot download anymore pictures.  It's running slower than usual.

    OmniDiskSweeper (free) - http://www.omnigroup.com/applications/omnidisksweeper/download/
    Archive files onto other media until your hard drive has at least 10% of its total size free, or at least 15+ GB at all times.

  • HT4623 How can u set up your iphone when all the files are deleted?

    How can I set up my iphone if all the files are deleted?

    What files are deleted?
    Please explain

Maybe you are looking for

  • Canon MF4400w Printer - "Filter" failed error. Can't scan either.

    Hi, I work in a wholly Mac environment. We have around 10 plus Macs in the office, most of them running 10.8.3 (the latest I believe). All Macs are able to print to our Canon MF4400w Printer fine EXCEPT mine. I've had a Canon technician come by. We'v

  • How to display long text in SAP Query ALV layout? It only show 129 char now

    I have a SAP Query which show a remark field(Max length more than 500 char), but it only show max length 129 char now. In fact, the lenght of remark field text is more than 300, and i had debug the source code, the field text value do is correct, its

  • Intel Xserves Crash only on weekends

    We have 10 Intel XServes that we received in early December. For some reason anywhere between 2-6 of the 10 crash and become unresponsive, only on the weekends, usually Saturdays. Very odd. I've been checking them every weekend since we've purchased

  • Solaris 10 x86 USB/Firewire Installation

    Hello, I tried to install Solaris 10 x86 01/06 edition on an external hard disk. The connection is via USB in one case and via Firewire in the other case. In both cases, when the installation devices appear for selection and partitioning, the externa

  • Dynamic pricer ads in Mac Osx

    Hi I am using Mac OSx 10.9.4 and safari 7.0.5.  I am getting dynamic pricer ads whenever i open any website. How do i get rid of them?Please help me out with this problem .