logo

The ConnectWise Control forum has moved to ConnectWise University! This forum has been locked and is in read-only mode. Click here for instructions on how to access the new forum.

Welcome Guest! You can not login or register.

Notification

Icon
Error

Options
Go to last post Go to first unread
oamador2009  
#1 Posted : Friday, December 14, 2012 2:22:01 AM(UTC)
oamador2009


Rank: Member

Joined: 9/8/2011(UTC)
Posts: 14
Man
Location: New Jersey

I have made an application that would allow your clients to connect to your remote server much faster. Below is the readme so you can get an idea what it can do.

but first a special thanks goes out to Jake Morgan for always being on top of the forum and answer all of our questions.

First Disclamer: I made this program using Autoit you should read this Link. I can guaranteed there is no virus because I made it my self but because it is packed with UPX. Some antivirus show as a virus. here is a link to online scan.

I will be providing the source when holidays are over so stay tune.
Code:

Program Name: ScreenConnect Client
Author: FantasyPC
Version 1.0

(Required to change to work)
url=http://remote.mysite.com==============Change this to your screenconnect web address do not but \ or / at the end

(Some Config options you have)=============Remember 0 = NO and 1 = YES

showsplashscreen=0====================Enable a Splash screen wile making the connection
trytoattachIE=0=======================This will try to attach itself to IE if user has IE open (really only for old IE)
showIE=0===========================Do you want client to see Internet Explorer
showtrayicon=0=======================Do you want them to see a tray bar on bottom (Just there if script goes bad)
closeonesc=1========================If enabled it will close Program when client click on ESC button

(This is were you can change your lang.)

Title=My Support Center=================You can change it to your name
bodytext1=Please enter your session code here.==first line
bodytext2==========================You may not need this line but it there just in case if first line overlap input boc
btnCancel=Cancel=====================Change Cancel to your lang
btnStart=Start Session==================Change Start Session to your lang
errortitle=Error=======================This title for the header of the error box error only happens if user type all emtpy spaces
errormessage=You must enter a session code!===Message body for the error message
titlesplashscreen=Connecting==============Title of splash Screen if you set showsplashscreen=1 on top
messagesplashscreen=Connecting to session====Message of Splash Screen if you set showsplashscreen=1 on top


Step for Setup:
Step 1: Download from site here
Step 2: Upload Plugins folder to your ScreenConnect Server
Step 3: Open up config.ini change to your screenconnect server
step 4: Enjoy

Some ScreenShots

Program itself
UserPostedImage

Program error message
UserPostedImage

Program connected
UserPostedImage

Program splash screen
UserPostedImage

Edited by user Friday, December 14, 2012 3:39:05 AM(UTC)  | Reason: Update1

oamador2009  
#2 Posted : Friday, December 14, 2012 2:23:03 AM(UTC)
oamador2009


Rank: Member

Joined: 9/8/2011(UTC)
Posts: 14
Man
Location: New Jersey

Just in Case if you wanted to know what in the plugins folder

In the plugins folder you have a LauchClientConnection.ashx



Now I am also working on a Host edition so we can connect to them faster but had no luck with my file. Maybe someone can help me with this to get it done faster here is my code for LauchHostConnection.ashx
Code:
<%@ WebHandler Language="C#" Class="LaunchHostClient" %>

using System;
using System.Web;
using System.Configuration;
using Elsinore.ScreenConnect;

public class LaunchHostClient : IHttpHandler
{
    public void ProcessRequest(HttpContext context)
    {             
        using (var sessionManager = ServiceChannelPool<ISessionManagerChannel>.Instance.Borrow())
        {
            var tag = context.Request.QueryString["Tag"];
            var hostname = context.Request.QueryString["User"];
            var session = sessionManager.CreateSession(SessionType.Support, tag, string.IsNullOrEmpty(hostname) ? "N/A" : hostname, false, tag);
            var relayUri = ServerExtensions.GetRelayUri(ConfigurationManager.AppSettings, HttpContext.Current.Request.Url, true, true);

            var clp = new ClientLaunchParameters();
            clp.Host = relayUri.Host;
            clp.Port = relayUri.Port;
            clp.SessionID = session.SessionID;
            clp.ProcessType = ProcessType.Host;
            clp.EncryptionKey = ServerCryptoManager.Instance.PublicKey;
            clp.ApplicationTitle = Resources.Default.Client_ApplicationTitle;
            clp.SessionTitle = session.Code;
            clp.AccessToken = ServerCryptoManager.Instance.GetAccessToken(session.SessionID, ProcessType.Host, context.User.Identity.Name, true, DateTime.MinValue);
            
            var clpString = ClientLaunchParameters.ToQueryString(clp);
            context.Response.Write(clpString);
        }
    }

    public bool IsReusable { get { return false; } }
}


My problem is that the LauchHostConnection.ashx is also creating a session instead of it connecting to a existing one.

Edited by user Friday, December 14, 2012 2:33:02 AM(UTC)  | Reason: Update1

Jake  
#3 Posted : Friday, December 14, 2012 9:49:14 AM(UTC)
Jake


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 4/9/2010(UTC)
Posts: 2,061

Thanks: 1 times
Was thanked: 393 time(s) in 188 post(s)
Looks neat from what I see. You could look into having that call into our existing API rather than require additional code on the server.
ScreenConnect Team
oamador2009  
#4 Posted : Friday, December 14, 2012 1:53:53 PM(UTC)
oamador2009


Rank: Member

Joined: 9/8/2011(UTC)
Posts: 14
Man
Location: New Jersey

Yea I might make an update were we will not need the required upload to server.
JoshAETools  
#5 Posted : Wednesday, March 27, 2013 9:36:05 AM(UTC)
JoshAETools


Rank: Newbie

Joined: 3/26/2013(UTC)
Posts: 2
Location: Kansas City

I have tried for the life of me to get this running and i can not get it running at all on our screen connect server.
ComputerElite-Jason  
#6 Posted : Tuesday, June 11, 2013 12:45:25 PM(UTC)
ComputerElite-Jason


Rank: Advanced Member

Joined: 1/28/2011(UTC)
Posts: 61
Location: Ontario Canada

Does this work on the new version? Would be nice to have something loaded on new systems when we send them out.
Thanks
urngoodhands  
#7 Posted : Tuesday, December 17, 2013 12:07:27 AM(UTC)
urngoodhands


Rank: Member

Joined: 10/8/2013(UTC)
Posts: 21

Thanks: 1 times
Before I take the time to install this, can someone explain how it works and why I would want to use it??
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.