Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

Enhancements for Client.LoginHelper #144

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Client.LoginHelper.Login, if it fails, should return an error code,
allowing the developer using TibiaAPI perform a recovery from where it
failed, rollback to the main menu screen, or to retry from that point
forward. This will allow users with slow or problematic connections (which
shouldnt be risking it, imho), to reconnect after the connection has
dropped. Time-outs should be configurable, since what might take an instant
for you, might take 5 seconds on my end.

Client.LoginHelper.Login, should use the Ctrl+G facility if the character
is logged in, and move from that point forward.

Original issue reported on code.google.com by ing.cabr...@gmail.com on 1 May 2009 at 12:08

GoogleCodeExporter commented 9 years ago

Original comment by ian320 on 6 May 2009 at 4:32

GoogleCodeExporter commented 9 years ago
Perhaps, when Client.LoginHelper.Login is called, if there is a character 
online, and
the character has the Combat sign, the function should also abort, with the 
error
code indicating it was unable to re-log because of that.

Original comment by ing.cabr...@gmail.com on 6 May 2009 at 5:30

GoogleCodeExporter commented 9 years ago
how do I send keys with modifiers like ctrl+G with SendMessage?

Original comment by geancarl...@gmail.com on 27 Jul 2009 at 7:34

GoogleCodeExporter commented 9 years ago
Geancarlo, you have to send multiple keys.

public void SendKeyWithControl(Keys key)
{
  SendMessage(Hooks.WM_KEYDOWN, (int)Keys.Ctrl, 0);
  SendMessage(Hooks.WM_KEYDOWN, (int)key, 0);
  SendMessage(Hooks.WM_CHAR, (int)key, 0);
  SendMessage(Hooks.WM_KEYUP, (int)key, 0);
  SendMessage(Hooks.WM_KEYUP, (int)Keys.Ctrl, 0);
}

Should work

Original comment by hugo.per...@gmail.com on 27 Jul 2009 at 8:41

GoogleCodeExporter commented 9 years ago

Original comment by joebingham07@gmail.com on 10 Nov 2009 at 7:02