Jump to content

wath any other file through Auto it


Recommended Posts

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......

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

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

Link to comment
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.... :)
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...