Jump to content

Can AutoIt run no matter what I do?


PKCS11
 Share

Recommended Posts

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

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

In 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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...