I want to create a small program that is able to automatically create a file on a specific folder when a specific program starts up and be able to delete that file automatically when that program closes. Please also give me the basic syntax for this if you know it.
Best Programming Language to use in this situation and how?
Started by kafley12, Jun 03 2011 09:15 PM
5 replies to this topic
#1
Posted 03 June 2011 - 09:15 PM
|
|
|
#2
Posted 03 June 2011 - 10:42 PM
For what your doing, which is a pretty simple task, I would advise using a high level language, for simplicities sake (however you could even use shell for your task). An example of this is Java. I would then implement some sort of window handler that would detect form open and form close. Then when the form opens I would save a file in append mode and when closing would delete the same file.
#3
Posted 04 June 2011 - 06:25 AM
Java may or may not be able to detect other running applications. AutoIt comes to mind as a fairly simple tool for this type of thing, if you're on a Windows platform.
#4
Posted 04 June 2011 - 01:38 PM
WingedPanther said:
Java may or may not be able to detect other running applications. AutoIt comes to mind as a fairly simple tool for this type of thing, if you're on a Windows platform.
#5
Posted 04 June 2011 - 02:56 PM
It's been a while since I used it, and I'm now running Linux.
#6
Posted 04 June 2011 - 03:55 PM
Well thanks anyway, and I actually did figure out a way to make AutoIt check for any active windows and run the code to create a file, so no worries. :thumbup1:
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









