Sign in to follow this  
Followers 0
andu

im new some help ls

3 posts in this topic

some help... i wanna know, for example, if i wanna press yes i say send ("!y"), but for example what i say if i wanna say cancel, save etc

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You wait for the new window that will pop-up using WinWaitActive and send "!n" for example to this new window.

Test it with notepad:

Run('notepad')
WinWaitActive('Untitled')
Send('123!{F4}')
Sleep(1000) ; Just before closing the window. Can be omitted
WinActivate('[REGEXPTITLE:^Notepad$]')
WinWaitActive('[REGEXPTITLE:^Notepad$]')
Send('!n')

Edit: Oh, forgive me.

You press Alt to see which character is underlined and use this instead.

If it's under the 'e' in 'Cancel' you send "!e".

Edited by Authenticity

Share this post


Link to post
Share on other sites

thanks a lot

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
Sign in to follow this  
Followers 0