Monitor An Area Of The Screen For A Certain Color In Visual Basic?

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


ADVERTISEMENT

Local Area Connections And Changing IP Addresses Using Visual Basic?

Jun 27, 2012

I need to be able t view the current local area connections and then click the one you want to change and then change the internal ipaddress as well as gateway and subnet mask using visual basic.

View 1 Replies

No Screen Updates While Processing In Visual Basic?

Jul 25, 2009

I am using Visual Basic 2008 to create some databases. It reads data from textfiles and puts them in SQL databases. After the user presses the Process button I would like to give the user to get some feedback of the process simply by for example label1.text += "Processing File 2".But during the process no Screen Updates are made...only after all databases are processed and VB.net is waiting for new user response it updates my label1.text

View 4 Replies

Settings In Visual Basic 2010 On Back Color?

Apr 12, 2011

When I go to settings in my application/Program and on the form I have a ColorDialog1 want to to save the back color from the ColorDialog1 That I have chosen. And in my settings I have (Name: BackColor, Type: System.Drawing.Color, Scope: User)

the code on the form I Have is...

ColorDialog1.ShowDialog()
Me.BackColor = ColorDialog1.Color
My.Settings.BackColor = ColorDialog1.Color

View 9 Replies

Disable Print Screen Button In Visual Basic 2008

Dec 31, 2010

Please tell me how can i disable print screen in Visual Basic 2008.

View 13 Replies

IDE :: VISUAL BASIC 2008 - Hide Program Form (alt+tab) Screen?

Sep 12, 2009

i'm designing a program ........ i just wanted to know how to hide my program form (alt+tab) screen .........and how to hide my program from (task manager)..... and also how can i delete my program after its "FIRST OPEN" and after that it copies itself to the desktop folder.

View 8 Replies

Position Form At The Bottom Right Corner Of The Screen In Visual Basic?

Dec 4, 2009

How can I position a form at the bottom right corner of the screen when the form load?

I use visual basic 2010 express

here;

Dim x As Integer
Dim y As Integer
x = Screen.PrimaryScreen.WorkingArea.Width - 400

[Code]....

View 3 Replies

Set The Viewable Area To A Smaller Screen Area?

Jun 11, 2012

Trying to set the viewable area to a smaller screen area and have it cycle through as the person moves using collision detection to move the backgroudn image. Here is the start but its off to a bad start so far.

Public Class Form1
Dim Mapx As Integer = 600
Dim Mapy As Integer = 2000

[code]....

Basically the forum size is set to 600x2000 but the client should only allow you to view 600x600. I want it to add +1 once you "collide with a invisable box I'll add and this will redraw the screen.

View 4 Replies

Adapt The Application Area To The User's Monitor Resolution?

Jun 16, 2011

how do I adapt the my application area to the user's monitor resolution?I have created a winForms application on 1280*768 resolution monitor and the application is generally used on smaller laptops (10inches). Now I need to a scrollbar on my entire application so that the spacing remains the same as I have designed. For this, there has to be a scrollbar (Both Horizontal and Vertical) on the application.

View 1 Replies

Color Detection That Finds A Color At An Area?

Mar 9, 2012

I am using basic color detection that finds a color at an area. Then it uses basic if statement so "if something=something1 then" where something1 is the color. Anyway, I have all that fixed up right. The thing I want to do is tell the program check for the color for x amount of seconds.

Here is an example.

Dim something As Color = screenshot.GetPixel(50, 50)
Dim something1 As Color = Color.FromArgb(1, 1, 1, 1)
if something = something1

[Code].....

View 6 Replies

Extracting Visual Basic Source Code From Visual Basic EXE?

Jan 24, 2011

How do you extract source code from a VB.NET .EXE file?

View 3 Replies

Take A Screen Pic Of A Certain Area

Mar 26, 2010

oksice there is no way to grab an image using its source i was wondering if there is a way to taking a screen pic at a certain x,y coordinates in a webbrowser1 then displaying it in a picture box.

View 3 Replies

Custom Area In Screen?

Sep 6, 2010

In my program, there is an option for a custom size object. I want the user to be able to click on the upper-left corner and then click in the lower-right corner and save the location as integers. How can I do this?

View 3 Replies

Changing Color Of Monitor?

Jun 22, 2009

