Page 1 of 1 1
Topic Options
#48326 - 1999-10-08 08:57 AM 3.60 Bug confirm
Anonymous
Unregistered


Could someone dbl check me on this:
the code:

sendkeys("^{esc}r")
sendkeys("cmd{enter}")
sleep(2)
sendkeys("cdefcdefcdefccc")

should open a command prompt and send the character string cdefcdefcdefccc

instead every 'c' character it hits is sends a ^c (ctrl + c). If I change the code to read:


sendkeys("^{esc}r")
sendkeys("cmd{enter}^c")
sleep(2)
sendkeys("cdefcdefcdefccc")


it then correctly sends the string cdefcdefcdefccc about every other time.

Anybody confirm this? I want to launch winword.exe and have the background script continue and this appears to be the only way to do it. If I shell, the shell command waits till winword.exe exists; if I call a batch file, the batch file waits till winword.exe exits before it continues so I can't pass keystrokes to the running app. Any suggestions around that problem?

Thanks! JIM

Top
#48327 - 1999-10-09 12:12 AM Re: 3.60 Bug confirm
Anonymous
Unregistered


Use shell "start winword.exe"
or use run command instead of shell command

------------------
K Torkelson
Sys Admin Analyst
ktorkelson@providentfunding.com


Top
#48328 - 1999-10-08 02:10 PM Re: 3.60 Bug confirm
Anonymous
Unregistered


The start command works. Start is a function of the command interpreter (cmd.exe) so it must be called first. Thanks for the assist.

Here's another possible bug/documentation error, this one I don't think has a work around.

According to the documentation:

Dim $counters[14] creates an array with 15 elements, with index number running from 0 to 14. In my experience it would actually create an array with 14 elements, with index number running from 0 to 13. The code below proves it:

dim $test[2]

$test[0] = "zero"
$test[1] = "one"
$test[2] = "two"

$test[2] ?
$test[1] ?
$test[0] ?

This code will error out on the third line. If you comment out or delete the third and fourth lines it works correctly and as expected, but not as documented.

Can anyone confirm? How do we go about getting the documentation fixed?

Top
#48329 - 1999-10-14 09:45 AM Re: 3.60 Bug confirm
Anonymous
Unregistered


You can try the feedback link at the entrance to this bbs. I know for fact that Ruud sometimes checks it (he's responded to me before)

------------------
K Torkelson
Sys Admin Analyst
ktorkelson@providentfunding.com


Top
Page 1 of 1 1


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

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.052 seconds in which 0.026 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