Skip to content
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

Open
huge818 opened this issue Jan 15, 2018 · 3 comments
Open

how to send ctrl+alt+del for windows? #29

huge818 opened this issue Jan 15, 2018 · 3 comments

Comments

@huge818
Copy link

huge818 commented Jan 15, 2018

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);
}

@huge818
Copy link
Author

huge818 commented Jan 15, 2018

why?

@huge818
Copy link
Author

huge818 commented Jan 16, 2018

there is no effect for alt key, it is send no message

@mezues
Copy link

mezues commented Jan 17, 2018

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants