Exemple #1
0
        public static void HandleDoKeyboardEvent(Packets.ServerPackets.DoKeyboardEvent command, Client client)
        {
            if (NativeMethodsHelper.IsScreensaverActive())
            {
                NativeMethodsHelper.DisableScreensaver();
            }

            NativeMethodsHelper.DoKeyPress(command.Key, command.KeyDown);
        }
Exemple #2
0
 public static void HandleDoKeyboardEvent(Packets.ServerPackets.DoKeyboardEvent command, Client client)
 {
     NativeMethodsHelper.DoKeyPress(command.Key, command.KeyDown);
 }