Mugger Posted December 16, 2012 Share Posted December 16, 2012 Hello! How to send "KeyUp" in hidden mode IE? Or how I can start function manualy? <script type="text/javascript"> $('.CountInput').keyup(function() { CountInputChange($(this)); }); var CountInputChange = function(input) { var Type = input.attr('data-Type'); if (isNaN(input.val())) { input.val(0); } .......... }; </script> Thank you very much! Link to comment Share on other sites More sharing options...
rvn Posted December 16, 2012 Share Posted December 16, 2012 Welcome to Autoit forum help file can help you alot... "Sends simulated keystrokes to the active window." the real question is,,, how to activate the hidden window?! easy solusion,,, activate your IE,, then send key... or "send" is not what you looking for... check also IE UDF, ControlSend... cheer Link to comment Share on other sites More sharing options...
Mugger Posted December 16, 2012 Author Share Posted December 16, 2012 (edited) Wayfarer, than you very much. But, when I activated IE window (WinActivate()), user loose focus in his program. It's bad :-( Edited December 16, 2012 by Mugger Link to comment Share on other sites More sharing options...
rvn Posted December 17, 2012 Share Posted December 17, 2012 (edited) Wayfarer, than you very much.its rvn, not Wayfarer ;P But, when I activated IE window (WinActivate()), user loose focus in his program.Need proper checking then... example... $WinTitle = "Windows Title" If WinExists($WinTitle) Then ;check if windows exist WinActivate($WinTitle) ;activate windows WinWaitActive($WinTitle) ;wait for windows to activated If WinActive($WinTitle) Then ;confirm if windows active Send("{UP}") Else MsgBox(0,"Warning","Windows not active!") EndIf Else MsgBox(0,"Warning","Windows not exist!") EndIf posting your code is a good thing,,, so the other can help. Edited December 17, 2012 by rvn Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now