Author Topic: any way to control hfs from outside?  (Read 743 times)

0 Members and 1 Guest are viewing this topic.

Offline Sega-Zero

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
any way to control hfs from outside?
« on: June 20, 2010, 06:11:37 AM »
Hello. I would like to control hfs from another program. Is it possible?
I need this features:
1. getting available IP address list [i could get it by myself, but why making double queries?]
2. getting/setting IP address
3. getting/setting filelist/download links
4. getting/setting user/password for any file/directory
5. get current download bandwidth for selected file(s)

I could take your sources as the basement for a program i need, but i think it would be unfair and the program is so beatiful and shiny that not using it will be a crime :)
so, is there any way to do it? I'm not talking about COM, maybe scripting or config files?
Thanks in advance, Sega-Zero.

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12490
  • Country: it
    • View Profile
Re: any way to control hfs from outside?
« Reply #1 on: June 22, 2010, 06:11:43 AM »
welcome!

there's no COM, but by scripting you can do many things (version 2.3 required).
at the moment there's no way to just tell a running HFS to execute a script.
but you can make an event like

[every 1 second]
{.load|scriptfile.}
{.delete|scriptfile.}



so that you just need to write your script to "scriptfile" to get it executed.

you will find a lousy documentation for the scripting language by menu > help
« Last Edit: June 22, 2010, 06:14:25 AM by rejetto »

Offline Sega-Zero

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Re: any way to control hfs from outside?
« Reply #2 on: June 22, 2010, 06:19:28 AM »
a there any code snippets how to do that? couldn't find it here  :-[ little bit confused, what should i search for

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12490
  • Country: it
    • View Profile
Re: any way to control hfs from outside?
« Reply #3 on: June 22, 2010, 07:00:36 AM »
snippets for what?
you'll find this board plenty of it