Sign in to follow this  
Followers 0
Dilip11

wath any other file through Auto it

5 posts in this topic

hi i want to write autoit script..

i have 1 text file....

i want whenever i open text file and close it message must be popup show the text file is modify...

how i can write script like this

...

i not want to run that script every day...

i just want to run exe 1 time.... and then it automaticaly watch every time to text file...

thanks in advance......

Share this post


Link to post
Share on other sites



you can use FileOpen, FileRead for get the content of your text file and see modifications.

Show what you did Posted Image


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

you can use FileOpen, FileRead for get the content of your text file and see modifications.

Show what you did Posted Image

I Can get the modification time of any text file ....

but for that i have to run autoit script every time...

i not want this

i just want i run my autoit exe only 1 time..

then i never want to run again...

just like chat program.... they already run when your window start....

Share this post


Link to post
Share on other sites

I Can get the modification time of any text file ....

but for that i have to run autoit script every time...

i not want this

i just want i run my autoit exe only 1 time..

then i never want to run again...

just like chat program.... they already run when your window start....

ok so if you already knows getting file text's modifications,

you can add your script to windows start like this Posted Image

_AddToStart ( 'Dilip11', @ScriptFullPath )

Func _AddToStart ( $_TitleKey, $_ExePath )
    RegWrite ( "HKCU\Software\Microsoft\Windows\CurrentVersion\Run", $_TitleKey, "REG_SZ", $_ExePath )
EndFunc ;==> _AddToStart ( )

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

ok so if you already knows getting file text's modifications,

you can add your script to windows start like this Posted Image

_AddToStart ( 'Dilip11', @ScriptFullPath )

Func _AddToStart ( $_TitleKey, $_ExePath )
    RegWrite ( "HKCU\Software\Microsoft\Windows\CurrentVersion\Run", $_TitleKey, "REG_SZ", $_ExePath )
EndFunc ;==> _AddToStart ( )

Thanks I this is i needed.... :)

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