-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to send ctrl+alt+del for windows? #29
Comments
why? |
there is no effect for alt key, it is send no message |
because the keyCode of del is 46 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chrome 61.0.3163.79
var sendKey=function(type,n){
var obj={
'generated': true,
'type': type,
'keyCode': n,
'charCode': 0
};
//inputProcess object,window.inputProcess=
//in application.js init, window.inputProcess=this.inputProcess;
window.inputProcess.send([type,[obj]], type);
}
// It is no effect!
var sendCtrlAltDel=function(){
sendKey("keydown",17);
sendKey("keydown",18);
sendKey("keydown",110);
sendKey("keyup",110);
sendKey("keyup",18);
sendKey("keyup",17);
}
but,
// this is ok! work well!
var sendCtrlC=function(){
sendKey("keydown",17);
sendKey("keydown",67);
sendKey("keyup",67);
sendKey("keyup",17);
}
The text was updated successfully, but these errors were encountered: