function onload_12() {
//alert(123);
$("#file_input").focus();
var WshShell = new ActiveXObject("WScript.Shell");
WshShell.SendKeys("{Tab}");
WshShell.SendKeys("{ }");
WshShell.SendKeys("D:\\1.jpg");
WshShell.SendKeys("{Enter}");
}
<input type="file" name="input_file" id="file_input" accept="image/*" />