Kaseya Community

Feature request needs upvotes for "Force-Paste" into KRC/Live Connect

  • ; This will fix the stuck caps lock issue

    ; Copyright 2017 Brian Dagan
    ; MIT License:
    ; Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
    ; The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
    ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    ; If multiple instances are started, this will shut down existing instances and start just this one
    #SingleInstance, force

    ; Define the application name, icon and text strings
    ApplicationName = KRC and KLC Force-Paste Helper
    ApplicationIconDLL = shell32.dll
    ApplicationIconIndex = 261
    PasteSuccessful = Successfully force-pasted clipboard's contents into foreground window
    PasteFailed = Unable to force-paste clipboard's contents into foreground window (clipboard does not contain text)
    AboutText = A utility to force-paste clipboard's contents into the foreground window, inspired by the Kaseya Community (community.kaseya.com)

    ; Update the tray icon and tray tip to match the branding above
    Menu, Tray, Icon, %ApplicationIconDLL%, %ApplicationIconIndex%
    Menu, Tray, Tip, %ApplicationName%

    ; Remove the standard tray icon options and replace with an Exit and About dialog
    Menu, Tray, NoStandard
    Menu, Tray, Add, &About, About
    Menu, Tray, Add, E&xit, Exit

    ; Set the keystroke delay to 0 (smallest possible delay, normally defaults to 10ms between keystrokes)
    SetKeyDelay, 0

    ; Fire a force-paste when Ctrl+Shift+V is pressed
    ^+v::
    {
        ; Check the clipboard's format to ensure it contains plain text
        If DllCall("IsClipboardFormatAvailable", "Uint", 1) {
            ; The clipboard contains plain text... send the keystrokes to the foreground window
            temp = %Clipboard%
            Loop, Parse, temp
            {
                SendRaw, %A_LoopField%
                Sleep 2
                Send, {Shift up}
                Sleep 2
            }
            TrayTip, %ApplicationName%, %PasteSuccessful%, 5, 49
        } Else {
            ; The clipboard does not contain plain text, notify the user via. TrayTip
            TrayTip, %ApplicationName%, %PasteFailed%, 5, 51
        }
        Return
    }

    About:
    {
        TrayTip, %ApplicationName%, %AboutText%, 5, 49
        Return
    }

    Exit:
    {
        ExitApp
        Return
    }



    Formatting
    [edited by: mjmeyer at 2:46 PM (GMT -7) on Jul 6, 2018]
  • Confirmed this does indeed allow it to work properly in the "new" live connect!

  • Has anyone ever tried to do this...on a Mac?

  • You can use this program or script for mac

  • You can copy and past in to Kaseya RC Windows login screen:

    Copy you password > navigate to your Kaseya RC > Click on password box and holding Shift+Alt+Insert

  • Voted

  • For anyone who has been using this and found that it breaks with the .24 update.  I was able to get it working again by changing to using Mouse buttons rather than keystrokes.  .24 live connect seems to "eat" all keystrokes and not allow them to be monitored by any external programs.  I used MButton:: as I wasn't using my middle mouse button for anything else.

  • Thanks for the info.  My team has really grown to depend on the ability to paste into liveconnect.  Wondering if this change is a bug or a feature?

  • Would love to be able to Paste the password from our 1Password into remote controlled (KRC) servers, etc ... FROM OUR MACS ... but so far it just doesn't work properly at all - it works for everything else just using control+V to paste into a screen on the remote controlled box, but not for the initial logon ...

    And the script mentioned above a while back - it doesn't;t work on Mojave or newer ....