Sign in to follow this  
Followers 0
triken3

Auto activate au3 file if condition meet?

7 posts in this topic

#1 ·  Posted (edited)

hello i am newbie in auto IT programming..

Any idea how to self activate or auto open an .au3 file if the condition is meet..

like for example i have a notepad file in desktop.. if the txt inside has been change, then .au3 file will be activated or will be opened..

let say that .au3 file will display a notepad that says " Notepad Content changed"

 

any idea is a great help

tnx..

Edited by triken3

Share this post


Link to post
Share on other sites



Cannot be done with AutoIt without a script already running.

But if you want to monitor a file with AutoIt you should ask in the help forum.

what if that .au3 script  is alredy running, then waiting for a moment that the text inside  sample1.txt will be changed.. and then it will open sample2.txt with a text showing " Notepad Content changed"..

is it possible?

any idea what function that i can use

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

FileGetSize and/or FileGetTime

While .. WEnd

If .. Then

Sleep or the Timer functions

ShellExecute or Run

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

FileGetSize and/or FileGetTime

While .. WEnd

If .. Then

Sleep or the Timer functions

ShellExecute or Run

Tnx a lot. i have been able to used all your recommendation and it works perfectly

Share this post


Link to post
Share on other sites

You bet. Good luck with your project.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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