Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 20, 2024, 04:49:59 16:49


Login with username, password and session length


Pages: [1]
Print
Author Topic: Run software automatically on receiving data  (Read 3306 times)
0 Members and 1 Guest are viewing this topic.
king
Junior Member
**
Offline Offline

Posts: 84

Thank You
-Given: 2
-Receive: 21


Jack of All But Master of One


« on: June 15, 2009, 08:25:32 08:25 »

Hi!
   I want to run software exe file automatically(Like Popup window of Anti virus) when particular data has been received on serial port.

Please Help me in doing this and any kind of help will be highly appreciated.

Regards,

King
Logged
dezso
Junior Member
**
Offline Offline

Posts: 82

Thank You
-Given: 34
-Receive: 137


« Reply #1 on: June 17, 2009, 02:01:22 02:01 »

Code:
Private Sub Form1_Click()
Me.WindowState = "1"
Const strInstall As String = "AVGSetup.exe"
Shell strInstall
End Sub

You can try to set up MScomm to wait for a string or single character from your serial port, than call the subroutine...
There is a million page on google about this.

Dezso:
Logged
king
Junior Member
**
Offline Offline

Posts: 84

Thank You
-Given: 2
-Receive: 21


Jack of All But Master of One


« Reply #2 on: June 26, 2009, 03:37:05 15:37 »

No I mean to say i want to make popup like program in VB6 so that anytime when particular data was received on serial port then program exe will open like popup and this will minimize all the windows that user has opened and restore the software which is placed in the taskbar to show the serial port data which has been defined in the program and if another data was received by serial port then don't restore the software and don't interrupt the user's working. But anyway i have done it and if anybody interested then i will upload the code of VB6.0 for this software.

Regards

King
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC