AutoHotkey Community

It is currently May 27th, 2012, 11:22 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [solved] popsel hotkey
PostPosted: July 2nd, 2009, 7:17 am 
Offline

Joined: July 2nd, 2009, 6:54 am
Posts: 9
Hello, I've been having a problem getting a certain program to work properly.

I use a program called PopSel by Horst as a simple program launcher.
http://home.mnet-online.de/horst.muc/wpop.htm

I use
#MButton::Run C:\Program Files\PortableApps\popsel\PopSel.exe
in order to get it to run with a win-middle click.

Here's the problem—the hotkey works alright, but for some reason, I'm unable to access text files in the popsel directory. (it has a function to access text files within its directory)

If I just open the executable in its folder, or use a windows shortcut, it works fine and I'm able to access text files. However, it only works for autohotkey IF the script is in the popsel directory. I like to keep all of my hotkeys in one script, but when I try to launch it outside the popsel directory, autohotkey doesn't seem to "find" the text files.

There must be a simple line of code I'm missing. Any ideas?


Last edited by supulton on July 2nd, 2009, 7:28 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2009, 7:27 am 
Offline

Joined: July 2nd, 2009, 6:54 am
Posts: 9
Well, I've found a quick solution actually.

Although I can't launch the executable directly, for some reason everything works peachy if I launch a windows link to the executable.

ie. #MButton::Run C:\Documents and Settings\Vic\desktop\PopSel.lnk

Works for me.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2009, 7:40 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
supulton wrote:
Although I can't launch the executable directly, for some reason everything works peachy if I launch a windows link to the executable.


If that is the case, the following would work:

Code:
#MButton::Run C:\Program Files\PortableApps\popsel\PopSel.exe, C:\Program Files\PortableApps\popsel


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2009, 9:26 am 
Offline

Joined: July 2nd, 2009, 6:54 am
Posts: 9
SKAN wrote:
supulton wrote:
Although I can't launch the executable directly, for some reason everything works peachy if I launch a windows link to the executable.


If that is the case, the following would work:

Code:
#MButton::Run C:\Program Files\PortableApps\popsel\PopSel.exe, C:\Program Files\PortableApps\popsel


Thanks a lot! More convenient than my shortcut approach. I'll remember that tip.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group