Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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.18.0 X86 - SciTE 5.5.7WIN 11 24H2 X64 - Other Examples Scripts

Posted

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

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
×
×
  • Create New...