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

jimbo45

New member
Guru
Gold Member
VIP
Local time
6:48 PM
Messages
5,941
Location
Hafnarfjörður IS
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 Computer My Computer

At a glance

Linux CENTOS 7 / various Windows OS'es and se...Intel i7 Intel i58GB, 16GBOn Motherboard
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built, several laptops HP/ASUS
OS
Linux CENTOS 7 / various Windows OS'es and servers
CPU
Intel i7 Intel i5
Memory
8GB, 16GB
Graphics Card(s)
On Motherboard
Sound Card
Realtek HD audio
Monitor(s) Displays
Apple Cinema display, Samsung LCD
Screen Resolution
1920 X 1080
Hard Drives
4 X 1TB SATA
Mouse
Toshiba wireless laser
Internet Speed
> 20MB up
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 Computer My Computer

At a glance

MS Windows 7 Ultimate 64-bit SP1i5-2410M 2.3GHz (2.9GHz Turbo-Boost) Sandy Br...4GB+4GB Samsung DDR3 PC3-10700 (1333 MHz)Video Intel(R) HD Graphics Family, 1696MB ava...
Computer Manufacturer/Model Number
Toshiba Satellite P775-S7232
OS
MS Windows 7 Ultimate 64-bit SP1
CPU
i5-2410M 2.3GHz (2.9GHz Turbo-Boost) Sandy Bridge 32nm
Motherboard
Toshiba PHRAA ver. PSBY1U-00F003
Memory
4GB+4GB Samsung DDR3 PC3-10700 (1333 MHz)
Graphics Card(s)
Video Intel(R) HD Graphics Family, 1696MB available memory
Sound Card
Realtek High Definition Audio version=6.0.1.6323
Monitor(s) Displays
17.3 " Trubrite TFT LCD, LED Backlit
Screen Resolution
1600x900 32 bit, Native support for 720P content
Hard Drives
TOSHIBA MK6476GSXN
580.614 [GB] partitioned C: 80GB and D: 500GB with hidden recovery partitons.

