SendKey codes
Posted
#1
(In Topic #490)
Guru

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
Posted
Guru

Posted
Guru

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?
1 guest and 0 members have just viewed this.



