Jump to content

Selecting An Item From The Scheduled Tasks List

Recommended Posts

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. :)


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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...