Page 1 of 1 1
Topic Options
#37944 - 2003-03-17 11:09 AM Losing characters in SendKeys?
pvp Offline
Lurker

Registered: 2003-03-17
Posts: 2
Loc: UK
I have written a Kixtart script to call up Internet Explorer and an application within it.

This script works some of the time but at other times either freezes or goes off in a strange direction best interpreted as some of the SendKey characters going astray.

This happens with an identical unchanged script. I am on NT4 SP6.

Any ideas?

pvp

Top
#37945 - 2003-03-17 11:13 AM Re: Losing characters in SendKeys?
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I may test this for you (if my time allows) as I am currently running the same OS [Wink]

can you post the unchanged script ?
_________________________



Top
#37946 - 2003-03-17 01:41 PM Re: Losing characters in SendKeys?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I quess that there is simple timing issues.
so, I ask you too to post the code.
_________________________
!

download KiXnet

Top
#37947 - 2003-03-17 03:23 PM Re: Losing characters in SendKeys?
pvp Offline
Lurker

Registered: 2003-03-17
Posts: 2
Loc: UK
Guys,

Thank you for your offer to try this out.
Unfortunately the tool being used in IE is proprietary and you cannot use it.

So any thoughts you have from your experience about 'timing issues' would be very valuable to me. It DOES sound like that sort of problem.

I look forward to hearing from both of you.

pvp

Top
#37948 - 2003-03-17 03:46 PM Re: Losing characters in SendKeys?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
SetFocus() and SendKeys() are a kludgy way to automate as there is often insufficient feedback on the current screen to know if the app is ready for more keystrokes.

You should look into AutoIT which has the ability to read characters on the screen.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#37949 - 2003-03-17 03:55 PM Re: Losing characters in SendKeys?
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
plus there is an COMable interface available for it ... AutoItX.dll was it ?

Here it is : http://www.hiddensoft.com/AutoIt/downloads.html

try the AutoItDLL (hmmm ... is this free ?)

[ 17. March 2003, 15:58: Message edited by: jpols ]
_________________________



Top
#37950 - 2003-03-17 07:54 PM Re: Losing characters in SendKeys?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh same interface, little different approach.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
1 registered (StuTheCoder) and 798 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

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

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org