Ver Mensaje Individual
  #9  
Antiguo 04-04-2017
Snaked Snaked is offline
Baneado
NULL
 
Registrado: sep 2016
Posts: 102
Reputación: 0
Snaked Va por buen camino
solucionado ya

vale, aqui esta el codigo funcionando

Código PHP:
void SimKey(BYTE VK, bool Down)
{
 
TInput Input;

  
ZeroMemory(&Input, sizeof(Input));
  
Input.type = INPUT_KEYBOARD;
  
Input.ki.wVk = VK;
  
Input.ki.wScan = MapVirtualKey(VK, 0);
  
Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
  if(!
Down) Input.ki.dwFlags = Input.ki.dwFlags || KEYEVENTF_KEYUP;
  
SendInput(1, &Input, sizeof(Input));
} 
Responder Con Cita