Sign in to follow this  
Followers 0
Ursie

Arrow Keys

6 posts in this topic

Hello,

First of all I want to say AutoIT is a superb scripting and automating language.

Second I need to have a possibility to send a UP or a DOWN. I know there is a Function called "Send".

I use that one already like this Send ("{UP}"); but it seems that this will trigger the UP key on the NumPad. I need the UP Key between the Main Keybord and the NumPad. Anybody knows if it is possible to simulate a key press of those arrow keys located between the Main Keybord and the NumPad ? if it is possible please send a respond with a example then.

Thank you

Share this post


Link to post
Share on other sites



I always work with "Send, {UP}" and it works fine

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Well i have a program what needs to be controlled with those arrow keys exactly and Send("{UP}") doesn't work so i don't know whats going wrong then.

Edited by Ursie

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

What program? The program could be hooking into the keyboard at a level lower than AutoIt operates.

As far as I know, AutoIT is sending the standard virtual key code for the up arrow. :D

Edit: Nevermind. It appears AutoIt is marking the extended flag the arrow key codes.... I might be able to post a patched AutoIt build tomorrow that works the way you want.

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

I'd say Jon is right.

In the official build, UP is marked as an "extended" key and a testing Send("{UP}") with a keyboard tester program flagged the arrow key on the main keyboard as being triggered.

I just tried an AutoIT build that removed the extended flag; the result was the number pad arrow key was flagged.

So it seems AutoIt shows the correct behavior.


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

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