| View previous topic :: View next topic |
| Author |
Message |
Jon
Joined: 28 Apr 2004 Posts: 349
|
Posted: Wed Apr 27, 2005 9:25 pm Post subject: Automatically Search AHK Help |
|
|
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 |
|
 |
BoBo Guest
|
Posted: Wed Apr 27, 2005 9:39 pm Post subject: |
|
|
I've found (by mistake ) 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  |
|
| Back to top |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Wed Apr 27, 2005 9:48 pm Post subject: |
|
|
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? _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
Jon
Joined: 28 Apr 2004 Posts: 349
|
Posted: Wed Apr 27, 2005 10:06 pm Post subject: |
|
|
| BoBo wrote: | I've found (by mistake ) 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  |
I remembered I could do that just as I was posting it . 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 |
|
 |
|