Jump to content

send item and win 7 x 64


Recommended Posts

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
Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...