Created
January 28, 2023 07:17
-
-
Save syrinka/a6ed1eaba28f587132bebb8e06b7c5ee to your computer and use it in GitHub Desktop.
Autohotkey script to link image in eagle
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
; Select several images, then press F1 | |
; A folder with a random name in format "r:{8 random char}" will be created with these images moved in | |
#HotIf WinActive("ahk_exe Eagle.exe") | |
$F1::{ | |
sample := "1234567890qwertyuiopasdfghjklzxcvbnm" | |
name := "r:" | |
loop 8 { | |
rnd := random(1,36) | |
name := name substr(sample, rnd, 1) | |
} | |
send "^+n" ; ctrl+shift+N | |
sleep 300 | |
sendtext name | |
send "{Enter}" | |
sleep 300 | |
send "^+j" ; ctrl+shift+J | |
sleep 300 | |
sendtext name | |
send "{Down}{Enter}^{Enter}" | |
/* add a "linked" tag | |
sleep 300 | |
sendtext "t" | |
sleep 300 | |
sendtext "linked" | |
sleep 300 | |
send "{Enter}{Escape}" | |
*/ | |
} | |
#HotIf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment