Sign in to follow this  
Followers 0
lightsout

Selecting An Item From The Scheduled Tasks List

3 posts in this topic

I've got a bit of code together which selects the correct item, but I am unable to trigger the open.

Run("explorer ::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}")
WinWait("Scheduled Tasks","")
$CLVItem = ControlListView("Scheduled Tasks","","SysListView321","FindItem","PROFILE_CLEANUP")
ControlListView("Scheduled Tasks","","SysListView321","SelectClear")
ControlListView("Scheduled Tasks","","SysListView321","Select",$CLVItem)
ControlListView("Scheduled Tasks","","SysListView321","Select",$CLVItem)

It finds the right item in the list "PROFILE_CLEANUP" - so how can I trigger the double click of it to open it?

Background - the task is created by schtasks, but I am unable to config the power management settings (e.g. don't run if on battery!) using schtasks so I want to trigger the GUI version after the fact to enable them.

Sorry if this is a newbie question also. :)

Cheers!

Share this post


Link to post
Share on other sites



maybe

Send("{ENTER}")

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

I see my newbie status is confirmed.... :)

Anyway, that works great thanks! :(

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0