Sometimes the command AmtCallStatus s = computer.Remote.SendRemoteControl(0x11, 0x157, 0x0, 0x0, 0x0, 0x0); doesnt work

Sometimes the command AmtCallStatus s = computer.Remote.SendRemoteControl(0x11, 0x157, 0x0, 0x0, 0x0, 0x0); doesnt work

Sometimes the command AmtCallStatus s = computer.Remote.SendRemoteControl(0x11, 0x157, 0x0, 0x0, 0x0, 0x0); doesnt work.

somebody can help me?

This is the code that i use:

AmtSystem computer = Singleton.GetConnection(ip,login,senha);

form.GetLabel().Text = "Conectado";

if (computer == null || computer.State != AmtSystemObjState.Connected || computer.Remote == null)
{
form.GetLabel().Text = "Falha";
return;
}

if (computer.AmtRev == 1) { }

Thread.Sleep(100);

AmtCallStatus s = computer.Remote.SendRemoteControl(0x11, 0x157, 0x0, 0x0, 0x0, 0x0);

if (s == AmtCallStatus.SUCCESS)
{
form.GetLabel().Text = "Comando executado com sucesso";
}
else
{
form.GetLabel().Text = "Comando falhou "+s.ToString();
}

Thread.Sleep(12000);

computer.Disconnect();

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi,

Could you give us more details on this? What is your AMT version? SDK version? What are you trying to do here? what is the error message you are getting while making this call?

Thanks,

Sree

Leave a Comment

Please sign in to add a comment. Not a member? Join today