Sign in to follow this  
Followers 0
Mugger

How to send "KeyUp" in hidden mode IE?

4 posts in this topic

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!

Share this post


Link to post
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 :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Wayfarer, than you very much.

But, when I activated IE window (WinActivate()), user loose focus in his program.

It's bad :-(

Edited by Mugger

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by rvn

Share this post


Link to post
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
Sign in to follow this  
Followers 0