RichardMc
RichardMc

Reputation: 854

Creating a middleman application between a website and a locally installed application

I'm tasked with creating an application that simply passes information from a website (using javascript) to start an application on the local machine. So far I have tried two approaches but I am not exactly happy with them, they work fine but I want to know if there are any other approaches that would be more effective. Here is what I have tried.

Is there anything better than these?

Points of note:

  1. There will be a certain trigger on the website that will send a jquery post request to this "middleman" app.
  2. The "middleman" app will be installed and running before the user is using the website

Upvotes: 0

Views: 285

Answers (2)

Louis van Tonder
Louis van Tonder

Reputation: 3710

I would use a normal app, minimized to tray? That way you can interact with it if you need to, but it's out of the way, doing its thing. Full access to what you need to do?

Private Sub myform_Resize(sender As Object, e As EventArgs) Handles Me.Resize
    If Me.WindowState = FormWindowState.Minimized Then
        Me.ShowInTaskbar = False

        'show notification

        With myNotifyIcon
            .BalloonTipIcon = ToolTipIcon.Info
            .BalloonTipText = "Running, but hidden"
            .BalloonTipTitle = "Going going gone..."
            .ShowBalloonTip(3000)
        End With

    End If
End Sub

Upvotes: 1

Luis Filipe
Luis Filipe

Reputation: 8718

If using iis you can inject your code in its pipeline. Other web servers must have the same logic

Upvotes: 0

Related Questions