AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Calling help with search keyword?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
tinaa



Joined: 25 Nov 2004
Posts: 57

PostPosted: Mon Jul 14, 2008 10:59 pm    Post subject: Calling help with search keyword? Reply with quote

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.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Mon Jul 14, 2008 11:33 pm    Post subject: Reply with quote

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
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
tinaa



Joined: 25 Nov 2004
Posts: 57

PostPosted: Tue Jul 15, 2008 12:26 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Tue Jul 15, 2008 2:05 am    Post subject: Reply with quote

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.
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
tinaa



Joined: 25 Nov 2004
Posts: 57

PostPosted: Tue Jul 15, 2008 2:58 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group