Open file by shortcut in same instance program (SPEK)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
HefaistoS
Posts: 18
Joined: 18 Jul 2017, 03:12

Open file by shortcut in same instance program (SPEK)

18 Jul 2017, 03:47

Hi guys!

I'm struggling to find a way to open a file in a program through a shortcut and i need your help :D.
I want to open audio files (mp3,wav,flac,aiff) in a Acoustic Spectrum Analyser called SPEK (http://spek.cc/), by pressing CTRL+S.
I successfully managed to do that but I got stuck in another problem. Every time I open a file through this program, a separate instance opens. I don't want this, I want to open it in the same windows (instance).

This is my current script:

Code: Select all

^s:: ; ctrl+s
Clipboard =
Send ^c
ClipWait ;waits for the clipboard to have content
Run, C:\Program Files (x86)\Spek\spek.exe `"%clipboard%`"
return
I hope someone can help me :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 69 guests