command line options and directives
Archiver
Posts: 46,084
I'm using the 2sx with stampw 1.1 (or I could just use the DOS
software). I would like to know if there are any command line options
and/or directives such that I can . . .
1 - load a program (I know how to do this in both dos and windows
with the command line)
2 - select a particular comm port (the DOS program has a command line
option for this).
3 - upload the program into the stamp automatically (I can't figure
this part out)
4 - exit the program (I can do this through my windoze program,
though, so it doesn't matter).
Any suggestions would be greatly appreciated.
Thanks,
Mike
P.S. I'm aware of a few other options I have, such as sendkeys, using
the stache, etc. I really need to do this as I describe above.
software). I would like to know if there are any command line options
and/or directives such that I can . . .
1 - load a program (I know how to do this in both dos and windows
with the command line)
2 - select a particular comm port (the DOS program has a command line
option for this).
3 - upload the program into the stamp automatically (I can't figure
this part out)
4 - exit the program (I can do this through my windoze program,
though, so it doesn't matter).
Any suggestions would be greatly appreciated.
Thanks,
Mike
P.S. I'm aware of a few other options I have, such as sendkeys, using
the stache, etc. I really need to do this as I describe above.
Comments
> 2 - select a particular comm port (the DOS program has a command
line
> option for this).
I have found the registry setting that the stampw program uses to
recall the com ports and other settings:
To change the comm port, edit the registy value:
HKEY_CURRENT_USER\Software\ParallaxInc\Stamp\1.0
ComPort -- e.g. "Com5"
The only thing I really need to do now is figure out how to
automatically upload the program without displaying the program
window to the end user. I'm not sure whether I can use sendkeys
command to a program that is hidden or minimized through VB. I'll try
that next.
Of course, I'm still open to suggestions [noparse];)[/noparse]
Thanks!
Try sending the WM_CLOSE windows message to application handle (hWnd).
Use Windows API to find the corresponding window/application handle (see
FindWindow, SetForegroundWindow, ShowWindow and SendMessage, in
Win32.hlp)
Mike Turco wrote:
>
> >
> > 2 - select a particular comm port (the DOS program has a command
> line
> > option for this).
>
> I have found the registry setting that the stampw program uses to
> recall the com ports and other settings:
>
> To change the comm port, edit the registy value:
> HKEY_CURRENT_USER\Software\ParallaxInc\Stamp\1.0
> ComPort -- e.g. "Com5"
>
> The only thing I really need to do now is figure out how to
> automatically upload the program without displaying the program
> window to the end user. I'm not sure whether I can use sendkeys
> command to a program that is hidden or minimized through VB. I'll try
> that next.
>
> Of course, I'm still open to suggestions [noparse];)[/noparse]
>
> Thanks!
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Bye
Arnaldo Braun
mailto:abraun@t...
Florianopolis - SC - Brazil