Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

2 Questions

$
0
0

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!


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>