Skip to content

Instantly share code, notes, and snippets.

Arne Küderle AKuederle

Block or report user

Report or block AKuederle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AKuederle
AKuederle / read-clipboard.ps1
Last active Aug 29, 2015
Functions to manipulate the clipboard from the PowerShell
View read-clipboard.ps1
function read-clipboard
{
PowerShell -NoProfile -STA -Command {
Add-Type -Assembly PresentationCore
[Windows.Clipboard]::GetText()
}
}
@AKuederle
AKuederle / get_path.ps1
Last active Aug 29, 2015
Get and refresh the currently avaible path inside a PowerShell session (usefull, when troubleshooting or installing things from the shell)
View get_path.ps1
# prints the current path avaible in the PowerShell
function path
{
$curr = Get-Location
cd env:
(ls path).value.split(“;”)
cd $curr
}
@AKuederle
AKuederle / ahk_audio_changer.ahk
Last active Aug 29, 2015
Simple autohotkey script to select one of two audio devices under Windows. Bit clumsy, but it does its job. Inspiration from: www.autohotkey.com/board/topic/2306-changing-default-audio-device/page-4
View ahk_audio_changer.ahk
#+*F6:: ; assign hotkey (windows+Shift+F6)
Run, mmsys.cpl
WinWait,Sound
ControlSend,SysListView321,{Down 1} ; By changing the number behind Down the audiodevice can be selcted
ControlClick,&Set Default
ControlClick,OK
return
#+*F7::
Run, mmsys.cpl
You can’t perform that action at this time.