Dilip11 Posted July 28, 2011 Posted July 28, 2011 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......
wakillon Posted July 28, 2011 Posted July 28, 2011 you can use FileOpen, FileRead for get the content of your text file and see modifications.Show what you did AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
Dilip11 Posted July 28, 2011 Author Posted July 28, 2011 you can use FileOpen, FileRead for get the content of your text file and see modifications.Show what you did I Can get the modification time of any text file ....but for that i have to run autoit script every time...i not want thisi 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....
wakillon Posted July 28, 2011 Posted July 28, 2011 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 _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.7 - WIN 11 24H2 X64 - Other Examples Scripts
Dilip11 Posted July 28, 2011 Author Posted July 28, 2011 ok so if you already knows getting file text's modifications, you can add your script to windows start like this _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....
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now