Jump to content
Sign in to follow this  
blackdog64

send item and win 7 x 64

Recommended Posts

blackdog64

Hi all,

I've just followed the tutorials (hello world and notepad) and I'm using the x64 version on AutoIt (latest version).

Problem is, send yes or no does not seem to work under win 7 x 64. Or, most likely, I'm doing something stupid. Below is the code as per the notepad tutorial:

; Script Start - Add your code below here

Run("notepad.exe")

WinWaitActive("Untitled - Notepad")

Send("This is some text")

WinClose("Untitled - Notepad")

WinWaitActive("Notepad", "Do you want to save")

Send("!n")

From meddling about, it seems that Send("!y") does not work either: the dialogue box pops up and wants me to select yes or no. Also, am I right thinking that there's no way to automatically select Yes or No for UAC? Send string (as above, "this is some text" works fine.

Any help appreciated!

Edited by blackdog64

Share this post


Link to post
Share on other sites
Jos

This version works fine in Win7 X64:

Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("This is some text")
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "Do&n't Save")
Send("!n")

Just use au3info to find the info of the dialog windows that is available for you.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
blackdog64

Great! That does work, thanks very much.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.