Skip to content

Instantly share code, notes, and snippets.

@MauriceBrg
MauriceBrg / RocketChatWindowFix.bat
Last active January 21, 2018 22:29
Workaround for the RocketChat/Rocket.Chat.Electron #380 Issue. Place these two files in some directory. Create a shortcut to the .bat script and run it whenever your Rocket Chat Client is hidden on the disconnected second Screen. It stops RocketChat, fixes a config and restarts it afterwards.
REM Run the Powershell Script to fix the Rocket Chat bug that lies relative to the script location
SET ScriptLocation=%~dp0
powershell -ExecutionPolicy Bypass -WindowStyle Hidden %ScriptLocation%Rocket_Chat_Fix_Window_Position.ps1
@MauriceBrg
MauriceBrg / Rocket_Chat_Send_Message.ps1
Created January 12, 2018 21:51
PowerShell-Script that sends any text to one or more Rocket.Chat Webhooks. Do with this what you like.
<#
.SYNOPSIS
Sends a message to one or more Rocket.Chat WebHooks.
.DESCRIPTION
This script can be called with parameters in order to send a message to one or more
Rocket.Chat webHooks. The text may contain any supported format keywords you can use
in the GUI.