Prevent window from being captured - vb.net

I'm solving this problem so long an i can't find solution.
I would like to capture a screen but i want to exclude a specific window.
Like capture whole screen but remove an window from it.
Or what i have to set to notepad like styles or something to being captured ?
Thanks

Regarding screen capture, you could hide window/capture/show window using windows api calls. Second question I did not understand.

Related

Removing tabs in tabcontrol and using designated buttons to switch between tabs

I'm currently working on an application for Windows, however, I have one small problem: I can't seem to figure this one out...
Is there a way to remove the tab headers from tab control and designate other buttons to switch between tabs? I'm going for a more modern look and the default tabs in tab control are not at all what I'm interested in.
thanks for your answers on this question!
I've just thought of a different method to keep the clean look of my program without having to get too complicated with code.
For anyone wondering about this, you could set different buttons to hide and show different things, for example:
Under homeBtn you could have code that shows the information shown on the page by default, yet at the same time, you could also hide any information from the previous tab.
Thanks, Laugh
You can easily add buttons setting the property SelectedIndex on the tab control to switch the pages. To hide the tab headers, there are some ideas over here.

Can I detect if a (node-webkit) window is visible?

I would like the user to be able to click on the system tray icon to hide a window if it is visible, or show it if it isn't. However I can't see way to detect the show/hide state of the window.
I looked here but couldn't see anything that would give me what I need. The only way seems to be to keep track of if my last call was to show() or to hide(). Is there a better way?
I've needed this myself just recently, but as far as I know the best (only?) way is to set a boolean (e.g. var showing = true;) and then on every change (including the minimize and restore events) set the boolean to the correct value. Then you could simply make an if statement when clicking on the tray icon to see if the window is showing, and if it is hide the window, otherwise show it.
Hope I helped you a bit, I'm still looking for a better way myself but this is all I have found so far.

How to simulate mouse clicks?

I was wondering how to create a sort of auto clicker using VB.NET.
I would basicly have the click coordinates pre-defined and the clicks, which would have to be separated by delays I guess since I want more than one to happen periodically, would happen outside of the application window (I read this envolves extra system hooks?).
The only code I have been able to find is related to clicks on the application window, which is not what I am looking for.
In short: I want to click a button on the app window, which would initiate a number of clicks on certain pre-defined screen coordinates.
Thanks in advance :)
See this discussion on social.msdn: Simulate a mouse click in a program.
Uses winapi: SetCursorPos, GetCursorPos and mouse_event.
I believe you need to P/Invoke into Windows to accomplish this.
Have a look at the SendInput function.
If you are using automate the program,that program have some tabindex in order to relevant control.then you can use;
SendKeys.Send("{TAB}");
SendKeys.Send("{ENTER}");
it is more accurate on desktop application

Detect screen capture in vb.net

Is there a way to detect screen capture or recording is processing.
Atleast a way to know the process behind screen capturing?
i guess something has to be done with Kernal side of the system but not sure.
Thanks in advance..
You could look at using something like Deviare. I haven't used it personally, but it does let you hook some of the win32 APIs including GDI32, which is probably what you would have to use.
You could capture a [print scrn] button press from the keyboard, but there are so many different ways to record video and capture screens, you couldn't possibly create a solution to scan all the different types of applications that can capture this information.

Display message box while closing the window by using closing option (X) of the window

Can anyone help me how to display message/alert box when user clicks Close option (X) of the window in flex ?
Like in html we can handle it by using,
window.onbeforeunload = function(){return "Are you sure you want to Exit";}
Is there anything in Flex similar to "window.onbeforeunload" of HTML which can handle Close option (X) of the window ?
If not, can anyone help me to handle this with sample code.?
In my mxml i have not used any kind of , etc.
My flex screen is opened from a jsp page through a hyper link and i dont want to use any window related tags. It is normal screen with min, max and close option.
Thanks,
Anand.
Use ExternalInterface.addCallback and from JavaScript call the AS function you want to run on close.
However I do not think you can block the browser from closing this way as it would be a security hole.
Another thing to note here is that the code in the function should run fast or you may risk not having it all done before the browser closes.
All clients work should be done before close so a method like this wouldn't be needed.
A more appropriate method would be to create some kind of session for the user and store the data server side as the client works.
Unless of course your are just trying to make some kind of hack app.