Add The Mouse When Capturing The Screen Or Monitor?
Jul 18, 2012
I'm just wondering if it's possible to add the mouse when capturing the screen or monitor in vb.net?
because I'm doing a project that would record the screen and I'm actually successfull doing that by capturing the screen and include it in a timer, but my only problem is the mouse or the cursor isn't showing.
below is my sample code.
Dim ScreenSize As Size = New Size(TotalScreenWitdh, MonitorHeightArray(0))
Dim BMP As New Bitmap(TotalScreenWitdh, MonitorHeightArray(0))
[Code].....
View 5 Replies
ADVERTISEMENT
Nov 28, 2011
I want to disable the funtionality of using a mouse when using a touch screen monitor in vb.net. the reason why i ask is because i want to limit users to only one option. is there a way I can code this in vb.net 2010.
View 2 Replies
Sep 3, 2005
how I can detect the mousedown,mouseup etc even outside my application using vb.net? I have an API here,but,doesnt seem to work the way I expect it to..
VB
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
[Code]....
Should that API be modified to be used or something?? or what should I do to capture the mouse click events..both left and right buttons...
View 13 Replies
Oct 19, 2006
I am trying to make a simple personal program and cannot figure out how to capture a section of the screen.I want it to work like prt scr does except it captures a specified rectangle instead of the entire screen. I am thinking I have to use Drawing.Graphics but am not sure.
View 11 Replies
Nov 18, 2011
i use with this code: Dim bounds As Rectangle
Dim screenshot As System.Drawing.Bitmap Dim graph As Graphics bounds = Screen.PrimaryScreen.Bounds
screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
graph = Graphics.FromImage(screenshot)
graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
PictureBox1.Image = screenshot
But when I try it in games,it shows only a black picture.
View 4 Replies
Sep 23, 2010
I'm working a program where I need to capture the mouse down even at the form level. I need this to happen regardless of where the mouse is clicked. The standard mouse event (see below) works fine if the mouse isn't over a control. However, when the mouse is over a control, the control gets the event before the form. I can generate an event to capture the mouse event for every control and the pass the event on, but that is ugly and requires way to much maintenance. Isn't there a way to tell vb that all mouse events go to the form?
Private
Sub
Form1_MouseDown(ByVal
[Code]......
View 5 Replies
Dec 20, 2009
I have a NotifyIcon (named TrayIcon). When I right-click it I get a menu. When I left-click it I want the form to be shown when it's minimized or hidden. But I can't find a way to get the latter done.
Private Sub TrayIcon_MouseClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles TrayIcon.MouseClick
If e.Equals(MouseButtons.Left) Then
Me.Show()
End If
End Sub
When I debug, "e" shows "almost" same value ({X = 0 Y = 0 Button = Left{1048576}}) as"MouseButtons.Left" (Left{104875}) in the quick-watch window, still the Me.show is passed. I think this has to do with the X and Y, and "MouseButtos.Left" is of the type "System.Windows.Forms.MouseButtons" and "e" is of the type "System.EventArgs", but I have no idea how to get the right comparison.It's partially working though. When I leave out the if statement and only the Me.Show() is left, both right and left-click make the form pop-up. With the if statement, it never shows up.
View 10 Replies
May 20, 2012
I'm looking to make a program that would capture your whole screen, then have the picture display on the screen (simulating a frozen screen) to where the person handling the program could select a partial segment of the screen with their mouse and then save to a folder.
1. I have no idea how to go by doing this
2. My form is constantly minimized, so I have to do it without MouseDown on the form and whatnot.
How would I go by doing this?
View 2 Replies
Feb 29, 2012
I'm trying to get coordinates on my screen by holding down my mouse and placing it over different parts of the screen. I'm using the mouse_up and down events in a button to kinda simulate the mouse being held down. The problem I'm running into is that anytime I go past the button's bounds, the coordinates I want stop. This is what I have so far:
[Code]...
View 2 Replies
Mar 9, 2010
Hi.. Im using an application to capture selected part of screen by resizing the form and capturing area of it!! now i want to reset the form once my work id done!! i mean if i press a "RESET" button the form should be load as first time it was loaded.(the real form size..)
View 1 Replies
May 15, 2009
I would like to get the screen dimensions so I can programatically change the size of a form upto these values. I'm new to .Net and things are little different then they used to be in earlier version of VB. How do I do it?
View 3 Replies
Apr 21, 2009
I'm trying to create a hook to monitor the current position of the mouse cursor. Nothing important, I just need to count some pixels during interface design and wanted to learn how to create a hook, so I decided to go for a hard way instead of a sane way.
I've found example code which declares the following function:
<DllImport("User32.dll", CharSet:=CharSet.Auto, _
CallingConvention:=CallingConvention.StdCall)> _
Public Overloads Shared Function SetWindowsHookEx _
[Code].....
But Appdomain.GetCurrentThreadID generates the warning: "'Public Shared Function GetCurrentThreadId() As Integer' is obsolete: 'AppDomain.GetCurrentThreadId has been deprecated because it does not provide a stable Id when managed threads are running on fibers (aka lightweight threads). To get a stable identifier for a managed thread, use the ManagedThreadId property on Thread."
I've tried using ManagedThreadID, but that doesn't work. The thread ID returned seems to be the logical thread ID of the thread, as it runs in the .net runtime, rather than the Win32 thread identifier.
Calling the function ith AppDomain.GetCurrentThreadID works, but I really would like to have a "stable identifier" for my thread.
Can someone explain to me whether it is possible to use ManagedThreadID in this context (I assume not) and, if not, the things I need to avoid in order to stop the AppDomain.CurrentThreadID from becoming "unstable"?
View 3 Replies
Mar 18, 2009
I have some code that takes a screen capture of my monitor. This code seems to work perfectly OK and can take multiple screen captures, apart from when I do a Print Screen using the keyboard or open SnagIT 8, when I then try to run my code again I get an error "A generic error occured in GDI+"
I am at a bit of a loss, I have had a look on the internet, but everything I seem to find appears to be related to web apps. and access permissions. This is a window based application and therefore can not seem to find an answer.Below is the code I am running:
[Code]...
View 1 Replies
Oct 22, 2010
I would like to know the exact location of the mouse by pixels.How do I detect and write the X,Y pixels?I like to do have two sets of numbers.Firs set is for the application and second set for location in the monitor.The existing monitor is 1280x1024. (I hope the code is not monitor specific.)
View 1 Replies
Nov 29, 2011
I designed a form which contains about 50 objects all kinds including tableadapters,buttions,grids, tabs. What is the best way to optimize the loading with less time consuming. I cannot split objects in on different form as all the objects has to appear on screen as a requirement.
But my primary question here is, i designed this form with all these objects on a 15" monitor which fitted 100% on the screen. Now i am using 17" monitor when i open this form on run time, all the objects are appearing as designed but theres a 30% form area which is left blank. How can i make the form objects resize automatically on run time itself to fit on different size of monitor with no area left blank.
View 2 Replies
Apr 5, 2012
I'm designing a player application to accompany our phone system. As our calltakers take calls, it makes recordings of each call. They can go to a list module, find a recording and double click, which opens my player. The issue i have is that if the calltaker gets another call, my player doesn't know it and will continue playing. I'm looking for a way to monitor the screen in a particular area and when it sees yellow or red instead of blue, it will pause my player.
The phone system does not have any API's that I can hook onto, so I have to try it another way.
The screen resolution never changes and the queue buttons where they receive calls will always be static. When they get a call, a small area changes from the background color blue to yellow or red to indicate a call.
**EDIT Final Code based on answers below and question Memory Leak using GetPixel/GetDC in Visual Basic
Private Function CheckforCall()
Dim hDC As IntPtr = GetDC(0)
Try
[Code].....
View 2 Replies
Dec 15, 2010
I got this monitor that can turn 90 degrees & another program will rotate the display when it detects it has been rotated, I have a few questions though.
1.How can I detect when the monitor has been rotated (the monitor is hooked up via vga & no other cable goes to PC so I am guessing the message is sent across the vga cable).
2.How can I make it actually rotate the screen when the message is detected that the screen has been rotated?
I would download the other software but it's just some bulky & slow software for a small thing, windows has the ability for rotation built in, just not the auto rotation feature like the program, I just need to detect the message & make windows rotate the screen.
View 1 Replies
Nov 29, 2011
I am working on a vb.net app that is capturing a screen shot then crops down to the "status bar" of a particular application this image is then converted to black and white. I crop off the left portion of this to compare to a preset image. this is where the app breaks as for some reason it shows the images being the same no matter what. here is where i think the problem is but i also attached full source in case its needed
[code]...
View 5 Replies
Nov 19, 2010
I am creating an application for a company and this CD will be distributed to hundreds of people. Many users will have different computer screen size and different screen settings such as their resolution set to 1024 x 728 and their monitor size 17" inches.
I noticed when I loaded the application on a different computer with different settings the application was to big for the screen and did not work. I notice that lot of other programs from microsoft resize their controls and text but never knew how they did it. How can I resize the form and control according to the user's setting.
View 6 Replies
Jul 8, 2011
What code do you use for the mouse to click somewhere on the screen?
View 1 Replies
Jul 16, 2010
I have to know how to set system resolution of all tools in forms, which i using for my application.
I attached two screen shots. When i work my application with my system, form window and their tools placed correctly with my monitor fit(15 inch monitor).
But when i work my application in 21 inch monitor, all tools re arranged and
not in format. post me the code to set resolution as per system??
View 2 Replies
Sep 22, 2009
A simple example is: lets say that im trying to make a program that allows you to move the mouse only with the arrows (left/right/up/down) how can i change the position of the mouse on the screen programmatically? If i wanted when you press a button the mouse to change position to X=0,Y=0 of the hole screen/desktop not the window of the form how can i do it? [Code]
View 5 Replies
Aug 30, 2010
Normally the event: PanelTransparentMarquee_MouseUp is only raised when the mouse is within the PanelTransparentMarquee panel. I'd like it raised where ever the mouse is on the screen.So in the load event for the usercontraol containing
PanelTransparentMarquee panel I inserted
PanelTransparentMarquee.Capture =
True
But I still only get the PanelTransparentMarquee_MouseUp event when the mouse is within the PanelTransparentMarquee panel.
View 1 Replies
May 29, 2009
I thought of something quite cool i would like to try. Would it be possible to revert the mouse and the screen, so when you mouse your mouse up, the arrow stays still but the desktop moves towards it.
View 1 Replies
Dec 29, 2009
in VB.NET. how do i make a mouse click somewhere on the screen?
View 4 Replies
Feb 12, 2010
how can i add the cursor to my screen capt program
Public Class Form1
Dim bounds As Rectangle
Dim screenshot As System.Drawing.Bitmap
[Code].....
View 1 Replies
Mar 4, 2010
If i place my mouse at the top of my screen , anywhere on top, i want my program to show. how would i do this?
View 4 Replies
Aug 1, 2010
Any one know an alternative way to draw the screen to a bitmap without using the copy screen function.Trying to avoid locking up the mouse pointer.
View 3 Replies
Oct 27, 2011
How to make program to detect mouse click and run vb script for action?
View 4 Replies
Apr 6, 2006
How to disable the right click of mouse? Please provide codes. How to disablethe Print Screen Key so that user cannot use it? Please provide codes. Applicable to both windows and web applicatuions.
View 9 Replies