Martin,
Are you looking to extend this tool further? I've only got 22 listed (in c:\windows\vb_world)
What are you trying to add in?
Martin,
Are you looking to extend this tool further? I've only got 22 listed (in c:\windows\vb_world)
What are you trying to add in?
Here is what I have at the present. The Text - blah ones are common things that I write when moderating such as how to mark a thread as answered. I wanted to add a new one but it pushed the VBCode one off the bottom, so I had to combine the new one with another and call it Miscellaneous (which I now see that I misspelled).
BTW it doesn't matter where your htm files are as long as the path is reflected in the registry contexts entries.
Do not worry about your difficulties in Mathematics. I can assure you mine are still greater.Tips, Examples & Tutorials:
Albert Einstein
A valuable forum tool Generate unique TreeView keys TreeView with "open" and "closed folder" icons Time code using GetTickCount How to trap the Tab key Scroll a form NumberBox ActiveX control Color a ListView row An InputBox form How to use SaveSetting and GetSetting A program registration scheme Spellcheck a Textbox Resize controls Open Windows Explorer at Last Visited Path A Blackjack Game Count lines of code Private Message Viewer Copy/Paste VB Code Paste VB Code Add-In Insert Procedure Names Add-In A calculator for the game of Spider My review of REALbasic 2008 VB6 Debug Tutorial Picture/Video Viewer VBF Photo Contest Winners
2009 - 2013
I guess it's not possible to create a sub-menu on the short cut menu
Don't think I've ever seen it done, but might be possible with ie6+ or 5.5+ and context menusCode:SuperScript text - EditBy Misc Long Signature Welcome Underline etc.
What information that I've found says that it's not possible.
Do not worry about your difficulties in Mathematics. I can assure you mine are still greater.Tips, Examples & Tutorials:
Albert Einstein
A valuable forum tool Generate unique TreeView keys TreeView with "open" and "closed folder" icons Time code using GetTickCount How to trap the Tab key Scroll a form NumberBox ActiveX control Color a ListView row An InputBox form How to use SaveSetting and GetSetting A program registration scheme Spellcheck a Textbox Resize controls Open Windows Explorer at Last Visited Path A Blackjack Game Count lines of code Private Message Viewer Copy/Paste VB Code Paste VB Code Add-In Insert Procedure Names Add-In A calculator for the game of Spider My review of REALbasic 2008 VB6 Debug Tutorial Picture/Video Viewer VBF Photo Contest Winners
2009 - 2013
It must be, go to this page and right click!
Oh pretty much any page should have the encoding sub menu?
That's interesting but I have no idea how it's done. If you find out please let me know.
Do not worry about your difficulties in Mathematics. I can assure you mine are still greater.Tips, Examples & Tutorials:
Albert Einstein
A valuable forum tool Generate unique TreeView keys TreeView with "open" and "closed folder" icons Time code using GetTickCount How to trap the Tab key Scroll a form NumberBox ActiveX control Color a ListView row An InputBox form How to use SaveSetting and GetSetting A program registration scheme Spellcheck a Textbox Resize controls Open Windows Explorer at Last Visited Path A Blackjack Game Count lines of code Private Message Viewer Copy/Paste VB Code Paste VB Code Add-In Insert Procedure Names Add-In A calculator for the game of Spider My review of REALbasic 2008 VB6 Debug Tutorial Picture/Video Viewer VBF Photo Contest Winners
2009 - 2013
Marty or anyone, please put all together those tools in one download. thanks!
To give is always to be NOBLE...
To received is always to be BLESSED....
Each day strive to be NOBLE
Each day strive to be BLESSED
If this post has helped you. Please take time to rate it.
>=|+|=< Simply Me >=|+|=<
----------------------------------------
Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
Freeze 2005 DataGridView Column
Originally Posted by Simply Me
Done. See post #1.Originally Posted by stewie
Last edited by MartinLiss; May 9th, 2006 at 03:46 PM.
Do not worry about your difficulties in Mathematics. I can assure you mine are still greater.Tips, Examples & Tutorials:
Albert Einstein
A valuable forum tool Generate unique TreeView keys TreeView with "open" and "closed folder" icons Time code using GetTickCount How to trap the Tab key Scroll a form NumberBox ActiveX control Color a ListView row An InputBox form How to use SaveSetting and GetSetting A program registration scheme Spellcheck a Textbox Resize controls Open Windows Explorer at Last Visited Path A Blackjack Game Count lines of code Private Message Viewer Copy/Paste VB Code Paste VB Code Add-In Insert Procedure Names Add-In A calculator for the game of Spider My review of REALbasic 2008 VB6 Debug Tutorial Picture/Video Viewer VBF Photo Contest Winners
2009 - 2013
Updated 05/09/2006. Please see post #1.
Do not worry about your difficulties in Mathematics. I can assure you mine are still greater.Tips, Examples & Tutorials:
Albert Einstein
A valuable forum tool Generate unique TreeView keys TreeView with "open" and "closed folder" icons Time code using GetTickCount How to trap the Tab key Scroll a form NumberBox ActiveX control Color a ListView row An InputBox form How to use SaveSetting and GetSetting A program registration scheme Spellcheck a Textbox Resize controls Open Windows Explorer at Last Visited Path A Blackjack Game Count lines of code Private Message Viewer Copy/Paste VB Code Paste VB Code Add-In Insert Procedure Names Add-In A calculator for the game of Spider My review of REALbasic 2008 VB6 Debug Tutorial Picture/Video Viewer VBF Photo Contest Winners
2009 - 2013
Thanks Marty!Originally Posted by MartinLiss
To give is always to be NOBLE...
To received is always to be BLESSED....
Each day strive to be NOBLE
Each day strive to be BLESSED
If this post has helped you. Please take time to rate it.
>=|+|=< Simply Me >=|+|=<
----------------------------------------
Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
Freeze 2005 DataGridView Column
Hi,
I've attempted to integrate RobDog888's Advanced VB/Office Guru SpellChecker into Martin's spellCheck script. It's not perfect, so if anyone would like to test it please go ahead; any suggestions or fixes will be welcomed
I've tested it with W2K and Office 10 (2002)
To test open C:\WINNT\Vb-World
Make a copy of SpellCheck.htm rename it to SpellCheck.old
Then paste the code below into SpellCheck.htm and save, create a test page with a textarea on it enter some text select it, right click it and choose SpellCheck.VB Code:
<!-- +---------------------------------------------------------------------------+ VB-WORLD Forums - Tagging Scripts 1.0 Martin Liss Integrated with RobDog's Advanced VB/Office Guru SpellChecker [url]http://www.vbforums.com/showthread.php?t=350402[/url] Function: Spell Checker v2.0 Description: This script uses Microsoft Word to check the spelling in posts. Word is assumed to be present. +---------------------------------------------------------------------------+ --> <script type="text/vbscript"> Const wdWindowStateNormal=0 Const wdWindowStateMaximize=1 Const wdWindowStateMinimize=2 Const wdDialogToolsSpellingAndGrammar=828 Dim objWindow Dim objSource Dim objSelect Dim objSelectRange Set objWindow = window.external.menuArguments Set objSource = objWindow.event.srcElement Set oDocument = objWindow.document Set objSelect = oDocument.selection Set objSelectRange = objSelect.createRange() If objSource.tagName = "TEXTAREA" And Len(objSelectRange.text)>0 Then Dim sc: Set sc = New SpellChecker objSelectRange.text=sc.CheckThis(objSelectRange.text) Set sc=Nothing End If Class SpellChecker Dim moApp, mbKillMe Public Property Get KillMe() KillMe = mbKillMe End Property Public Property Let KillMe(Value) mbKillMe = Value End Property Private Sub Class_Initialize() On Error Resume Next '<INITIALIZE WORD> Set moApp = GetObject(, "Word.Application") 'window.alert(TypeName(moApp)) If TypeName(moApp) = "Empty" Or TypeName(moApp) = "Nothing" Then ' Word is not currently running. ' launch it and set flag to close it when done Set moApp = CreateObject("Word.Application") mbKillMe = True End If End Sub Private Sub Class_Terminate() If KillMe = True Then moApp.Quit False End If Set moApp=Nothing End Sub Public Function CheckThis(ByVal msSpell) On Error GoTo 0 'Resume Next Dim oDoc 'As Word.Document Dim iWSE 'As Integer Dim iWGE 'As Integer Dim sReplace 'As String Dim lResp 'As Long If msSpell = "" Then Exit Function 'window.alert(TypeName(moApp) & vbNewLine & moApp.Version) Select Case moApp.Version Case "9.0", "10.0", "11.0" Set oDoc = moApp.Documents.Add(, , 1, True) Case "8.0" Set oDoc = moApp.Documents.Add Case Else window.alert("Unsupported version of word.")' & moApp.Version) Exit Function End Select oDoc.Words.First.InsertBefore msSpell iWSE = oDoc.SpellingErrors.Count iWGE = oDoc.GrammaticalErrors.Count '<CHECK SPELLING AND GRAMMER DIALOG BOX> If iWSE > 0 Or iWGE > 0 Then '<HIDE MAIN WORD WINDOW> moApp.Visible = False If (moApp.WindowState = wdWindowStateNormal) Or (moApp.WindowState = wdWindowStateMaximize) Then moApp.WindowState = wdWindowStateMinimize Else moApp.WindowState = wdWindowStateMinimize End If '</HIDE MAIN WORD WINDOW> '<PREP CHECK SPELLING OPTIONS DIALOG BOX (MODIFY TO YOUR PREFERENCES)> moApp.Dialogs(wdDialogToolsSpellingAndGrammar).Application.Options.CheckGrammarWithSpelling = True moApp.Dialogs(wdDialogToolsSpellingAndGrammar).Application.Options.SuggestSpellingCorrections = True moApp.Dialogs(wdDialogToolsSpellingAndGrammar).Application.Options.IgnoreUppercase = True moApp.Dialogs(wdDialogToolsSpellingAndGrammar).Application.Options.IgnoreInternetAndFileAddresses = True moApp.Dialogs(wdDialogToolsSpellingAndGrammar).Application.Options.IgnoreMixedDigits = False moApp.Dialogs(wdDialogToolsSpellingAndGrammar).Application.Options.ShowReadabilityStatistics = False '</PREP CHECK SPELLING OPTIONS DIALOG BOX (MODIFY TO YOUR PREFERENCES)> '<DO ACTUAL SPELL CHECKING> moApp.Visible = True moApp.Activate lResp = moApp.Dialogs(wdDialogToolsSpellingAndGrammar).Display '</DO ACTUAL SPELL CHECKING> If lResp < 0 Then moApp.Visible = True window.alert("Applying corrections!") Call Window.ClipboardData.SetData("Text","") 'Clipboard.Clear oDoc.Select oDoc.Range.Copy sReplace = Window.ClipboardData.GetData("Text") 'sReplace = Clipboard.GetText(1) '<FIX FOR POSSIBLE EXTRA LINE BREAK AT END OF TEXT> If (InStrRev(sReplace, Chr(13) & Chr(10))) = (Len(sReplace) - 1) Then sReplace = Mid(sReplace, 1, Len(sReplace) - 2) End If '</FIX FOR POSSIBLE EXTRA LINE BREAK AT END OF TEXT> CheckThis = sReplace ElseIf lResp = 0 Then window.alert("Spelling corrections have been canceled!") CheckThis = msSpell End If Else window.alert("No spelling errors found or no suggestions available!") CheckThis = msSpell End If '</CHECK SPELLING AND GRAMMER DIALOG BOX> oDoc.Close False Set oDoc = Nothing '<HIDE WORD IF THERE ARE NO OTHER INSTANCES> If KillMe = True Then moApp.Visible = False End If '</HIDE WORD IF THERE ARE NO OTHER INSTANCES> If Err.Number <> 0 Then If Err.Number = "91" Then 'Resume Next ElseIf Err.Number = "462" Then window.alert("Spell checking is temporary un-available! Try again after program re-start.") ElseIf Err.Number = 429 Then Set moApp = Nothing 'Resume Next Else window.alert(Err.Number & " " & Err.Description) End If End If End Function End Class </script>
I don't have time to update the installation package but here is a new vbcode htm file that you can substitute for the old one. This one will format your VB code in the new fashion.
Do not worry about your difficulties in Mathematics. I can assure you mine are still greater.Tips, Examples & Tutorials:
Albert Einstein
A valuable forum tool Generate unique TreeView keys TreeView with "open" and "closed folder" icons Time code using GetTickCount How to trap the Tab key Scroll a form NumberBox ActiveX control Color a ListView row An InputBox form How to use SaveSetting and GetSetting A program registration scheme Spellcheck a Textbox Resize controls Open Windows Explorer at Last Visited Path A Blackjack Game Count lines of code Private Message Viewer Copy/Paste VB Code Paste VB Code Add-In Insert Procedure Names Add-In A calculator for the game of Spider My review of REALbasic 2008 VB6 Debug Tutorial Picture/Video Viewer VBF Photo Contest Winners
2009 - 2013
Marty, What's the difference of the old one (date 05-09-2006) with this new one? correct me if im wrong...I compared the code of the old against the new one and it seem they are the same?
To give is always to be NOBLE...
To received is always to be BLESSED....
Each day strive to be NOBLE
Each day strive to be BLESSED
If this post has helped you. Please take time to rate it.
>=|+|=< Simply Me >=|+|=<
----------------------------------------
Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
Freeze 2005 DataGridView Column
This version has
oSelectRange.text = "[highlight='vb']" & oSelectRange.text & "[/highlight]"
Do not worry about your difficulties in Mathematics. I can assure you mine are still greater.Tips, Examples & Tutorials:
Albert Einstein
A valuable forum tool Generate unique TreeView keys TreeView with "open" and "closed folder" icons Time code using GetTickCount How to trap the Tab key Scroll a form NumberBox ActiveX control Color a ListView row An InputBox form How to use SaveSetting and GetSetting A program registration scheme Spellcheck a Textbox Resize controls Open Windows Explorer at Last Visited Path A Blackjack Game Count lines of code Private Message Viewer Copy/Paste VB Code Paste VB Code Add-In Insert Procedure Names Add-In A calculator for the game of Spider My review of REALbasic 2008 VB6 Debug Tutorial Picture/Video Viewer VBF Photo Contest Winners
2009 - 2013