Page 2 of 2 <12
Topic Options
#152892 - 2005-12-27 04:45 PM Re: sendkeys help
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
In short: yes, you have found a bug in SendKeys() here. F10 and up are all incorrectly recognized as F1...

I will fix this in the next build of 4.52.

Thanks for the report!

Ruud

Top
#152893 - 2006-01-29 01:57 PM Re: sendkeys help
ekiben Offline
Lurker

Registered: 2005-12-06
Posts: 2
The special character handling for sendkeys now seems to be completely broken with 4.52 beta 2. This code:

Code:
run "c:\windows\notepad.exe"
sleep 1
setfocus ("Untitled - Notepad")
sendkeys ("F1 {F1}; ")
sendkeys ("F2 {F2}; ")
sendkeys ("F3 {F3}; ")
sendkeys ("F4 {F4}; ")
sendkeys ("F5 {F5}; ")
sendkeys ("F6 {F6}; ")
sendkeys ("F7 {F7}; ")
sendkeys ("F8 {F8}; ")
sendkeys ("F9 {F9}; ")
sendkeys ("F10 {F10}; ")
sendkeys ("F11 {F11}; ")
sendkeys ("F12 {F12}; ")
sendkeys ("enter {enter}")



Yeilds this result in notepad:

F1 F; F2 F; F3 F; F4 F; F5 F; F6 F; F7 F; F8 F; F9 F; F10 F; F11 F; F12 F; enter e

Top
#152894 - 2006-01-29 03:43 PM Re: sendkeys help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
While I concur that those results are valid, that code should not work as you might expect. Had the [F1] key worked as advertised, the remaining keys would have been sent to the Help screen, not the editor workspace.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#152895 - 2006-01-29 03:48 PM Re: sendkeys help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I would have expected Richard's code to yeild plausible results but it now returns nothing.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 2 of 2 <12


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2167 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.051 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.