Jump to content

Arrows on the keyboard - How?


Recommended Posts

Hello, some hours ago I downloaded AutoIt, and so I tried some different things and found a lot of answers to my questions using the search bar up at the top, but I cant seem to find a tread about the names at different keys?

I need the name for the right key, I guessed right at the {ENTER}, but I cant "hit" the right one for the right..

Hope some one can answer the question or tell me how a site/some way to know the keys.

EDIT: also, is there a name for the "tab" key?

Edited by Cuez
Link to comment
Share on other sites

Well I took one of the exampels and moderated it so it worked with my computer (Also on danish)

Run("notepad.exe")


; Wait for the Notepad become active - it is titled "Untitled - Notepad" on English systems
WinWaitActive("[CLASS:Notepad]")


; Now that the Notepad window is active type some text
Send("Hello from Notepad.{ENTER}1 2 3 4 5 6 7 8 9 10{ENTER}")
Sleep(500)
Send("+{UP 2}")
Sleep(500)


; Now quit by pressing Alt-f and then x (File menu -> Exit)
Send("!f")
Send("a")


; Now a screen will pop up and ask to save the changes, the window is called
; "Notepad" and has some text "Yes" and "No"
WinWaitActive("Notepad")
Send("{RIGHT} {ENTER}")    [b]This is where my problem is[/b]


; Now wait for Notepad to close before continuing
WinWaitClose("[CLASS:Notepad]")
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...