Jump to content
AssWipe

How to send a space key to an active popup window.

Recommended Posts

AssWipe

I have this situation and I don't know how to automate it. The scenario is as follows:

A popup window occurs from time to time. Its title is 'XYZ'. Now, there are 2 buttons: "Yes" and "No". "Yes" button is already highlighted. When I press the space button, the popup window goes away. Now I want to be able to send space key via AutoIt. I don't know how to do this. Please help!

 

Thanks.

Share this post


Link to post
Share on other sites
TheDcoder
Send('{SPACE}')

 

Edited by TheDcoder
Wrong key..

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) mean to do that to anybody!!!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites
KickStarter15

Hi,

What have you tried so far?^_^


Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.

Share this post


Link to post
Share on other sites
AssWipe

I have no idea. I am a complete noob. I have tried various scripts (available online for similar problems) but none of them worked. I don't know how to program.

Share this post


Link to post
Share on other sites
TheDcoder

You might consider learning the basics, they are very easy. There are several tutorials mentioned in the wiki: https://www.autoitscript.com/wiki/Tutorials

I personally recommend Morthawt's Tutorials, that is what I followed to learn the basics of AutoIt and Programming ;)


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) mean to do that to anybody!!!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

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

×