Posts: 57
Threads: 9
Joined: Jun 2004
I have software at home that I have to run over and over. I have to hit these keys on the keyboard repeatedly: Enter - Enter - Enter - D - st6.min - Enter - etc etc.
I'm wondering if there is a QBasic command that I can use to have QBasic hit those keyboard keys for me (so to speak). If there is a command for that can someone post it so I can then search Google on how to use that command?
Posts: 6,419
Threads: 74
Joined: Mar 2002
Not in QB. You can do it in VB, though, using "SendKeys"
Posts: 57
Threads: 9
Joined: Jun 2004
Thanks. I shouldn't be waisting my time with QBasic. I should have learned C++ or Java or VB.
Posts: 6,419
Threads: 74
Joined: Mar 2002
QB is for fun. And fun is not wasting time
Posts: 57
Threads: 9
Joined: Jun 2004
Does Java have a similar command do you know? I think the Java Compiler is free, unlike VB.
Posts: 6,419
Threads: 74
Joined: Mar 2002
I think it has, but can't remember right now.
Posts: 691
Threads: 5
Joined: Apr 2002
In Java you would just need to manually fire the keypress events.
esus saves.... Passes to Moses, shoots, he scores!
Posts: 78
Threads: 0
Joined: Jun 2004
Haha at a Qb forum saying he shouldn't waste his time with qb. Haha I wouldn't be surprised if he was lynched.[/quote]
Posts: 3,343
Threads: 83
Joined: Mar 2003
Don't post off topic like that again. We're nice people - if you don't think so, keep it to yourself.
Posts: 57
Threads: 9
Joined: Jun 2004
No, nobody lynched me. I'm just disappointed that I've spent so much time learning this and now I find I'll have to learn another language to do what I want done. Frustrating to give so much time and effort, especially when everyone said to learn another language instead.