AutoHotkey Community

It is currently May 26th, 2012, 9:10 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: July 14th, 2008, 11:59 pm 
Offline

Joined: November 25th, 2004, 10:08 am
Posts: 57
I just started using Notepad++ and want to set up a macro to launch context sensitive help for Autohotkey. To do this I'd need to call the Autohotkey help with a command line including the search term.

Is there any way to launch the help this way (say from a command prompt)? I realize, I could set up an Autohotkey script to call the help file then initiate the search, but if I could do it directly at launch I think that might be better.

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 15th, 2008, 12:33 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
I think you can
Code:

;to see the folder structure
run, hh -decompile c:\temp\ahk c:\program files\autohotkey\autohotkey.chm

;to open to WinWait
run, hh c:\program files\autohotkey\autohotkey.chm::/docs/commands/WinWait.htm


TESTED

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 15th, 2008, 1:26 am 
Offline

Joined: November 25th, 2004, 10:08 am
Posts: 57
Thanks, but I don't think that will work for me since it requires specifying the whole path to the page you want to view. I'll only have the actual keyword, so I need some way to launch hh autohotkey.chm and give it "WinWait" as a keyword, then have it find the right page itself through its own index or search.

Is that possible?

Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 15th, 2008, 3:05 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
I use PSPad, where you tell it that ahk files are associated with autohotkey.chm, and it just works. Maybe you can find an open source editor that does the same thing, and see how they do it.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 15th, 2008, 3:58 am 
Offline

Joined: November 25th, 2004, 10:08 am
Posts: 57
Well, maybe I'll take a look at some other editors when I have a chance. For now, I think I'll just take a snippit of the Autohotkey script for context help (provided in the help file and here the sample scripts section) to setup a command line autohotkey script that will call the help file and search it for me.

Thanks!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, fusion1920, MSN [Bot], poserpro, tomoe_uehara and 58 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