English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

An example would be... I run a script, and calculator opens up, and queries the sum of 1 + 1. Thank you!

2007-08-01 20:24:49 · 3 answers · asked by Anonymous in Computers & Internet Software

I am running windows vista, but I am convinced at this point my best chance is to load linux. Can someone elaborate on how sending keystroaks to a program with VB, C, C+ ect..

2007-08-01 21:38:01 · update #1

3 answers

it's possible, in linux
# Create a file with a .sh extension
type #!/bin/bash
every command you type is a linux command to a program

example

echo `expr 1 + 1`

This will result with the word: 2


In Windows:

create a bat file
you can only type command that can only run in DOS mode.

Hope this helps

2007-08-01 20:33:56 · answer #1 · answered by The Elite Gentleman 2 · 0 0

It is sort of possible.

Some programs allow you to interact with them very efficently because they can be automated using a COM object. Microsoft Office products are good examples of that. Other programs like calculator don't work like that. However it is possible to send key strokes to the program to make it act like a person is typing. If is possible to do this through a vb script or java script.

2007-08-01 20:30:18 · answer #2 · answered by Michael M 6 · 0 0

Yes it's very possible. It's really simple on a Linux enviroment, in bash. (Linux is free)

In Windows, however, it's way more complicated (and you paid for windows; well, we all did)

You probably should post more info, like OS plataform, more specifics, so someone can help you.

But for your question if it is possible, the answer is: Yes, it is.

2007-08-01 20:29:31 · answer #3 · answered by h_br_boy 2 · 0 0

fedest.com, questions and answers