Running applications and passing on text box info to vb

blue-bullet

Registered User.
Local time
Today, 18:32
Joined
Jun 20, 2010
Messages
16
Hi guys, I have a form with a button which opens a program called teamviewer, here is the code so far:

Private Sub AccessTeamviewer_Click()
On Error GoTo Err_AccessTeamviewer_Click
Dim stAppName As String
Dim stTeamviewerID As String
Dim stTeamviewerPW As String
stTeamviewerID = Me.DeviceTeamViewerID
stTeamviewerPW = Me.DeviceTeamViewerPW
stAppName = "C:\Program Files\TeamViewer\Version5\teamviewer.exe -i stTeamviewerID --Password stTeamviewerPW"
Call shell(stAppName)
Exit_AccessTeamviewer_Click:
Exit Sub
Err_AccessTeamviewer_Click:
MsgBox Err.Description
Resume Exit_AccessTeamviewer_Click
End Sub

How do I pass on the stTeamviewerID and stTeamviewerPW on correctly? They both relate to text boxes on the same form as the button...Any ideas? Complete nube to the whole VB stuff.
 
cumon?!! this should just be a case of passing on variables which is something i dont know how to do , regardless of where its going, a bit like a broadcast.
 
What was the teamweaver software writen in? is it an off the shelf product? Does it have SDK caperbilities? Have you attempted DDE?
 
What was the teamweaver software writen in? is it an off the shelf product? Does it have SDK caperbilities? Have you attempted DDE?
thanks for getting back to be David! I dont know what its written in, yes it is off the shelf product, you can download it free from teamviewer.com

I have managed to get it to run from command prompt, using the parameters required. So if needs be, passing on the command to command prompt and using something like CONCATENATE (excel) to combine the records what have you... ill shush at this point, im waffling
 
You may be advised to do this as this will give you an insight as to whether you can pass variables between them. It may mean introducing an addin to the app.

What is the product anyway and what does it do?
 
You may be advised to do this as this will give you an insight as to whether you can pass variables between them. It may mean introducing an addin to the app.

What is the product anyway and what does it do?
it is a remote access application. A bit like logmein and webex.
 

Users who are viewing this thread

Back
Top Bottom