i would like to program a little app that will change the colors of the screen. im not talking about the darkness. i want it to mimic what it would look like if for example you put on blue lenses or red lenses. so i would like to input the color and i want the screen to look as though i put on lenses of that particular color. well i actually need the program to semi-permanently change the users experience on the computer. i need the computer for the entire session that it is turned on to be changed this color

View 4 Replies

Get Screen Or Monitor Dimensions?

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

Any Way To Capture Screen Of Form Area?

Mar 2, 2010

I was about to create a code for capturing screen of the area of a form.. Below code is capturing only the form size but from the top of the screen.. I want to capture the area of screen wherever it placed..
Code:
Dim loBmp As Bitmap = Nothing
'Dim Somebitmap As Bitmap
Dim screenSize As Size = New Size(Me.Bounds.Width, Me.Bounds.Height)
Dim screenGrab As New Bitmap(Me.Bounds.Width, Me.Bounds.Height)
Dim g As Graphics = Graphics.FromImage(screenGrab)
'Dim FiletoDelete
'MsgBox(lsFile)
g.CopyFromScreen(0, 0, 0, 0, screenSize) ("Need Some changes here!!")
screenGrab.Save(LogLib & lsFile)

View 5 Replies

Take Screen Shot Of Selected Area

Sep 8, 2009

i have made an application which will capture screen shot and frequently will saves in word doc autmatically. but it will take whole screen.now my req is to take snap particular area of the screen selected by mouse.

View 5 Replies

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

Takes A Screen Capture Of Monitor?

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

ComboBox DropDown-Area Border Color?

Dec 6, 2010

I've created an ownerdraw ComboBox (used as DropDownList only) in Visual Basic .NET 2010. I inherited ComboBox and set DrawMode to OwnerDrawVariable. The control itself and the dropdown items are drawn with Paint and DrawItem.

The control works fine so far, but there is one thing i was unable to change: When i click on the combobox to open the dropdown area, this new area has a very bright border color (nearly white) which I want to change to black. I've uploaded an image of the current control and how I want it to look like:

[Code]...

View 5 Replies

How To Color The Black Grey Area On A Tabcontrol

Mar 22, 2011

i have been searching for 2 days on how to color the black grey area on a tabcontrol, i found a few examples but they never worked for me does anyone know how to color this area?Btw this is a webbrowser project

Edit: Ohh and does anyone know how to make a toolstrip combobox automatically resize when the user changes the form size?

View 2 Replies

Ability For A User To Drag An Area On Screen

Mar 14, 2012

i want to give the ability for a user to drag an area on the screen that they want and a that area to be print screened. or alternativly they click anywhere and that location is the top left of the box and then when they next click that location is the bottom right of the box and that box is print screened. [code]

View 1 Replies

VS 2008 - Magnify The Area Of The Screen Under Mouse

Jan 27, 2010

i am trying to get a project that will magnify the area of the screen under my mouse... and be displayed in the applacations window! so far all i have been able to do is track the X, Y positions of my mouse... i have some experiance but not very much useing visual basic.

View 6 Replies

VS 2008 Select And Copy A Little Screen Area?

Nov 12, 2009

I would like to select and copy in the clipboard a text chat row (the last row), so to save, row after row, the whole chat in a file To select the row is sufficent a single clik into a row, so that my idea was to simulate the mouse clik in the last row and then simulate the Control+C key press

Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick
mouse_event(MOUSEEVENTF_LEFTDOWN, Pos1, Pos2, 0, 0)where Pos1 e Pos2 are the coordinates of a whatever point the chat row BUT THIS WORK IS NOT GOOD the mouse cursor becomes unusable with the normal work, so that it is needed a different idea, that makes the job INDIPENDENT from any other work made at the PC in the same moment

now the question is: any idea as how to solve the problem?

View 2 Replies

Disable Mouse When Using Touch Screen Monitor?

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

Form Objects Resizing On Different Monitor Screen Size?

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

Monitor Information - Rotate Screen When Message Detected

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

Make The Form Size Exceed The Screen Working Area?

Dec 13, 2009

make the form size exceed the screen working area? like setting the size to (1600,1600) doesn't work if the screen is not as big as it is.

View 4 Replies

Visual Studio .NET Color From A Previously Stored Color

Aug 8, 2007

I am redeveloping an application from vb6 to .Net 2005 using vb. I have values held in a database where are the long representation of the vb6 color object.Does anyone know how I can convert the long vb6 color into a .Net color?

View 6 Replies

Resize A Form , Its Controls According To User's Screen Settings And Physical Monitor Size?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved