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 

Automatically Search AHK Help

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Jon



Joined: 28 Apr 2004
Posts: 349

PostPosted: Wed Apr 27, 2005 9:25 pm    Post subject: Automatically Search AHK Help Reply with quote

I've found that when I'm writing scipts I'm continually looking up the commands in the help files so I've put together this program which will automatically search the help files online as you are typing your code. A small browser window will appear in the bottom right of the screen.

I have set it to look for the word "pad" in the active window title so that it will only work when your editor window is active. You can change this in the Editor.ini file.

http://hometown.aol.co.uk/JRMC137/AHKHelp.zip (If the link doesn't work keep trying. AOL seem to be having problems recently)



I've pinched bits of code from Rajats intellisence script.

It may look a bit too big on an 800x600 display. The browser window can be resized.

I've used VB.net to make the browser window so if you get any error messages about missing DLL's then you'll need to install the Microsoft .NET Framework from here.

I'll probably change it to get the pages from the offline help files instead tommorrow to speed it up and to avoid problems with corporate firewalls. It curently searches the online help so you need to be connected to the internet.


Last edited by Jon on Wed Apr 27, 2005 10:28 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
BoBo
Guest





PostPosted: Wed Apr 27, 2005 9:39 pm    Post subject: Reply with quote

I've found (by mistake Wink) that you can open/browse any AHK help topic "offline" with IE (regardless that it has been "bundled" within an CHM project. eg. INIRead

Code:
MyAHKPath = C:\Download\Software\AutoHotkey

Run, mk:@MSITStore:%MyAHKPath%\AutoHotkey.chm`::/docs/commands/IniRead.htm

Maybe this is of use for your project Wink
Back to top
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Wed Apr 27, 2005 9:48 pm    Post subject: Reply with quote

Although the AHK help file has great functionality on Index it doesn't provide intellisense so it's quite good thanks.

Btw. it only shows If(..) commands, is this how it was meant to be?
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jon



Joined: 28 Apr 2004
Posts: 349

PostPosted: Wed Apr 27, 2005 10:06 pm    Post subject: Reply with quote

BoBo wrote:
I've found (by mistake Wink) that you can open/browse any AHK help topic "offline" with IE (regardless that it has been "bundled" within an CHM project. eg. INIRead

Code:
MyAHKPath = C:\Download\Software\AutoHotkey

Run, mk:@MSITStore:%MyAHKPath%\AutoHotkey.chm::/docs/commands/IniRead.htm

Maybe this is of use for your project Wink


I remembered I could do that just as I was posting it Embarassed. I'll change it tommorrow to use that method.

Quote:
Btw. it only shows If(..) commands, is this how it was meant to be?


Yes, It will show the If statements when it first starts (it probably shouldn't ) but if you open notepad and type in "msgbox, " for example the commands will change to the message box ones. Click on the links in the left hand column and the page from the help files will appear in the right hand column.

edit:
It will also search for part of a word so for example if you type "win" then return it will bring up all of the windows commands.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions 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