Skip to content

Instantly share code, notes, and snippets.

@TaranVH
TaranVH / multi layered extra keyboard.ahk
Created February 22, 2017 19:44
multi layered extra keyboard
#NoEnv
SendMode Input
#SingleInstance force
;dummy script for multiple layers on a second keyboard
;not fully tested.
uselayer := 0
;BEGIN savage-folder-navigation CODE!
;I got MOST of this code from https://autohotkey.com/docs/scripts/FavoriteFolders.htm
;and modified it to work with any given keypress, rather than middle mouse click as it had before.
;~~~~BEGINNING OF 3RD KEYBOARD (just a USB numpad) USING INTERCEPTOR~~~~~~~~
#if (getKeyState("F22", "P"))
;and if <premiere> is running <--add that later
F22::
FileRead, SavedExplorerAddress, C:\Users\TaranWORK\Documents\GitHub\2nd-keyboard\Taran's Windows Mods\SavedExplorerAddress.txt
@TaranVH
TaranVH / filemover 3.ahk
Created September 21, 2016 01:50
This will move a file to a folder, UNLESS that file is already in the folder, or in one of the folders above.
;;;;FILE MOVER TO TRANSCODE FOLDERS
; YTpublish = "Z:\Linus\1. Linus Tech Tips\Transcode\YT Publish 4K\"
; VESpublish = "Z:\Linus\1. Linus Tech Tips\Transcode\Vessel Final 4K\"
Explorer_GetSelection(hwnd="") {
;msgbox, now in getselection
hwnd := hwnd ? hwnd : WinExist("A")
WinGetClass class, ahk_id %hwnd%
@TaranVH
TaranVH / filemover2.ahk
Last active September 21, 2016 01:48
this one actually works...
Explorer_GetSelection(hwnd="") {
;msgbox, now in getselection
hwnd := hwnd ? hwnd : WinExist("A")
WinGetClass class, ahk_id %hwnd%
if (class="CabinetWClass" or class="ExploreWClass" or class="Progman")
for window in ComObjCreate("Shell.Application").Windows
if (window.hwnd==hwnd)
sel := window.Document.SelectedItems
for item in sel
@TaranVH
TaranVH / filemover.ahk
Created September 19, 2016 22:20
moves files to a folder, unless they are already in that folder tree. Doesn't quite work yet unless you copy the file manually...????
debug:
tooltip, counter = %counter%`nnlines = %nlines%, , , 9
return
;;;;FILE MOVER TO TRANSCODE FOLDERS
YTpublish = "Z:\Linus\1. Linus Tech Tips\Transcode\YT Publish 4K\"
VESpublish = "Z:\Linus\1. Linus Tech Tips\Transcode\Vessel Final 4K\"
@TaranVH
TaranVH / cursor click visualizer.ahk
Created April 5, 2016 20:03
show clicks visually onscreen.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Size := 50, Color := "Red" ; settings
CoordMode, mouse, screen
Gui, -Caption +ToolWindow +AlwaysOnTop +LastFound
Gui, Color, %Color%
;Apply ANY transition to a clip -- sadly you cannot use this to SAVE a CUSTOM transition
;A clip or clips must be selected first.
#SingleInstance force
#IfWinActive ahk_exe Adobe Premiere Pro.exe
Tippy(tipsHere, wait:=333)
{
ToolTip, %tipsHere%