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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hi my name is stephen mentzer i

Status
Not open for further replies.

compcad

Programmer
Mar 22, 2002
52
0
0
US
hi my name is stephen mentzer

i have been sending out several post this last couple of months and i have
finally finished the program and know i am trying to package the program.
when i tried to run the program from within vb6 it works fine but when i
packaged the code with the wizard and install the software on to the same
computer and try to run it the program works part of the way and then it
closes down no reason. here is a copy of my code.

what do you think needs to be done. i am using windows xp pro and have vb6 on the computer.

Private Sub Form_Activate()

datapath = Mid(App.Path, 1, 17) & "rafflemaker\TB - LITE\TB - LITE.EXE"
retval = Shell(datapath, 1)
SendKeys "TheSecretPassword{tab}~"
SendKeys "^V{TAB}~"
Form1.Visible = False

End Sub

thank you for the help.
stephen mentzer
 
not much to go on there.
maybe make a debug version of your app that writes to a log file at key points (load, unload, etc) so that you can see what gets executed and what does not.

Does your own app have a CLOSE button on it, by any chance?
(Maybe the sendkeys stuff is being sent to YOUR app because the other one has not had time to get the focus before the keys are sent...)
 
Stupid question - but is it closing down, not opening the shell command or just hiding the form? Should the form1.visible=false not be true??

BB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top