Communicate between 2 applications [closed] - vb.net

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have written a basic VB winform application (in visual studio) that control the lights. I published and create an install package so I can install this on other PCs.
My questions is how to sync these applications to communicate with one another so if I turn a light on, on one PC, other PC will sense that and display it on thier application.
I can use timer to see if there are any action every 15 second, but I don’t think this is efficient way.

Take a look at this question that involves sending information between computers over a network. You could have the program send what it did to the lights so that the other programs can update themselves.

I'd suggest you look at writing the status to a file accessible to all on the network, use the filewatcher class to detect changes to the file, and when the file changes read it from all PCs to see the current status of everything.
ref: https://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher(v=vs.110).aspx
another option would be to use UDP broadcasting

Related

Send data from one Wemos to another [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have 2 Wemos d1(retired) boards. I just simply need to send some data or a letter from one to the other. I searched the web deeply and found some complicated NodeMCU stuff and so on. Even though I could send data when I flashed NodeMCU to my Wemos, it was useless because my project is about arduino. I need to work with Arduino IDE. There is also a way to create a WebServer on one of the wemos and then deal with html files. But isn't it so complicated for just sending a couple of bytes? I don't need any webserver or html page. So please help me.
So, just use basic TCP socket communication. Assign one of them as a server. Here are libraries to use for arduino :
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/src/WiFiServer.cpp
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/src/WiFiClient.cpp
Here is a WiFiClient example :
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/WiFiClientBasic/WiFiClientBasic.ino
Here is a WiFiServer example :
how create TCP server by ESP8266?

Interact with my running application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Given:
A list-based application with an advanced user-system based on two applications:
Main-Tool
Displays all Entrys with possible filters
Create entrys
Delete entrys
Edit entrys
Filter entrys to only see specific ones
...you get the point
Creation-Tool
Reads specific informations out of a file and opens the same mask as the Main-Tools creation function as a separated application.
The Problem:
So I have my Creation-Tool and the Main-Tools function to create entrys as well. So each time i am changing a thing on the creation mask, i have to do it in two applications.
The Solution:
There has to be a way to call functions of my application from the outside.
The Question:
How can i get rid of the second application? The Main-Application has more informations (Logged in user for example) than the Creation-Tool, so i want to get rid of the Creation-Tool. Having a second application that calls my main application is okay.
What you want to do is to move all of your functionality into a separate library. Using inter-process communication would require both programs to be running. Whereas if you had two programs that shared the same dll, that would solve your duplicate code issue and each program can be run independently. Once you have all your functionality separated from the user interface and moved into it's own dll, then consolidating the UI of both applications into one will be much easier.

Multiple programs on AVR atmega [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to make my Atmega robot to operate multiple modes (line following, obstacle avoidance, direct guidance from PC ) How can I load these separated programs on flash and how to select one of them when restarting the robot?
The easiest way is to make one big program with all the functionality of all the modes. On startup, in main() check if certain buttons are pressed, then choose which mode you are going to operate in. Then only use the functions and control mechanisms for that mode from then on. The rest of the code just sits there unused, but it would anyway in any other scheme.
There isn't an easy way to break the code into several different complete programs. For example, the vector table is fixed to be where it is. You would have to have the interrupt handlers check to see which mode is active then call the appropriate function for that mode.

How do I hook into the WndProc of another application in Vb.Net [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am trying to simulate some clicking on a flash control on a window belonging to another executable using the AutoIT COM Object.
Since it is a long-running script I'd like to keep the system usable by normal (read: physical) means meanwhile. I first taught of a virtual machine, then I remembered that WndProc hooking exists.
Now I'd like to simulate clicks with fake WM_* messages instead of using AutoIt because it hijacks the mouse, in order to be able to run the automation in background without the mouse moving by itself and my current active window (i.e. notepad) losing focus.
My problem is that I have no idea on how to achieve the WndProc hooking in Vb.Net. People says a Dll injection is needed but in my previous Realbasic experience I did it in plain win api.
(To write messages I don't know, but to read worked.)
Ps. I've checked and no similar question seems to address this (at least in vb.net).

How difficult would it be to build a Chat/IM Client for an office network? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
First and foremost, I would like to say I am very, /very/ new to programming and the like. If I decide to build this, this would probably be my first "large" project i've ever done myself.
What I am looking to build is a very simple Chat/IM client to use for the users in our office network. It would just call us their Windows logon name and use that to IM and the like. I'm talking a very simple client, with a list of names of people who are logged into the network, and option to IM them and an option to do a multiple user chat. It doesn't have to be visually stunning.
How difficult would this honestly be? Is it possible for me, someone who has very little knowledge when it comes to programming to teach myself how to build it?
If not, can you explain why this would be very difficult and what already built clients would work well for what I am using?
This is a big application. Your first parts will suck and refactoring it later will suck even more. I suggest building something small in the first place and then step from one bigger project to another.
XMPP/Jabber is IMHO the best solution for office IM. Most clients like Pidgin, Adium etc can connect to it. Every bigger company I worked for in the last years used it. Take a look at Openfire - A free open source XMPP server that you can directly connect on and which is easy to set up: http://www.igniterealtime.org/projects/openfire/