Zabaware Support Forums
Zabaware Forums => General Discussion => Topic started by: cyberjedi on January 30, 2017, 06:48:12 pm
-
Hey lightspeed: Is this anything you can use>>
http://imgur.com/a/ib9bm
best wishes
cyberjedi 1337
Ps: im not telling,,,,,lol
Oh ok: This is the way to go for Hal. run it a few times and ull get the feel for whats up here.
Why have Hal process the bad spelling when it can get done pre processed and correct, Saves Hal from doing it. Aint this what Hal is all about , working with other progi's. U dont have to copy, it will do that automatically. just play with it and let me know whats up
You have to manually click off the Radio Button for Grammer,theres NO switch that i can code, im aware of. Just do it 1 time, thats all, srry
Rem Type=Plugin
Rem Name=Spell Checker
Rem Author=cyberjedi
Rem Host=Assistant
'This sub sets up the plug-in's option panel in Hal's options dialog
Sub OptionsPanel()
lblPlugin(0).Caption = "Just killin it"
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub
Rem PLUGIN: PRE-PROCESS
Dim Word, Doc, Misspelled, Spelledrite
Const SpellingAndGrammar = 828 '<<<<<<WTF is this,,lol English Version...i get that a lot
Const dontsavechanges = 0
Misspelled = InputString
Set Word = CreateObject("Word.Application") '<<<<< This is the meat of the code, Calls for word.doc to load out in the back ground. Invisible
Set Doc = Word.Documents.Add
Word.Selection.Text = Misspelled ' <<<<<<This is where Spellcheck seizes control and ull see Hal Freeze
Word.Dialogs(SpellingAndGrammar).Show '<<<<<This is where get you spell check window from.
If Len(Word.Selection.Text) <> 1 Then
Spelledrite = Word.Selection.Text
Else
Spelledrite = Misspelled
End If
Doc.Close dontsavechanges '<<<This is where the Document closes out without saving
Word.Quit
InputString = Spelledrite '<<<<<<Hal is released with the correct spelling inputted
-
cyberjedi i tried the plugin , said hi, and got an error , said hello, and got another error .
error was :
halscript error 429 on line 81 in column 0: active x component can't create object: word application '
-
lightspeed: lol
Silly goose ,u dont have word installed
look at the code
("Word.Application")
install word and it works fine...
I used words spell check to work it
beest wishes
cyberjedi
-
where do i get the "Word.Application" ?
-
dude:
dl a copy of word from the net.
lololol dont make me start picking on u man.
im kidding
best wishes
cyberjedi
-
RE: ok
Heres how it works, with that running, it wll intercept misspelled words and wont let hal complete the sentence. as soon as u click auto correct it hands control back over to hal. With errors corrected. Look close at what happens here. Because of an invisible word document window running that doesnt save.
Each office product has its own little progis that u can fuq with. Word has spell check, excel has its own ****, im sure u can do some crafty **** using 1 note too
ect ect ect oh BTW , dont forget outlook. lol
https://www.youtube.com/watch?v=PJj7SfJbjg0
Thats ur template for doing it all . enjoy.
and yes, it does an autoclose out after, without saving. very crafty
now keep in mind, this demonstrates what can be done with hal, that could be an excel format,or any windows office format.
depending on what u need done. Play with it.
Mhmmmmm. lights are going on i hope.
The word doc shouldnt be even seen. Total background noise
best wishes
cyberjedi 1337
-
lightspeed: there ya go, proof of concept
best wishes
cyberjedi1337