Page 1 of 2 12>
Topic Options
#152872 - 2005-12-06 01:41 AM sendkeys help
ekiben Offline
Lurker

Registered: 2005-12-06
Posts: 2

I'm trying to get KiXtart to maximize windows by sending an F11 keypress, but the applications I target keep bringing up help menus, as if I'd pressed F1. Am I doing something wrong or is this a bug? Here's the code I'm using:

Code:


setfocus ("MSN.com - Microsoft Internet Explorer")
sendkeys ("{F11}")




Thanks in advance.

Top
#152873 - 2005-12-06 02:02 AM Re: sendkeys help
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
idk - unless anyone disagrees, this seems like a bug to me. this might be a work-around in the short-term though (assuming english menus here):

sendkeys("~ x")

can someone else confirm this as a bug (or get it working) ?

Top
#152874 - 2005-12-06 02:35 AM Re: sendkeys help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I don't get F1 help but I don't get F11 fullscreen either. I think it is an IE thing, not KiX.

SendKeys() is a kludgy way to do it anyway. Should use COM instead.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#152875 - 2005-12-06 02:45 AM Re: sendkeys help
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
ja, i thought it might be just an IE thing too - so I tried it using Firefox (F11 maximizes there too), same thing is occuring. I know that F5 works to notepad (insert datetime) - thinking maybe its just an F11 thing, where Kixtart is maybe truncating that last "1"
Top
#152876 - 2005-12-06 02:55 AM Re: sendkeys help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Ja, well... must confess, I did not do a good test.

Like I said, I did not get help cuz my test code was flawed.

Here is proper test code and it is spawning help now.
Code:
Break on
Run 'cmd /c start www.kixtart.org'
while SetFocus('KiXtart')<>0
"."
sleep 1
$Index = $Index + 1
if $index > 20
$RC = MessageBox("NOTICE!" + Chr(13) + "Korg did not open within a reasonable time!"
+ Chr(13),"SendKeys example",48,60)
goto finish
endif
Loop

$RC=Sendkeys('{F11}')

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#152877 - 2005-12-06 02:59 AM Re: sendkeys help
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Are saying this used to work at one time ? Any clue which version got broke ?
Top
#152878 - 2005-12-06 03:04 AM Re: sendkeys help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Nope. No such claim.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#152879 - 2005-12-06 03:09 AM Re: sendkeys help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Not sure about your [Alt][space][x] workaround. Does nothing for me.
Sendkeys('~VF') works.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#152880 - 2005-12-06 03:24 AM Re: sendkeys help
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
I vote for bug.
anyone care testing on older kixtart version.
say 4.20?
_________________________
!

download KiXnet

Top
#152881 - 2005-12-06 03:30 AM Re: sendkeys help
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
idk man, went all the way back to 3.63 - same thing. Are we missing something obvious here ? Is there something "special" about F11 ?
Top
#152882 - 2005-12-06 03:32 AM Re: sendkeys help
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
nope.

nothing more special than that it's larger than 9, but so is 10 and 11 as well.
_________________________
!

download KiXnet

Top
#152883 - 2005-12-06 03:56 AM Re: sendkeys help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, F10 gives the same result as F1 so there may be something to Shawn's theory about truncating.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#152884 - 2005-12-06 04:00 AM Re: sendkeys help
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
that's what I think too.
does F12 and F10 result in help popping up too?
_________________________
!

download KiXnet

Top
#152885 - 2005-12-06 04:18 AM Re: sendkeys help
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
ok - hitting F12 manually in Microsoft Word brings up the SAVE AS dialog - using sendkeys in Kixtart - F12 brings up the Help (like hitting F1 would).
Top
#152886 - 2005-12-06 04:59 AM Re: sendkeys help
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11577
Loc: CA
Well can't find anything on the Web to back it up, but I thought the F10,F11,F12 originally on the 101 keyboard were new and had limited support. Not that this is or would be an issue with KiXtart on todays computers.

What about AutoIt, has anyone tried it with that program to see how it functions?
 

Top
#152887 - 2005-12-06 05:04 AM Re: sendkeys help
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I think your right Ron ... think there's something funky about those keys especially.
Top
#152888 - 2005-12-06 05:15 AM Re: sendkeys help
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
I place my bet on the truncate part.
_________________________
!

download KiXnet

Top
#152889 - 2005-12-06 05:17 AM Re: sendkeys help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, F11 and F12 may have been new to the 101 key AT-style kbd, but AFAIK, the 83 key XT-style kbd had a F10 key.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#152890 - 2005-12-06 06:27 AM Re: sendkeys help
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11577
Loc: CA
Not sure why but would have to agree that TRUNCATE or just plain NOT SUPPORTED is the issue. Sending F4 works, or sending ALT-O with the F11 which in reality brings up help as though F1 were pushed - Enables the Option's menu of the help file.
Top
#152891 - 2005-12-06 09:52 AM Re: sendkeys help
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4945
Loc: Leatherhead, Surrey, UK
Test script (run in a DOS session):
Code:
Break ON
Dim $,$i,$sKey
$=SendKeys("{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{F13}{F14}{F15}{F16}Q")
While $sKey<>"Q"
Get $sKey
If Not $sKey $i=$i+1 "Function key F"+$i+" generated: "+@ERROR+@CRLF EndIf
Loop



Produces:
Quote:

Function key F1 generated: 59
Function key F2 generated: 60
Function key F3 generated: 61
Function key F4 generated: 62
Function key F5 generated: 63
Function key F6 generated: 64
Function key F7 generated: 65
Function key F8 generated: 66
Function key F9 generated: 67
Function key F10 generated: 59
Function key F11 generated: 59
Function key F12 generated: 59
Function key F13 generated: 59
Function key F14 generated: 59
Function key F15 generated: 59
Function key F16 generated: 59



Top
Page 1 of 2 12>


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

Who's Online
0 registered and 158 anonymous users online.
Newest Members
Jodey, Hiker, GTRoberts, KatieQuinn, Brennnnn
17684 Registered Users

Generated in 0.042 seconds in which 0.012 seconds were spent on a total of 13 queries. Zlib compression enabled.