req: Simulated keyboard input

  • Thread starter Thread starter al jones
  • Start date Start date
A

al jones

I've looked and probbly not for the obvious but here's what I need.

I have a project where I need to enter through a windows (VB) gui quite a
bit of information so the links in the associated database are updated. I
have the data in a text file which I can manipulate in any fashion needed,
but what I need is something that will take the data from the text file,
insert it into the fields on the screen (I can provide tabs, etc as needed)
and then press the 'enter' key. In the old days it was simple to stuff the
keyboard buffer and append a chr(13) but I can't find any equivalent today
.... anyone have any suggestions??

//al
 
Hi Al - If you're looking for a windows macro recorder/playback, look
no further than AutoHotkey. It rocks.
 
I've looked and probbly not for the obvious but here's what I need.
I have a project where I need to enter through a windows (VB) gui quite a
bit of information so the links in the associated database are updated. I
have the data in a text file which I can manipulate in any fashion needed,
but what I need is something that will take the data from the text file,
insert it into the fields on the screen (I can provide tabs, etc as needed)
and then press the 'enter' key. In the old days it was simple to stuff the
keyboard buffer and append a chr(13) but I can't find any equivalent today
... anyone have any suggestions??

A VB program you have source code to? Or something you just have an
exe for? If the former, it's trivial. Read the text file, form SQL
insert statements and execute them.
 
Hi Al - If you're looking for a windows macro recorder/playback, look
no further than AutoHotkey. It rocks.


That looks nice; atm I use and am happy with allchars,

http://allchars.zwolnet.com/

which is a much simpler prog so suits my simple mind, however I might try
to get my head around autohotkey!

mike
 
A VB program you have source code to? Or something you just have an
exe for? If the former, it's trivial. Read the text file, form SQL
insert statements and execute them.

Not so simple, first, all I have is the exe; and while it's an access
database they gen a lot of the keys programatically. I've tried doing an
import - which works, up to the point of not having keys in a lot of places
so it bombs disastrously. But thanks for the thought ... gmta??

//al
 
Not so simple, first, all I have is the exe; and while it's an access
database they gen a lot of the keys programatically. I've tried doing an
import - which works, up to the point of not having keys in a lot of places
so it bombs disastrously. But thanks for the thought ... gmta??

//al

Sound like this is a job for Autoit: http://www.autoitscript.com/

Autoit can send keystokes etc to any program.

Autoit comes with a utility called Autoit Window Info, if it can get
the details from your program it should be possible to write a script
to do this.

The forums are also very helpful:
http://www.autoitscript.com/forum/index.php?


Bye for now.

Clive.
 
Thank you gents, Now I just have to see if I can make one of them work.
Of the three mentioned I see to which look like more likely candidates and
one which looks, at first blush, to be what I'[m looking for. I'll drop a
notte back to let you all know how I faired.

//al
 
Sound like this is a job for Autoit: http://www.autoitscript.com/

Autoit can send keystokes etc to any program.

Autoit comes with a utility called Autoit Window Info, if it can get
the details from your program it should be possible to write a script
to do this.

The forums are also very helpful:
http://www.autoitscript.com/forum/index.php?


Bye for now.

Clive.

Clive, from what I've seen, this looks like the most usable for the task I
want to set it to.

A long time ago, I wrote a fairly simple billing program for my boss - it
does a few other things but this was it's main application. He's decided
that we need to move on to other things (well, it was a clippered dbse app,
even on a new system it's slow and aggravating) but doesn't want to take
the time to do a manual conversion. I'm going to have a hard enough time
trying to get him to run two systems in parallel for a test period (with
our company 3 months would be ideal - we bill in quarterly intervals with
the quarter beginning whenever the customer started) but as soon as he
feels it's doing it's job he'll drop the old and run the new and hope for
the best. I know who Murphy is - but he'll just pray that Murphy took a
day off.

Anyway, just wanted to say thanks and I've already been in the forums - I
*do* like the looks of this tool ... and he'll like the price.

//al
 
Clive, from what I've seen, this looks like the most usable for the task I
want to set it to.

A long time ago, I wrote a fairly simple billing program for my boss - it
does a few other things but this was it's main application. He's decided
that we need to move on to other things (well, it was a clippered dbse app,
even on a new system it's slow and aggravating) but doesn't want to take
the time to do a manual conversion. I'm going to have a hard enough time
trying to get him to run two systems in parallel for a test period (with
our company 3 months would be ideal - we bill in quarterly intervals with
the quarter beginning whenever the customer started) but as soon as he
feels it's doing it's job he'll drop the old and run the new and hope for
the best. I know who Murphy is - but he'll just pray that Murphy took a
day off.

Anyway, just wanted to say thanks and I've already been in the forums - I
*do* like the looks of this tool ... and he'll like the price.

//al

Glad to been of help, this program has got me back into writing
(scripting) programs because of its BASIC programing structure which
means its easy to learn and its flexability in controling pretty much
anything in Windows! ;)


Bye for now.

Clive.
 
Back
Top