This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function read-clipboard | |
{ | |
PowerShell -NoProfile -STA -Command { | |
Add-Type -Assembly PresentationCore | |
[Windows.Clipboard]::GetText() | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prints the current path avaible in the PowerShell | |
function path | |
{ | |
$curr = Get-Location | |
cd env: | |
(ls path).value.split(“;”) | |
cd $curr | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#+*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 |
NewerOlder