Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 06, 2016, 08:39:21 20:39


Login with username, password and session length


Pages: [1]
Print
Author Topic: Run software automatically on receiving data  (Read 1449 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, 09:25:32 09: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: 80

Thank You
-Given: 29
-Receive: 137


« Reply #1 on: June 17, 2009, 03:01:22 03: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, 04:37:05 16: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