• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Automatically controlling a program - HELP!

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I have a fairly broad question which I am not sure belongs here, so pardon me if I've put it in the wrong forum.

I have a requirement for running a program (specifically, it is FreeMind, an open-source mind map creation software written in Java) automatically at regular intervals.

I am actually trying to import a folder structure located in a fixed location at regular intervals of time.

In the program, this would involve going to the File > Import > Folder Structure option in the main menu, and then entering a folder name in the dialog box that appears (a standard file chooser dialog). After the importing is completed, I need to save the file using the File > Save As.. option into a predetermined location.

I need to do all this automatically using some sort of script or job that runs on a server containing the folder structure that I want to import.

I have never done this kind of programming before, so what is the quickest and most hassle-free way to achieve this? I'm on Windows and this script that I write will reside within a web application that uses Tomcat as its application server.

I am also open to using software to achieve the above sequence of steps automatically, but I would prefer it to be freeware since there is hardly a budget to this project and I am due for delivery soon as far as the schedule is concerned (which means it will be difficult for me to cut through the red-tape and get the go ahead from my the clients for any investment that is required to achieve this functionality).

Thanks a bunch as always.
[ July 04, 2008: Message edited by: Sridhar Venkataraman ]
 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe you don't need to simulate clicks, you have the source so why not take a look at what it does when you click?
Also consider talking to the FreeMind developers who might be able to give you some assistance of some sort.
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're happy to write the program yourself, the Robot class may do what you want.
 
Sridhar Venkataraman
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your replies.

I have posted the same on the FreeMind forums and the indication from there looks to be Groovy.

I hope the Robot class can accomplish this, because I am more comfortable with Java than anything else. I'll check it out, thanks.
 
permaculture is giving a gift to your future self. After reading this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic