Jump to content

How to send "KeyUp" in hidden mode IE?


Mugger
 Share

Recommended Posts

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

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

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 by rvn
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...