rejetto forum

any way to control hfs from outside?

0 Members and 1 Guest are viewing this topic.

Offline Sega-Zero

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
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
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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, 12:14:25 PM by rejetto »


Offline Sega-Zero

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
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
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
snippets for what?
you'll find this board plenty of it