Message 1 of 2
Help with sendcommands

Not applicable
02-16-2006
08:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using a VBA program that has one sendcommand for a wipeout command. Unfortunately, I need this wipeout command in my program and the only way to do it (that I have found) is with sendcommands. As a result, I have a notification that gets sent to the command line when my program is done by doing the following:
thisdrawing.Utility.Prompt (vbCrLf & "Setup has finished Successfully!" & vbCrLf)
This works great, HOWEVER, because of the sendcommand for wipeout, the sendcommand is the last thing the user sees, NOT the "success" message.
What I am trying to do now to combat this is use sendcommands to send my "success" message, but whenever I do, it detects the spaces as an enter key and errors out. I have also tried using chr(32) but it still errors out. Here is the code for that...
thisdrawing.SendCommand ("Setup1" & Chr(32) & "has" & Chr(32) & "finished" & Chr(32) & "Successfully!")
What am i doing wrong? Please help as I am completely stuck.
Thanks,
Mike
thisdrawing.Utility.Prompt (vbCrLf & "Setup has finished Successfully!" & vbCrLf)
This works great, HOWEVER, because of the sendcommand for wipeout, the sendcommand is the last thing the user sees, NOT the "success" message.
What I am trying to do now to combat this is use sendcommands to send my "success" message, but whenever I do, it detects the spaces as an enter key and errors out. I have also tried using chr(32) but it still errors out. Here is the code for that...
thisdrawing.SendCommand ("Setup1" & Chr(32) & "has" & Chr(32) & "finished" & Chr(32) & "Successfully!")
What am i doing wrong? Please help as I am completely stuck.
Thanks,
Mike