Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program to click OK on error message 1

Status
Not open for further replies.

pcpro

MIS
Feb 24, 2001
15
US
I am trying to write a program in VB6 that will click the Ok button on an error message. I have a server at work that keeps getting errors messages. The error is a memory error and it ask to click ok or cancel. The problem is that we are not always there to click the Ok button so I am trying to write a program to click it for me.
 
It si definately possible, and I have come across many threads discussing "clicking controls on other apps"

Do a search in these forums

*****************************************
May the Code Be With You...[lightsaber]
----------
x50-8 (X Fifty Eigt)
 

As x508 has pointed out there are several threads on this but for you to search efficiently for some of these threads I would suggest that you add Visual Basic(Microsoft) Win32API Forum711 and Win API (Microsoft) Forum713 to you list of forums before you search for these threads. Then for some search terms...

EnumWindows
FindWindow
SendMessage
Click Button

Then for some execellent reading I would also suggest the FAQ222-2244 on how to get the most from these fora.

Good Luck

 
>server...memory error

Maybe it is just me, but I'd be trying to get the problem that is causing the error fixed rather than trying to get a VB program that ignores it...
 
Hehe....

*****************************************
May the Code Be With You...[lightsaber]
----------
x50-8 (X Fifty Eigt)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top