Solved

turn on the screen

Posted on 2009-04-14
2
252 Views
Last Modified: 2012-05-06
Hi experts

I have a fairly simple question  (I think)  :o)

I have a computer running my VB 2005 app. The computer is set to turn off its monitor after 10 minutes. (In control panel, power settings)
Now I want my app, at a given time, to be able to tell the pc to turn on the monitor again.
I have thought about doing some simulated mouse move but don't know how

Does anybody know how to solve my problem

Thanks in advance
0
Comment
Question by:liversen
2 Comments
 
LVL 23

Accepted Solution

by:
ComputerTechie earned 500 total points
ID: 24141299
0
 
LVL 1

Author Closing Comment

by:liversen
ID: 31570075
Ended up using mouse move. Seemed most elegant.
Thanks for the help.
My code:

'Declaration
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)

'In a method:
MOUSEEVENTF_MOVE = &H1
mouse_event MOUSEEVENTF_MOVE, 25, 25, 0, 0
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question