Dilip11 0 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...... Share this post Link to post Share on other sites
wakillon 403 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.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
Dilip11 0 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.... Share this post Link to post Share on other sites
wakillon 403 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.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
Dilip11 0 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.... Share this post Link to post Share on other sites