SendKey codes

Post

Posted
Rating:
#1 (In Topic #490)
Banned
Hi folks.

Anyone know if it's possible to use Desktop.SendKey to send the key "Code"

Specifically the code not text

Ie.
Pressing down arrow Gives the Key.Code as 65364
I can't seem to send it back that way.
I could send a Key["DOWN"] but i'm trying to make a macro recorder and pressing keys gives a numeric code 65364 not a string like "DOWN"

According to wiki SendKeys sends the code and not the string and you need to use something like Key["DOWN"] to send the down code but if i try SendKeys tells me it wanted a string but got an integer.

Tia :)
Bruce
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
cogier is in the usergroup ‘GambOS Contributor’
 I can't find the warning I was looking for, but I am sure it goes something like 'Don't use codes as GTK and QT use different code for the same key'.
Online now: No Back to the top

Post

Posted
Rating:
#3
Banned

cogier said

I can't find the warning I was looking for, but I am sure it goes something like 'Don't use codes as GTK and QT use different code for the same key'.

Yes but for a macro recorder it shouldn't matter.

Code recorded at the time should match code sent back regardless of system differences right?
Online now: No Back to the top
1 guest and 0 members have just viewed this.