; INITIALIZATION - ENVIROMENT;{-----------------------------------------------;#NoEnv; Recommended for performance and compatibility with future AutoHotkey releases.SendMode Input ; Recommended for new scripts due to its superior speed and reliability.SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.#SingleInstance force ; Ensures that only the last executed instance of script is running;}

Dictionary SearchPreforms a dictionary search at Dictionary.com of the highlighted text or text input if no text is highlighted. The results are trimmed down and displayed in a Gui using an ActiveX control.

When Gui is active, can double click on word in Gui to then search for that word.

When Gui is active, can use Left and Right arrows to move back and forth through history.

; INITIALIZATION - ENVIROMENT;{-----------------------------------------------;#NoEnv; Recommended for performance and compatibility with future AutoHotkey releases.SendMode Input ; Recommended for new scripts due to its superior speed and reliability.SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.#SingleInstance force ; Ensures that only the last executed instance of script is runningSetControlDelay-1;}

Thesaurus SearchPreforms a thesaurus search at Thesaurus.com of the highlighted text or text input if no text is highlighted. The results are trimmed down and displayed in a Gui using an ActiveX control.

When Gui is active, can double click on word in Gui to then search for that word.

When Gui is active, can use Left and Right arrows to move back and forth through history.

When Gui is active, can use Tab to move to box at top to enter new word.

; INITIALIZATION - ENVIROMENT;{-----------------------------------------------;#NoEnv; Recommended for performance and compatibility with future AutoHotkey releases.SendMode Input ; Recommended for new scripts due to its superior speed and reliability.SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.#SingleInstance force ; Ensures that only the last executed instance of script is runningSetControlDelay-1;}

It's a very fast, mind blowing idea! (Not only for dictionary. I already imagine adds free browsing!)P.s.: Yes, skipping back-forth either in form of buttons or Alt-Left-Right respectively would be conducive!P.p.s.: I noticed, that after Ctrl-A and in some lines highlighting till linefeed, Ctrl-C copies to clipboard more then just in Gui displayed text.

Remove unneeded information through Html DOM instead of using CSS to set to Display:none (Display:none still allowed the information to show up during Copy & Paste)

Added History, when Gui is active Left and Right Arrows go back and forth through history

It is worth noting that an HtmlFile does not seem to support getElementsByClassName so I added a function to walk through the DOM by getElementsByTagName and then checked those for the proper ClassName to remove then used child.parentNode.removeChild(child) to remove the unneeded nodes. I could have done it with a RegEx function but I wanted to figure out how to do it with DOM. I spent a good deal of time banging my head trying to make getElementsByClassName work trying ever way I could think of before I gave up on it.

Html DOM is great but tricky to figure out what all you can do as document objects, web browser objects, CSS, JavaScript etc. all flow together and overlap.

Still enthusiastic about your Dictionary. One more question 'cause didn't 've profound study of your code yet.Will it work forever? What if they change site conception?

Thank you, forever!

The script depends on Dictionary.com to get the definitions. If the html code that site returns when a definition request is sent changes significantly then the script will need to be modified. The modifications should not be that difficult.

The script is one of my standard bootup scripts that is always running on my computer so I intent to keep it updated for the foreseeable future.

At some point when I get the time I would like to add a script that does a similar thing for thesaurus.com to display synonyms and antonyms.

I modified your editor like behavior for history and made saving it to file.I added "Word origin" and <br> at the end, to show all content in every case.I added "More suggestions" after "Did you mean ...?".So at first I thought that my modifications were the reason.

But then even your original script responses with "NO results found on Dictionary.com" only.Too bad!

Here is my Thesaurus.com based on modified Dictionary.ahk, with a bit uncommon and even inconsequent approach.I think the site was easier to decipher and still works. (Probably wasn't modified yet!)

I can't see to get this to work, I get "failed attempt to launch program or document, action <http.......> params:<> the system cannot find the file specified and a pointer to line Run,%browser% %address% and I have checked the registry entry it is correct it points to firefoxURL

becritical wrote:I can't see to get this to work, I get "failed attempt to launch program or document, action <http.......> params:<> the system cannot find the file specified and a pointer to line Run,%browser% %address% and I have checked the registry entry it is correct it points to firefoxURL

The script does Run, firefox.exe. Maybe you have Firefox installed somewhere that Windows is not able to find it.This is the part that tries to figure out what the default browser is on the system.

Thank you but I am not having any luck! I changed to the full path and also checked the windows registry exists and it's exact and it is FirefoxURL. I still get the same message. "failed to lunch program...." Action: <http://www.google.com/search.... q=UserChoice"

becritical wrote:I can't see to get this to work, I get "failed attempt to launch program or document, action <http.......> params:<> the system cannot find the file specified and a pointer to line Run,%browser% %address% and I have checked the registry entry it is correct it points to firefoxURL

The script does Run, firefox.exe. Maybe you have Firefox installed somewhere that Windows is not able to find it.This is the part that tries to figure out what the default browser is on the system.