Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COMMAND$

Status
Not open for further replies.

compcad

Programmer
Mar 22, 2002
52
US
i am still unsure about the command$ and how it works if you could help
out a little more on that feature it would be great, but i had thought of
a way that may work but i am un sure about it.

1 the main program opens and then you highlight the textbox you want to
pass to the end program which is called RAFFLEID.

2 you click on the button to activate the linking program and it has code
as such:

private sub form activate()

appactivate,[wait]
clipboard.clear
sendkeys "^c"
retval=shell("c:\program files\rafflemaker\tblite\tblite.exe", 1)
form1.visible=false
sendkeys"thesecretpassword{tab}~^v{tab}~"

end sub

3 the end program has a textbox called (text1) that recieves the data from
the main program RAFFLEID

 
Command$ is a way of accessing any commandline arguments passed to an executable when it is run. I think what you eant to do is something like this (untested)

In the calling program RAFFLEID

retval=shell(chr$34) & "c:\program files\rafflemaker\tblite\tblite.exe" & chr(34) & " -thesecretpassword", 1)

In the recv programe tblite, you can access this as a text string by referring to command$ ie debug.print command$

For debugging purposes in the IDE you can set a testing value in project properties / make / commandline arguments.

Hope this helps

 

compcad,

Did you try the example program on the command object and how it works that I referenced in your previous thread with the same subject line thread222-692153 ?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top