Jump to content

Recommended Posts

Posted

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!

Posted

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 :)

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
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

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
  • Recently Browsing   0 members

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