PKCS11 Posted December 18, 2010 Share Posted December 18, 2010 Hi,I make a simple script like this:Send ("#r")WinWaitActive ("Run")Send("c:\new.txt{ENTER}")WinWaitActive("new.txt - Notepad")Send ("Some text from other application")Send ("in {F5}")Send ("{ENTER}")Send("^s")Send("!{F4}")I want to run this script over Task Sheduler on every 30 min, but when script is running I cant do anything. If I, for example, select some other window, word document, script continue to type there, saving and exit document.Can I make to script run in some silent/hidden or background mode or something and run successufully no matter what I do at that moment? Thanks in advance Link to comment Share on other sites More sharing options...
shanet Posted December 18, 2010 Share Posted December 18, 2010 Hi,I make a simple script like this:Send ("#r")WinWaitActive ("Run")Send("c:\new.txt{ENTER}")WinWaitActive("new.txt - Notepad")Send ("Some text from other application")Send ("in {F5}")Send ("{ENTER}")Send("^s")Send("!{F4}")I want to run this script over Task Sheduler on every 30 min, but when script is running I cant do anything. If I, for example, select some other window, word document, script continue to type there, saving and exit document.Can I make to script run in some silent/hidden or background mode or something and run successufully no matter what I do at that moment? Thanks in advanceIn your code, at line 3, try this:Send("notepad c:\net.txt{ENTER}") [font="Comic Sans MS"]My code does not have bugs! It just develops random features.[/font]My Projects[list][*]Live Streaming (Not my project, but my edited version)[right]AutoIt Wrappers![/right][/list]Pure randomness[list][*]Small Minds.......................................................................................................[size="1"]Simple progress bar that changes direction at either sides.[/size][*]ChristmasIt AutoIt Christmas Theme..........................................................[size="1"]I WAS BOOOORED![/size][*]DriveToy..............................................................................................................[size="1"]Simple joke script. Trick your friends into thinking their computer drive is haywire![/size][/list]In Development[list][*]Your Background Task Organiser[*]AInstall Second Generation[/list]BEFORE POSTING ON THE FORUMS, TRY THIS: %programfiles%/AutoIt3/autoit3.chm Link to comment Share on other sites More sharing options...
Newb Posted December 19, 2010 Share Posted December 19, 2010 Also, ControlSend might be what you are looking for. It send commands (typing, click, whatever) directly to a window. Meanwhile you can do anything. I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it. Link to comment Share on other sites More sharing options...
PKCS11 Posted December 19, 2010 Author Share Posted December 19, 2010 In your code, at line 3, try this:Send("notepad c:\net.txt{ENTER}")This is not working.@NewbI will try this.But is there a way to run in hidden mode? (I dont care if is icon in taskbar.) 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