NetTalk Central

Author Topic: Autoshutdown, how to use it?  (Read 11907 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Autoshutdown, how to use it?
« on: May 28, 2013, 05:48:37 PM »
Searching in the docs I cant find any data of how to use it.
Then... how to use it?
Any example?
Thanks
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Autoshutdown, how to use it?
« Reply #2 on: May 29, 2013, 03:25:09 AM »
Thanks
How can I translate the warning and closing window?
I can modify the messages but...
I mean the "caption" and other text not being the message itself.

Regards
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Autoshutdown, how to use it?
« Reply #3 on: May 29, 2013, 07:52:14 AM »
the window is declared in the
.ProcessWarningRequest method and the ProcessShutdownRequest method.
so if you wanted to change the text on the window I think you'd need to derive those methods, starting with the code that is already there, and then modify that.

In the 7.11 build I'll add a .Translate method though so you can more easily translate the text.

Cheers
Bruce



Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Autoshutdown, how to use it?
« Reply #4 on: May 29, 2013, 09:38:07 AM »
OK,

I have a client in which in severals PC the firewall does not allow my app to run.

Which ports AutoSut an AutoRefresh are using?

Thanks
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Autoshutdown, how to use it?
« Reply #5 on: May 29, 2013, 09:50:14 PM »
that depends on you - or at least the ports are in your control.
see
http://www.capesoft.com/docs/nettalk/NetTalk2.htm#NetOptions
especially;
NET:SETMAXINSTANCES
NET:SETDGPORT
and
NET:SETSPORT

Cheers
Bruce