Jump to content

Recommended Posts

Posted

Does your monitor have speakers on it? Otherwise I don't see how it's power state would affect the sounds playing.

The Difference in behavior will be in my code.

  • Replies 43
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

You're not making any sense. You said if your monitor is off then it won't play alerts, not that if the monitor is of you don't want it to play any sounds.

I think you need to break out Notepad, start writing exactly what it is that is the problem, what you intend it to do that it's not doing, what exactly isn't working as intended, what you've already tried and most importantly how you want us to help. Because currently, you are all over the place as far as what you're looking to do and your explanations are one line nonsense that doesn't help at all in figuring out what it is you're trying to do.

Help us help you by being clearer.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted (edited)

You're not making any sense. You said if your monitor is off then it won't play alerts

No that's not what I said..

Allow me to quote myself:

It could've been extremely useful to detect when the screen is off.

I wanted to use it, for differentiating the behavior of my personal script, based on the screen's power state.

For example,

Some Alerts that I have for important events(using Sound), will not go off if the screen is off.

The differentiation of the behavior of the script, will be done by me - in the code,

not by the screen.

The screen will only tell me if it's On or Off.

I will then, in code, choose a different behavior according to it's Power State - On or Off.

Edited by Zohar
Posted (edited)

This is false, there's a data link in every standard connection i know about. http://en.wikipedia.org/wiki/Display_data_channel

@op

Take a look at this:

http://msdn.microsoft.com/en-us/library/windows/desktop/dd162609(v=vs.85).aspx

or createfile, to see if the driver is available. Not totally sure if this is possible but im pretty sure.

Hi Shaggi

Yes, this Data Link is what I based my hopes on.

Very surprising Windows doesn't really get the data successfully.

(as said before, the Availability field, which contains sme useful flags, always retruns a value of 3 unfortunately, whether the Screen is On or Off)

Edited by Zohar

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...