Skip to content

Instantly share code, notes, and snippets.

F1::
Var := gst()
if (Var != "")
{
Run, "C:\full\path\to\open_with_pandas.py" %Var%
}
gst() { ; GetSelectedText or FilePath in Windows Explorer by Learning one
;https://autohotkey.com/board/topic/60723-can-autohotkey-retrieve-file-path-of-the-selected-file/
IsClipEmpty := (Clipboard = "") ? 1 : 0
from tkinter import *
from tkinter.filedialog import askdirectory
from tkinter.messagebox import showerror
import tkinter.ttk as ttk
import os
import time
import calendar
def walk_dir(path,daydif,filetype):
if os.path.isdir(path) and os.path.exists(path):