AssWipe

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

5 posts in this topic

#1 ·  Posted

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



#2 ·  Posted (edited)

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

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

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

Share this post


Link to post
Share on other sites

#3 ·  Posted

Hi,

What have you tried so far?^_^

Share this post


Link to post
Share on other sites

#4 ·  Posted

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

#5 ·  Posted

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

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

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