ken82m Posted October 27, 2008 Share Posted October 27, 2008 I know this can be done with some command line stuff. But I was just wondering if anyone has or knows of maybe a UDF for interacting with the task scheduler. I searched the help file and forum but didn't come up with anything new. Thanks, Kenny "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains." Link to comment Share on other sites More sharing options...
Andreik Posted October 27, 2008 Share Posted October 27, 2008 I know this can be done with some command line stuff.But I was just wondering if anyone has or knows of maybe a UDF for interacting with the task scheduler.I searched the help file and forum but didn't come up with anything new.Thanks,KennyIf you have some time and you want to do this, you can write an UDF for Task Scheduler. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 27, 2008 Share Posted October 27, 2008 (edited) Why not use mine? http://www.autoitscript.com/forum/index.php?showtopic=83355Edit: yeah I have to admit I did make it because I saw this thread lol. Edited October 27, 2008 by dbzfanatic Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
ken82m Posted October 28, 2008 Author Share Posted October 28, 2008 lol thank you great one lol I'll give it a try Kenny "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains." Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 28, 2008 Share Posted October 28, 2008 (edited) Ok let me know if it works,things seemed fine here but I only have one comp to test on and what may work by fluke here might throw an error there >.> Try not to die before you test it otherwise i'll have to say "oh my God! they killed kenny!" XD sorry. Edit: face didn't show up >.> Edited October 28, 2008 by dbzfanatic Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
ken82m Posted October 28, 2008 Author Share Posted October 28, 2008 Killed me?! you got that right smoke started coming out of the computer when I hit run script lol It worked like a charm thanks I wish I understood COM, apperantly task scheduler has it's own interface you can use. I found something in PERL but no help there lol Kenny "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains." Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 28, 2008 Share Posted October 28, 2008 OMG IT WORKED?! I'm glad it did, I've never written a UDF before so I'm really glad it worked. I don't really understand COM either but I'll look into it soon. Is there a link you can give me to the COM info? Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
ken82m Posted October 28, 2008 Author Share Posted October 28, 2008 (edited) Here's a bunch of 1.0 examples on MSDN There are 2 versions of the API apperantly.ver. 2.0 only works on vista, ver. 1.0 works on previous versions and on vista.http://msdn.microsoft.com/en-us/library/aa382078(VS.85).aspxHere's a PERL utility I found, if someone understands it maybe they could convert it.http://sourceforge.net/projects/taskscheduler/-Kenny Edited October 29, 2008 by ken82m "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains." Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 28, 2008 Share Posted October 28, 2008 Well I see the link for the perl script and I checked MSDN but it doesn't seem to have any info I can use (maybe I'm just not looking in the right place(s) but I couldn't find anything). Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
ken82m Posted October 29, 2008 Author Share Posted October 29, 2008 would have been nice if I gave you the link lol I added it above (http://msdn.microsoft.com/en-us/library/aa382078(VS.85).aspx) "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains." Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 29, 2008 Share Posted October 29, 2008 Well I found that already but it didn't show me the object I needed to get or create,just action. I was informed about this http://www.microsoft.com/technet/scriptcen...04/hey0922.mspx in my UDF thread in the example scripts forum. I think I've found what I need to do but that remains to be seen. I also updated my UDF with a standard version (capable of being submitted if someone thinks it's good enough, I personally don't right now but I also don't know the user base that this UDF could/would have so if enough people want/need it I won't stop someone from submitting it) so it's a bit more readable and easier to understand from the function headers. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
mrmacadamia Posted May 12, 2009 Share Posted May 12, 2009 hi, how can i create a task scheduler with autoit? Simply put, how can I run the task scheduler with autoit? What I know that i can run it by Run(@comspec & " /c Start %SystemRoot%\explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}") but I want it to open it directly to create a task. Link to comment Share on other sites More sharing options...
rajeshontheweb Posted May 12, 2009 Share Posted May 12, 2009 shell.open will openthe folder with the guid u entered and MS posts this WMI example which can be easily traqnslated to autoit.. strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objNewJob = objWMIService.Get("Win32_ScheduledJob") errJobCreated = objNewJob.Create _ ("Cleanup.exe", "********123000.000000-420", _ True , 1 OR 4 OR 16, , , JobID) Wscript.Echo errJobCreated Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now