Using Task Scheduler to restart a program upon wake from sleep

msalton1

New member
Member
VIP
Local time
9:14 PM
Messages
325
I'm using Logitech's latest LGS for my G700. It's very annoying that I have to exit and restart LGS when my system comes out of sleep or LGS doesn't recognize the mouse as being awake (windows drives it then). This happens when the mouse is running wirelessly. It also happens across versions.

Is there a way to create a task in TS that will exit and restart LSG upon the wake event before or at logon?

Thanks,
Salt
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom
OS
windows 7 Pro 64 Bit
CPU
i5 4670K
Motherboard
Asus Max Hero 1150 socket
Memory
16GB DDR3@933mhz
Graphics Card(s)
Radeon R9 390 8192mb
Monitor(s) Displays
Dell U2415 x3
Screen Resolution
1920 (5760) x 1200 x3
Hard Drives
System: Kingston 128GB SSD

Installing to Samsung 860 EVO 500GB
WD Black 2 TB & 1 TB
PSU
Corsair CX750M
Cooling
Hyper 312
Internet Speed
50mbps
Here is a trigger (Custom Event Filter) for a scheduled task I have that might help you.
It runs when the PC wakes from sleep or resumes from hibernate.
Here is the source text for the Event Filter XML
Code:
<QueryList>
  <Query Id="0" Path="System">
    <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-Power-Troubleshooter'] and (Level=4 or Level=0) and (EventID=1)]]</Select>
  </Query>
</QueryList>
STTSP01.PNG

You would need to add actions to:
1) kill the task for the running program
2) start the program

Hope this helps,
David
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Hi David. Apologies for somehow missing this. Thanks for your response. I haven't had the chance to give this a try yet, but will, and will post back when I do (given how busy I am these days, it may be awhile :rolleyes:.

Thanks again,
Salt
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom
OS
windows 7 Pro 64 Bit
CPU
i5 4670K
Motherboard
Asus Max Hero 1150 socket
Memory
16GB DDR3@933mhz
Graphics Card(s)
Radeon R9 390 8192mb
Monitor(s) Displays
Dell U2415 x3
Screen Resolution
1920 (5760) x 1200 x3
Hard Drives
System: Kingston 128GB SSD

Installing to Samsung 860 EVO 500GB
WD Black 2 TB & 1 TB
PSU
Corsair CX750M
Cooling
Hyper 312
Internet Speed
50mbps
No problem, work on it whenever you have the time.
fwiw, I've been using this trigger for years, and it works reliably and never caused any problems for me.
:)
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Back
Top