Jump to content

Recommended Posts

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
Posted

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

Posted

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

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
  • Recently Browsing   0 members

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