Web Cam XY Coords Of Dot
Jul 22, 2010
I'm working on a project for personal use. I have a web Cam where I took out the lens and replaced it with Blue and Red Cellophane, to filter out light.
The web cam is fed into VB and an infrared (IR) light is shined into the web cam from different positions.
This produces a Black image with a bright white dot moving around.I would like to know if there is a way to get the Dots coordinates (or any other way to measure relative movement from the first dot).[code...]
Would it be viable to take snapshot of webcam's video and search with this engine? (I assume testing is the only way which I am about to try...)
View 1 Replies
Dec 20, 2010
I want to show a ContextMenuStrip beneath a MenuStrip item when that item is clicked. Stuff in the ContextMenuStrip changes dynamically. The ContextMenuStrip is used in a DataGridView. I don't want to duplicate the same items in the MenuStrip.
I can get the mouse coordinates OK, but I don't want that. I want to use the ContextMenuStrip show method referenced to a control. An item in the MenuStrip is not a control, but the entire MenuStrip is a control. If I can get the x-y position of the item in the MenuStrip I can show the ContextMenuStrip in the right place, and it will look just as if it was part of the MenuStrip. how to obtain the location of the MenuStrip item that's active.
View 1 Replies
Sep 20, 2010
I am working with a PictureBox and trying to click on the picture and OnClick i want to capture XY coord from the cursor.
I am using the following code
Private Sub PictureBox1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseClick
Dim X As Long
[Code]....
The issue i have is that no matter where i click on the picturebox it returns a 0 for both the X and Y coordinates.
I read something somewhere about seting the Scale to Pixel but that doesnt seem to be working for me.
View 2 Replies
Jan 5, 2010
i dont know how to do this.i need to create a macro to use on microsoft excel to calculate the area of any polygon. my problem is similar to this one: [URL]..but de vb code is not working for me.in attach i send the excel page.i also have to calculate the coordenates of the "center of mass", Cx and Cy using diferents functions.
View 1 Replies
Sep 18, 2011
I have a vary big picture with a map on it but the picture is 4110, 4110 X Y. Any way to jump to an x y coords on the picture its all in a panel control.
View 7 Replies
Feb 10, 2011
I am trying to make a program so that u can click a button to save multiple spots on the screen of the x/y coords of the mouse and then after you choose them there will be a hotkey u can press that will automatically click on each of the x/y coords that were chosen earlier. I am not really good at this stuff but if someone could help me out that would be really awesome! =D
View 1 Replies
May 5, 2009
So now I'm working on the map editor for my game. The map itself displays 32x32 pixels out from the upper and left bounds of the form. Each tile is also 32x32. So then i have two labels which display the corresponding coordinates divided by 32, this way it would show you x: 7, Y: 8, or whatever. The issue is that the map will be like 15x10, and when moving the mouse to the 15th row/column, it shows 15, but then moving to the 14th row, still shows 15. The rest of it works fine. Here is the code.
Private Sub FrmDesign_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
If e.X < (subZone.Width * 32) + 32 And e.X > ((subZone.Width * 32) -
[Code]....
View 3 Replies
Jul 7, 2011
i'm using Visual Basic 2008, and my question is following: Is here a way to make vb2008 app click on specific window with coordinates? for example i want to click on my notepad window ( for example on next coords: 20;150 )
View 1 Replies
Oct 18, 2011
Basically I want to move my mouse to the coords that is received based on the location of a certain coloured pixel. I can get the coords of the pixel but when using them on mouse position, the mouse position is based on the entire screen rather than the form. How could I change the position coords based on the form rather than the entire screen. E.G. If a certain coloured pixel is 2,2 in a form and I put that as the mouse position, it would go outside the form but I dont want that. I want it to hover of the pixel coords
This is my
Dim bmp As Bitmap = DirectCast(PictureBox1.Image, Bitmap)
For x As Integer = 0 To bmp.Width - 1
For y As Integer = 0 To bmp.Height - 1
If bmp.GetPixel(x, y) = (Color.FromArgb(108, 90, 60)) Then
Windows.Forms.Cursor.Position =
End If
Next
Next
View 2 Replies