Sign in to follow this  
Followers 0
PKCS11

Can AutoIt run no matter what I do?

4 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

In your code, at line 3, try this:

Send("notepad c:\net.txt{ENTER}")

This is not working.

@Newb

I will try this.

But is there a way to run in hidden mode? (I dont care if is icon in taskbar.)

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