Jump to content

KeyPress Issue.


caramen
 Share

Recommended Posts

Hello guys... 

I have complex behavior to solve, again... 

 

How to understand this... very easy... 

 

If I hold down any key as shortcut from one of my AutoIt script. If I don't release the key up. Before the script answer to the function. (This behavior happens for me with user32.dll and _IsPressed AI function.)

The key will stay pushed down without any release. I'm trying actually the

Opt("SendKeyDownDelay" , 1 )

I'm doing some test with the user32.dll as well... Then I will come with more information when I'll have them.

 

As an example... I'm making a reproducer. Without my personal information into the code. But it will take me some time. I will edit this post when reproducer ready. 

But, if you guys know this behavior, and know how to resolve it. I would be grateful. I guess it will be hard to talk about advanced key function into the forum. For obvious reason. 

But I take any advice about this. Even if you have a magic snippet or AutoIt function I don't know yet to release all key in one time or multiple time...  

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

Wow thanks !

 

Yes it is exactly this behavior. 

 

If I change 

ControlSend("", "", "", "text", 0)

into :

ControlSend("", "", "", "", 0)

Will it work ? 

The text of my windows is random.I will try myself. 

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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