Shop OBEX P1 Docs P2 Docs Learn Events
Help with using BASIC stamp with Visual Basic — Parallax Forums

Help with using BASIC stamp with Visual Basic

ArchiverArchiver Posts: 46,084
edited 2001-06-20 14:43 in General Discussion
One possibility:

http://home.earthlink.net/~parkiss/capture/CAPTURE.ZIP

A means to program a Stamp via a DOS program without the Parallax
editor/loader.


Regards,

Steve

On 19 Jun 01 at 23:57, JoeBruscella@c... wrote:

> ...Is there any way using VB or with the stamp2.exe so that it will
> automatically execute the program without having to manually type
> ALT+R? In essence, having the program "hit" ALT+R for you.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-06-20 01:04
    Sorry about the re-post...I forgot to add a subject line...

    Hi,

    A friend and I are using the BASIC 2 stamp from Parallax along
    with the stamp2.exe compiler (the DOS command line version) from
    Parallax. We are making a program with Visual Basic that will, using
    the "Shell" command, execute the stamp2.exe program and then run a
    saved program that we made. The problem we are having is that there
    is no way to have stamp2.exe execute the program automatically, you
    must manually hit ALT+R.
    Is there any way using VB or with the stamp2.exe so that it will
    automatically execute the program without having to manually type
    ALT+R? In essence, having the program "hit" ALT+R for you.


    Thanks in advance.
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-20 01:30
    right from the MSDN Library.. see attached SendKey.htm

    Private Sub Form_Load()
    'SendKeys Statement Example
    'This example uses the Shell function to run the
    'Calculator application included with Microsoft Windows.
    'It uses the SendKeys statement to send keystrokes to
    'add some numbers, and then quit the Calculator.
    '(To see the example, paste it into a procedure, then run
    'the procedure. Because AppActivate changes the focus to
    'the Calculator application, you can't single step through the code.).

    Dim ReturnValue, I

    ReturnValue = Shell("CALC.EXE", 1) ' Run Calculator.
    AppActivate ReturnValue ' Activate the Calculator.

    For I = 1 To 100 ' Set up counting loop.
    SendKeys I & "{+}", True ' Send keystrokes to Calculator
    Next I ' to add each value of I.

    SendKeys "=", True ' Get grand total.
    SendKeys "%{F4}", True ' Send ALT+F4 to close Calculator.
    End Sub

    Regards,
    Mike Witherspoon

    Original Message
    From: JoeBruscella@c...
    [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=9Ed8DDD8VVkXmWZ-_vHPFUrkDtaFyTYV45cJZ9muzrrhwevGZQinmHBOo9nkzMUmuSIVC82619SiwFtdJz-7FNgZDosHZlIP]JoeBruscella@c...[/url
    Sent: Tuesday, June 19, 2001 5:04 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Help with using BASIC stamp with Visual Basic


    Sorry about the re-post...I forgot to add a subject line...

    Hi,

    A friend and I are using the BASIC 2 stamp from Parallax along
    with the stamp2.exe compiler (the DOS command line version) from
    Parallax. We are making a program with Visual Basic that will, using
    the "Shell" command, execute the stamp2.exe program and then run a
    saved program that we made. The problem we are having is that there
    is no way to have stamp2.exe execute the program automatically, you
    must manually hit ALT+R.
    Is there any way using VB or with the stamp2.exe so that it will
    automatically execute the program without having to manually type
    ALT+R? In essence, having the program "hit" ALT+R for you.


    Thanks in advance.






    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed with. Text in the Subject
    and Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-20 13:14
    At 12:04 AM 6/20/01 +0000, you wrote:
    >Sorry about the re-post...I forgot to add a subject line...
    >
    >Hi,
    >
    > A friend and I are using the BASIC 2 stamp from Parallax along
    >with the stamp2.exe compiler (the DOS command line version) from
    >Parallax. We are making a program with Visual Basic that will, using
    >the "Shell" command, execute the stamp2.exe program and then run a
    >saved program that we made. The problem we are having is that there
    >is no way to have stamp2.exe execute the program automatically, you
    >must manually hit ALT+R.
    >Is there any way using VB or with the stamp2.exe so that it will
    >automatically execute the program without having to manually type
    >ALT+R? In essence, having the program "hit" ALT+R for you.
    >
    >
    >Thanks in advance.
    There is a program that I have used in the past called "PB" <-not sure
    exactly why that name was chosen, but it allows you to "STUFF" the
    keyboard with a pre-recorded character sequence. The only thing you
    might need to do different is to run a *.BAT file from the Visual
    Basic "Shell" instead. The BAT file would then invoke PB.EXE and the
    stamp2.exe program. I don't have it here at work since we mostly use
    UNIX based machines, but I'll see if I can dig it up at the house
    tonight and have it for tomorrow.




    Beau Schwabe IC Mask Designer
    National Semiconductor Wired Communications Division
    500 Pinnacle Court, Suite 525 Mail Stop GA1 Norcross, GA 30071
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-20 14:43
    You could use the VB function SendKey().

    --- Beau Schwabe <bschwabe@a...> wrote:
    > At 12:04 AM 6/20/01 +0000, you wrote:
    > >Sorry about the re-post...I forgot to add a subject
    > line...
    > >
    > >Hi,
    > >
    > > A friend and I are using the BASIC 2 stamp from
    > Parallax along
    > >with the stamp2.exe compiler (the DOS command line
    > version) from
    > >Parallax. We are making a program with Visual Basic
    > that will, using
    > >the "Shell" command, execute the stamp2.exe program
    > and then run a
    > >saved program that we made. The problem we are
    > having is that there
    > >is no way to have stamp2.exe execute the program
    > automatically, you
    > >must manually hit ALT+R.
    > >Is there any way using VB or with the stamp2.exe so
    > that it will
    > >automatically execute the program without having to
    > manually type
    > >ALT+R? In essence, having the program "hit" ALT+R
    > for you.
    > >
    > >
    > >Thanks in advance.
    > There is a program that I have used in the past
    > called "PB" <-not sure
    > exactly why that name was chosen, but it allows you
    > to "STUFF" the
    > keyboard with a pre-recorded character sequence.
    > The only thing you
    > might need to do different is to run a *.BAT file
    > from the Visual
    > Basic "Shell" instead. The BAT file would then
    > invoke PB.EXE and the
    > stamp2.exe program. I don't have it here at work
    > since we mostly use
    > UNIX based machines, but I'll see if I can dig it up
    > at the house
    > tonight and have it for tomorrow.
    >
    >
    >
    >
    >
    > Beau Schwabe IC Mask Designer
    > National Semiconductor Wired Communications
    > Division
    > 500 Pinnacle Court, Suite 525 Mail Stop GA1
    > Norcross, GA 30071
    >
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed
    > with. Text in the Subject and Body of the message
    > will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >


    __________________________________________________
    Do You Yahoo!?
    Get personalized email addresses from Yahoo! Mail
    http://personal.mail.yahoo.com/
Sign In or Register to comment.