Page 1 of 2 12>
Topic Options
#132738 - 2005-01-21 11:38 AM Altering the speed of SendKeys()
kelp7 Offline
Starting to like KiXtart

Registered: 2002-08-12
Posts: 124
Loc: UK
Anyone know if you can alter the speed of the Sendkeys() function? It is a little slow for what i'm using it for.

Thanks.

Top
#132739 - 2005-01-21 12:42 PM Re: Altering the speed of SendKeys()
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
As far as I know, no.
What is it that you use it for?
A sample scriptlet would be useful to built on, if you can post it.

thanx
_________________________



Top
#132740 - 2005-01-21 03:22 PM Re: Altering the speed of SendKeys()
kelp7 Offline
Starting to like KiXtart

Registered: 2002-08-12
Posts: 124
Loc: UK
Hi,

Thanks for replying. We have some software which, if it terminates abnormally it can run or call a script/program. (in this case, it will be calling a kix script). We have written a script that will launch the dos telnet app and connect to a mail server on port 25 and issue SMTP commands via the SendKeys() function to email us with a notification message. We would like the telnet window to be hidden (which i don't think can be done) or would prefer that it didn't take so long for the sendkeys function to enter the commands into the telnet app.

Thanks

Top
#132741 - 2005-01-21 03:24 PM Re: Altering the speed of SendKeys()
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I see.

Have you ever considered using a commandline mailer for that? Like blat ?
hit the search link above and enter 'blat' to get some sample codes
_________________________



Top
#132742 - 2005-01-21 03:28 PM Re: Altering the speed of SendKeys()
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
there is even a ready to use udf utilizing blat :
Link
_________________________



Top
#132743 - 2005-01-21 03:44 PM Re: Altering the speed of SendKeys()
kelp7 Offline
Starting to like KiXtart

Registered: 2002-08-12
Posts: 124
Loc: UK
Thanks for the pointer.

How much control can you have over the body of the email?

Top
#132744 - 2005-01-21 03:53 PM Re: Altering the speed of SendKeys()
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
If BLAT does not do it for you, there are at least a dozen other solutions posted on the board.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#132745 - 2005-01-21 03:54 PM Re: Altering the speed of SendKeys()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
that script sounds just like my sendmail() udf
sure, it can be speeded up, quite a bit.
but, when you mail with telnet, you need to wait for responses and thus, no matter how fast you type, server response takes always some time.

now, you can do simple blat.exe commandline version which removes the screens and so on.
_________________________
!

download KiXnet

Top
#132746 - 2005-01-21 07:35 PM Re: Altering the speed of SendKeys()
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Since you're calling a KiX script you should have complete control over the body of the message.

I use blat in a logon script which e-mails me and some other admins when a user's antivirus is not at the correct level. The user never even knows the mail was sent.

Top
#132747 - 2005-01-21 08:38 PM Re: Altering the speed of SendKeys()
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Quote:

Since you're calling a KiX script you should have complete control over the body of the message.

I use blat in a logon script which e-mails me and some other admins when a user's antivirus is not at the correct level. The user never even knows the mail was sent.






... And that creates how many mails/day ???


_________________________



Top
#132748 - 2005-01-21 08:48 PM Re: Altering the speed of SendKeys()
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Just started the e-mail script about a week and a half ago.

Started out at about 10 e-mails a day. Now down to 2 or less a day. We've now been able to fix those broken systems so no more e-mails from them. The AV Servers automatically keep systems up to date for 2,000+ clients usually within a couple of hours of a change on the server.


Top
#132749 - 2005-01-21 09:05 PM Re: Altering the speed of SendKeys()
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
I've also wondered if it was possible to increase the type rate of SendKeys. Jooel what ideas did you have to do that?
Top
#132750 - 2005-01-21 09:39 PM Re: Altering the speed of SendKeys()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
just compine the stuff.
instead of printing short stuff like:
sendkeys("{tab}")

go and do:
sendkeys("{tab}sometext{tab}blaa blaa")

k, might not do much, but what we are talking here it does much.
but quess you alpo want something else? I mean, this is nothing new to you most likely...
_________________________
!

download KiXnet

Top
#132751 - 2005-01-21 09:58 PM Re: Altering the speed of SendKeys()
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
I think I was hoping for something like the original poster asked for. Recently, I had to write a script to help convert PaperPort (.MAX) files to PDF. PaperPort offers no batch utility but its built into version 9 and up as a "Save As" option. Basically, the script I wrote parsed through all the Dirs, opened PP, opened the max file, and then saved the file as a pdf. Worked okay, but it was just slower than it needed to be... watching it type out each letter... that was when I was wondering if it was possible to decrease the time between each letter it types during the sendkey function. I'm finished with the project now, but its still something I wouldn't mind knowing how to do in the future.
Top
#132752 - 2005-01-21 10:17 PM Re: Altering the speed of SendKeys()
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
the autoit.dll sendkeys is a lot faster than kix's ....
Top
#132753 - 2005-01-21 11:20 PM Re: Altering the speed of SendKeys()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
alpo, I must wonder...
iirc, kix writes lines fast enough.
something like 20 chars per sec.
if you are doing huge docs, I say, do different.
I don't need sendkeys anywhere and is hard to imagine anybody else needing it either.
_________________________
!

download KiXnet

Top
#132754 - 2005-01-21 11:44 PM Re: Altering the speed of SendKeys()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
btw, why would anyone use paperport?
to me it looks like total waste of time and money.
_________________________
!

download KiXnet

Top
#132755 - 2005-01-22 02:51 AM Re: Altering the speed of SendKeys()
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
My client used PaperPort prior to me ever stepping foot in their door. You'll have to ask the guy who originally installed it what his thought process was. But basically it is a cheaper alternative to Adobe Acrobat Writer.

As for not using Sendkeys... well there was no MAX to PDF converter, there was no com interface, and since there were nearly 25,000 files that needed converting, I wasn't going to sit there and do one at a time. As far as I could tell, I had no other alternative.

Top
#132756 - 2005-01-22 04:27 AM Re: Altering the speed of SendKeys()
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
sometimes its just a matter what google brings up
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#132757 - 2005-01-22 07:04 PM Re: Altering the speed of SendKeys()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
azzer, that's right.
as google brings up free pdf writers, and any other conversions relating to pdf's.
_________________________
!

download KiXnet

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 369 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.077 seconds in which 0.028 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