Skip to content

Instantly share code, notes, and snippets.

View Skibisky's full-sized avatar

Skibisky

  • Australia
View GitHub Profile
@Skibisky
Skibisky / MessagePasser.cs
Created February 27, 2019 06:23
Working example for sending a string between C# handles (Controls/Forms) using WM_COPYDATA.
/* ===================
* WM_COPYDATA example
* ===================
*
* Working example for sending a string between C# handles (Controls/Forms) using WM_COPYDATA.
*
* TODO:
* -----
* * Add more info
* * Make generic struct copying work
@Skibisky
Skibisky / alias.bat
Last active June 12, 2018 04:01
Alias for Windows Command Prompt
@echo off
if not exist %~dp0__aliases.bat (echo echo Aliases are Enabled > %~dp0__aliases.bat)
if [%~1] == [] GOTO PRINTOUT
if "%~1" == "_startup_" GOTO DEFINE
if "%~1" == "/remove" GOTO REMOVE
if [%~2] == [] GOTO SEARCH
:: Check to make sure the DOSKEYs are added on every CMD
REG QUERY "HKCU\Software\Microsoft\Command Processor" /v AutoRun >nul 2>&1
if %ERRORLEVEL% == 0 (