Spare bay for 2nd HDD but no SATA connector :-(
PSU
Toshiba AC/DC Adapter
Case
Notebook
Cooling
Built-in Fan
Keyboard
Premium Raised Tile keyboard
Mouse
Logitech M215 wireless mouse
Internet Speed
Not fast enough
Other Info
Built-in Harman Kardon speakers with Dolby Advanced Audio, Waves MaxxAudio® 3. HDMI, 1xUSB3+3xUSB2 ports, WebCam, Battery life 4hrs 11mins, 4GB Readyboost SDHC card, WD My Book Essential Ext HDDs 2 TB, 2x1TB, My Passport SE 1TB and WDTV 1st Gen for Multimedia playing on a Sony Wega 32" LCD.
Recent addition to my toys are Asus Transformer Pad TF300T with 32GB onboard sd card + 32GB microsd card.
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.

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. :o
 
Last edited:

My Computer My Computer

At a glance

Windows 7 X64 ProfessionalIntel® Pentium D Dual Core 3.6GHZ4GB DDR2 PC2-5300GeForce GT 440 (Fermi) 2GB 128-bit DDR3 PCI E...
Computer Manufacturer/Model Number
Dell XPS 400
OS
Windows 7 X64 Professional
CPU
Intel® Pentium D Dual Core 3.6GHZ
Motherboard
DELL Dimension 9150 MotherBoard DXP051 XPS400 FJ030
Memory
4GB DDR2 PC2-5300
Graphics Card(s)
GeForce GT 440 (Fermi) 2GB 128-bit DDR3 PCI Express 2.0 x16
Sound Card
ASUS XONAR DG 5.1 Channels PCI Interface Xonar DG
Monitor(s) Displays
2 X 23" Apple Cinema Display
Screen Resolution
1920 X 1200p
Hard Drives
250GB Intel® 510 Series SSD SATA 6G (w/TRIM) [500MB/s Reads]
1.0TB Western Digital Caviar Black SATA 6G 7200rpm 64MB Cache
PSU
375 Watt Dell
Case
Dell XPS 400 BTX Case
Cooling
Dell XPS 400 Air Cooling
Keyboard
Logitech Illuminated Keyboard
Mouse
Logitech M705 Marathon
Internet Speed
+/- 9929 Kbps
Other Info
This machine was given to me when my dad bought a new computer. I keep throwing upgrades at it and it keeps on ticking. Think I've done everything to it that can be done outside a PSU upgrade so I can run an even BETTER GPU.
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 Computer My Computer

At a glance

Win 7 Ulitimate x64 - Signature EditionAMD Phenom 9850 2.3Ghz8GB
Computer Manufacturer/Model Number
Built by me
OS
Win 7 Ulitimate x64 - Signature Edition
CPU
AMD Phenom 9850 2.3Ghz
Motherboard
ASUS
Memory
8GB
Internet Speed
50 MBps download - 5 MBps upload
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 Computer My Computer

At a glance

MS Windows 7 Ultimate 64-bit SP1i5-2410M 2.3GHz (2.9GHz Turbo-Boost) Sandy Br...4GB+4GB Samsung DDR3 PC3-10700 (1333 MHz)Video Intel(R) HD Graphics Family, 1696MB ava...
Computer Manufacturer/Model Number
Toshiba Satellite P775-S7232
OS
MS Windows 7 Ultimate 64-bit SP1
CPU
i5-2410M 2.3GHz (2.9GHz Turbo-Boost) Sandy Bridge 32nm
Motherboard
Toshiba PHRAA ver. PSBY1U-00F003
Memory
4GB+4GB Samsung DDR3 PC3-10700 (1333 MHz)
Graphics Card(s)
Video Intel(R) HD Graphics Family, 1696MB available memory
Sound Card
Realtek High Definition Audio version=6.0.1.6323
Monitor(s) Displays
17.3 " Trubrite TFT LCD, LED Backlit
Screen Resolution
1600x900 32 bit, Native support for 720P content
Hard Drives
TOSHIBA MK6476GSXN
580.614 [GB] partitioned C: 80GB and D: 500GB with hidden recovery partitons.

Spare bay for 2nd HDD but no SATA connector :-(
PSU
Toshiba AC/DC Adapter
Case
Notebook
Cooling
Built-in Fan
Keyboard
Premium Raised Tile keyboard
Mouse
Logitech M215 wireless mouse
Internet Speed
Not fast enough
Other Info
Built-in Harman Kardon speakers with Dolby Advanced Audio, Waves MaxxAudio® 3. HDMI, 1xUSB3+3xUSB2 ports, WebCam, Battery life 4hrs 11mins, 4GB Readyboost SDHC card, WD My Book Essential Ext HDDs 2 TB, 2x1TB, My Passport SE 1TB and WDTV 1st Gen for Multimedia playing on a Sony Wega 32" LCD.
Recent addition to my toys are Asus Transformer Pad TF300T with 32GB onboard sd card + 32GB microsd card.
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 Computer My Computer

At a glance

Windows 7AMD Phenom II X2 (dual-core)4Gintegrated ATI HD 4200
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7
CPU
AMD Phenom II X2 (dual-core)
Motherboard
GA-MA785GM-US2H
Memory
4G
Graphics Card(s)
integrated ATI HD 4200
Sound Card
integrated
Monitor(s) Displays
Samsung 24"
Screen Resolution
1920x1080
Hard Drives
1 SSD - Samsung 840 - 500 GB - OS and DATA partitions
1 SSD - Intel 320 - 120 GB (used for backups) - Misc/BACKUP
1 SATA HD - WD, 500 GB - BACKUP
PSU
Ultra X4 500W
Case
Ultra X-blaster
Keyboard
Microsoft Digital Media Pro
Mouse
Logitech WIRED!
Internet Speed
15 Mbps FIOS

My Computer My Computer

At a glance

Windows 7Intel Core2Duo E7400 @ 2.8GHz x 28.0Gb Dual-Channel DDR2 @ 400MHz 6-6-6-18NVIDIA GeForce 9800GT 2304MB
Computer Manufacturer/Model Number
Self Build
OS
Windows 7
CPU
Intel Core2Duo E7400 @ 2.8GHz x 2
Motherboard
ASUSTeK Computer INC. P5QL-E Rev 2.xx
Memory
8.0Gb Dual-Channel DDR2 @ 400MHz 6-6-6-18
Graphics Card(s)
NVIDIA GeForce 9800GT 2304MB
Monitor(s) Displays
Dell E2209(Digital) & Dell E228WFP
Hard Drives
ST3320620AS (320.07 GB)
WDC WD2500KS-00MJB0 (250.06 GB)
WDC WD2500KS-00MJB0 (250.06 GB)
ST3160811AS (160.04 GB)
Hi all
Thanks for the suggestions -- I'll try these later and let you know the outcomes.
Thanks
jimbo
 

My Computer My Computer

At a glance

Linux CENTOS 7 / various Windows OS'es and se...Intel i7 Intel i58GB, 16GBOn Motherboard
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built, several laptops HP/ASUS
OS
Linux CENTOS 7 / various Windows OS'es and servers
CPU
Intel i7 Intel i5
Memory
8GB, 16GB
Graphics Card(s)
On Motherboard
Sound Card
Realtek HD audio
Monitor(s) Displays
Apple Cinema display, Samsung LCD
Screen Resolution
1920 X 1080
Hard Drives
4 X 1TB SATA
Mouse
Toshiba wireless laser
Internet Speed
> 20MB up
Back
Top