Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Event Triggering in Windows --anybody know how to do it.

01 Dec 2011   #1
jimbo45

Linux CENTOS 7 / various Windows OS'es and servers
 
 
Event Triggering in Windows --anybody know how to do it.

Hi all
It's AGES and AGES since I did any programming -- but is it possible to run some sort of script / program when say a user defined event occurs. I know most OS'es have some sort of event triggering mechanism but getting at it is the problem.

This sort of stuff is second nature in Linux but how to do it in Windows ??

It MUST be possible --for example you can set the system to play sounds on a whole series of events such as when Mail arrives or when you start / finish navigation. This says to me that there must be some sort of event triggering mechanism -but whether it's acessible via an API ??.

I don't really want to do a whole load of C++ -- probably wouldn't know how to anyway -- just a simple method (if there is one).

Cheers
jimbo


My System SpecsSystem Spec
.

01 Dec 2011   #2
rraod

MS Windows 7 Ultimate 64-bit SP1
 
 

Windows Control Panel Sound applet has some sort of this feature built in.

Open Control Panel - Sound - Sounds. This section has a limited set of events. I am not sure whether it is possible to add new events to this list.

You can also see the excellent tutorial on Sounds Change by Brink.

Some of our learned members should be able to throw some light on the programming part.
My System SpecsSystem Spec
01 Dec 2011   #3
bug67

Windows 7 X64 Professional
 
 

Quote   Quote: Originally Posted by jimbo45 View Post
Hi all
It's AGES and AGES since I did any programming -- but is it possible to run some sort of script / program when say a user defined event occurs. I know most OS'es have some sort of event triggering mechanism but getting at it is the problem.
Don't know if this is the kind of thing you're looking for but, maybe try the Task Scheduler. For example, I have a task set up to launch Pandora Radio at a specific time as an alarm clock.

Quote:
It MUST be possible --for example you can set the system to play sounds on a whole series of events such as when Mail arrives or when you start / finish navigation.
I use Thunderbird as my email client and you can set it up to "announce" when mail arrives in your in box. This is done within Thunderbird's preference settings. I also use Firefox as my browser. I use an add-on called Navigational Sounds that gives Firefox the same navigation sounds as Internet Explorer.

None of this is probably relevant to what you are trying to do though.
My System SpecsSystem Spec
.


03 Dec 2011   #4
Darcy Peal

Win 7 Ulitimate x64 - Signature Edition
 
 

I don't know how to set a trigger event, but I can get you to the Event Viewer, maybe it will help.
Just type "event viewer" in the Start button search box, click on event viewer.
My System SpecsSystem Spec
04 Dec 2011   #5
rraod

MS Windows 7 Ultimate 64-bit SP1
 
 

Darcy, the event viewer you mention is a windows log for all the events which includes information, warnings and critical errors which occur on windows and these logs are used for debugging the problems.

What the OP asking is for a event activated programs or scripts, which are fired upon certain events selected by the user. The Windows Event Viewer can not be of any help in this issue.
My System SpecsSystem Spec
04 Dec 2011   #6
JimLewandowski

 
 

In Windows Task Scheduler, you can get a "trigger" for your started event. There are 3 pulldown menus. First is "start task on sched", "at startup", "at idle" and one is "ON AN EVENT". Once you select that, then the next pulldown is the category of types of events, and once you select one of those, then the 3rd pulldown has subcategories.

I've never tried this, but it's pretty robust.
My System SpecsSystem Spec
04 Dec 2011   #7
granpa2

Windows 7
 
 

My System SpecsSystem Spec
05 Dec 2011   #8
jimbo45

Linux CENTOS 7 / various Windows OS'es and servers
 
 

Hi all
Thanks for the suggestions -- I'll try these later and let you know the outcomes.
Thanks
jimbo
My System SpecsSystem Spec
Reply

 Event Triggering in Windows --anybody know how to do it.




Thread Tools





Similar help and support threads
Thread Forum
Event ID 10 — Event Filter Query Functionality CAUSING BLUE SCREEN
i have been having this error for a couple days now and it also seems to be associated with another crash im getting from a game i play also. first one is a memory dump blue screen issue and the other is just the game crashing. Log Name: Application Source: Microsoft-Windows-WMI...
General Discussion
Three event errors on bootup: Event ID 7006, 7000 and 7009
Out of the blue I get 3 event errors when I boot up my Home Premium 64 bit. First time in two years. Event ID 7006: The ScRegSetValueExW call failed for FailureActions with the following error: Access is denied. I don't have AVG. I have Agnitum Firewall, Panda Antivirus (Free). Event ID...
General Discussion
After BSOD Event Viewer Logs Event ID 3012 and 3011 every time I boot
I was running 3DMark06 and got a BSOD code 124. After that every time I boot Event Viewer logs Error Codes ID 3012 and 3011. Attached are screenshots of both. I googled this and found two different threads where someone suggested to rebuild the performance counters. Both responses were...
BSOD Help and Support
BSOD can't pinpoint what is triggering it
I've been getting a BSOD about 5 times a day for the last week or 2. I ran a debug program and it was saying something about symbols so I downloaded a symbol pack. Computer was fine for 2 days then today it happened again while I was just doing homework on internet explorer. I ran another debug...
BSOD Help and Support
Event 1001 BugCheck Event 41 Kernel-Power Event 4 k57nd60a
Alright, started getting the 1001 BugCheck crash with Event 41 Kernel-Power BSOD a few times not long ago, widely spaced out incidents (it will lock up, make a very weird repetitive noise through my stereo speakers and will also get black and white bars across the screen before the blue screen...
BSOD Help and Support
WHEA-Logger event 18/19 errors in Event Viewer (W7 Home Premium)
Hi, I was hoping somebody could offer an insight on the below, as searching around I've not found much to go on other than "overheating" Basically my laptop has been having very high temperatures for a long time (usually ~60C for CPU and often 100-110 for GPU...insanely high, in other words)...
Hardware & Devices

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 13:47.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App