vex20

2 Questions

4 posts in this topic

#1 ·  Posted (edited)

I'm really posting about 1 problem, but while I'm here, I figured I'd ask another question that I've had for a quite a long time now too :P

My main problem is this:  I want a script that will prevent the use of the enter key whenever it's running.  The script sleeps unless a specific window is active, and while said window is active, I want to prevent myself from using enter at any point in time.  I found the _IsPressed() function, which will tell me if enter was pressed, but I can't seem to figure out how to interupt/block the press from happening in the first place.  Any ideas on how I could accomplish this?  I know in C++/VB/etc, you can just say 'if enter is pressed, do not send the key_down event, but I can't seem to find anything similar with autoit.

The second question I have is regarding the window spy.  In alot of situations, when you hover over something, it changes color.  How do you grab the original pixel color when this happens?

Thanks in advance!

Edited by vex20

Share this post


Link to post
Share on other sites



Another comment:

Could you please be so kind and give meaningful titles to your threads? Everyone on this forum has questions and is looking for help ;)

When a thread has a meaningful title it attracts much more users and so it is more likely to get a helpful answer.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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