UltraFine Posted November 12, 2008 Share Posted November 12, 2008 (edited) Loading Image...why i can not run the example codes direct from help file?i have Autoit v3.2.12.1 and Latest Beta installed. i reinstalled but it's not working. Edited November 12, 2008 by L0veUK Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 12, 2008 Share Posted November 12, 2008 why i can not run the example codes direct from help file?i have Autoit v3.2.12.1 and Latest Beta installed. i reinstalled but it's not working.Exactly how are you trying to run them? If it requires a Beta function, you need to use Alt-F5 vice F5 to run it, for example. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Pain Posted November 12, 2008 Share Posted November 12, 2008 As far as I can see the "Open this Script" button are missing. Most likely because of your browser or browser settings because the helpfile is a compiled html file. Link to comment Share on other sites More sharing options...
UltraFine Posted November 12, 2008 Author Share Posted November 12, 2008 As far as I can see the "Open this Script" button are missing. Most likely because of your browser or browser settings because the helpfile is a compiled html file.You are right "Open this Script" button is missing, how to fix this problem? Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 12, 2008 Share Posted November 12, 2008 You are right "Open this Script" button is missing, how to fix this problem?This sounded familiar and recent, so I searched a little and found a fix posted by Jos: opening an example inside AutoIt.chm in SciTE Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
UltraFine Posted November 12, 2008 Author Share Posted November 12, 2008 This sounded familiar and recent, so I searched a little and found a fix posted by Jos: opening an example inside AutoIt.chm in SciTE thanks PsaltyDS, i compiled the script > copied the compiled exe to AtoIt3 folder > Run the file and it successfully registered the ocx. but i am still having the same problem and i can not run the scripts from help file because "Open this Script" button is not there. see the image in my first post of this thread. thanks. Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 12, 2008 Share Posted November 12, 2008 thanks PsaltyDS, i compiled the script > copied the compiled exe to AtoIt3 folder > Run the file and it successfully registered the ocx. but i am still having the same problem and i can not run the scripts from help file because "Open this Script" button is not there. see the image in my first post of this thread. thanks.I'm not sure. The problem before was the button didn't work. It was always at least present. Did you install the full SciTE4AutoIt3, or just the minimal version that is packed with AutoIt? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Developers Jos Posted November 12, 2008 Developers Share Posted November 12, 2008 (edited) I'm not sure. The problem before was the button didn't work. It was always at least present. Did you install the full SciTE4AutoIt3, or just the minimal version that is packed with AutoIt? Don't think that will do much to solve this issue The only reason for this issue I have seen till now is that there is a problem with the registration of hhctrl.ocx which was solved by doing the this command: regsvr32 hhctrl.ocxMaybe there is another problem with hhctrl.ocxJos Edited November 12, 2008 by Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
UltraFine Posted November 12, 2008 Author Share Posted November 12, 2008 Don't think that will do much to solve this issue The only reason for this issue I have seen till now is that there is a problem with the registration of hhctrl.ocx which was solved by doing the this command: regsvr32 hhctrl.ocxMaybe there is another problem with hhctrl.ocxJosi used this command again and again but same problem. who is the author of help file? maybe he can help me.@Josyou have a PM. Link to comment Share on other sites More sharing options...
Developers Jos Posted November 12, 2008 Developers Share Posted November 12, 2008 (edited) i used this command again and again but same problem. who is the author of help file? maybe he can help me.@Josyou have a PM.What is the specific question about the helpfile?You can view the source of the page that contains the reference to the ocx. We are using a standardly available option to open the script.Jos Edited November 12, 2008 by Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 12, 2008 Share Posted November 12, 2008 What is the specific question about the helpfile?You can view the source of the page that contains the reference to the ocx. We are using a standardly available option to open the script.JosSome kind of policy or preference, local to his computer, blocking ActiveX? Just completely guessing now. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
youknowwho4eva Posted November 12, 2008 Share Posted November 12, 2008 Just curious, just to the left of that is a display button. Does that button appear? It looks as if the image is missing... Has it always been like this? And have you tried reinstalling? I would also check into your internet explorer internet options. Giggity Link to comment Share on other sites More sharing options...
Developers Jos Posted November 12, 2008 Developers Share Posted November 12, 2008 (edited) Just curious, just to the left of that is a display button. Does that button appear? It looks as if the image is missing... Has it always been like this? And have you tried reinstalling? I would also check into your internet explorer internet options.I think the missing images is the button. this is an example of the code used in the html page: <OBJECT id=hhctrl type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" width=58 height=57> <PARAM name="Command" value="ShortCut"> <PARAM name="Button" value="Text:Open this Script"> <PARAM name="Item1" value=",Examples\HelpFile\If.au3,"> </OBJECT> Edited November 12, 2008 by Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
UltraFine Posted November 15, 2008 Author Share Posted November 15, 2008 I think the missing images is the button. this is an example of the code used in the html page: <OBJECT id=hhctrl type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" width=58 height=57> <PARAM name=%26%2334%3BCommand%26%2334%3B value="ShortCut"> <PARAM name=%26%2334%3BButton%26%2334%3B value="Text:Open this Script"> <PARAM name=%26%2334%3BItem1%26%2334%3B value=",Examples\HelpFile\If.au3,"> </OBJECT>Problem still exists... Link to comment Share on other sites More sharing options...
Dolemite50 Posted February 17, 2009 Share Posted February 17, 2009 Problem still exists...I still have the same problem as well. I've tried all of the above t-shooting steps but I only get an X where the image should be. (non-clickable)It appears in the code when I view source but something must be blocking it. Link to comment Share on other sites More sharing options...
Dolemite50 Posted November 16, 2009 Share Posted November 16, 2009 Sorry to revive an old topic but it might help somebody retain a few handfuls of hair. Sometime after installing Win7 the issue returned. (Helpfile example shows only an X where the "Open Script" button should be) I finally tracked down the culprit to being HHCtrl Object installed but somehow disabled. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted November 16, 2009 Share Posted November 16, 2009 I had this problem once, I fixed it by reinstalling Windows .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Dolemite50 Posted November 16, 2009 Share Posted November 16, 2009 I had this problem once, I fixed it by reinstalling Windows Hehe, I think that's how I cleverly resolved it the first time....and also how I cleverly broke it again this time. Link to comment Share on other sites More sharing options...
Developers Jos Posted November 17, 2009 Developers Share Posted November 17, 2009 Have you tried running this command at the commandprompt ? : regsvr32 hhctrl.ocx Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Dolemite50 Posted November 17, 2009 Share Posted November 17, 2009 Hi Jos,, Ya, I even tried it using your script: expandcollapse popup; Scriptname: FixHelpFileExamples.au3 ; Script to fix Registry setting for SciTE/AutoIt3/Helpfile Open Button ; If Not FileExists(@ScriptDir & '\Autoit3.exe') then MsgBox(16,"Autoit3.exe error",'File Autoit3.exe not found. Place this script in the AutoIt3 program directory and run it again.') Exit EndIf If Not FileExists(@ScriptDir & '\SciTE\SciTE.exe') then MsgBox(16,"SciTE.exe error",'File ..\SciTE\SciTE.exe not found. Something is not installer the standard way. Exiting.') Exit EndIf $Open_SciTe = '"' & @ScriptDir & '\SciTE\SciTE.exe" "%1"' $Edit_SciTe = '"' & @ScriptDir & '\SciTE\SciTE.exe" "%1"' $Run_SciTe = '"' & @ScriptDir & '\AutoIt3.exe" "%1" %*' $Open = RegRead("HKCR\AutoIt3Script\Shell\Open\Command", "") $Edit = RegRead("HKCR\AutoIt3Script\Shell\Edit\Command", "") $Run = RegRead("HKCR\AutoIt3Script\Shell\Run\Command", "") $FixedOpen = RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.au3", "Application") ; Check for "Always open with settings If $FixedOpen <> "" Then If MsgBox(4, "Override setting for Open on .AU3", 'You have specified to "Always Open" with:' & @CRLF & $FixedOpen & _ @CRLF & " But this should be removed and the standard setting should be used!" & _ @CRLF & @CRLF & "Click Yes to Remove this Keys") = 6 Then $rc = RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.au3", "Application") ConsoleWrite('-RegDelete ("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.au3", "Application") $rc = ' & $rc & " @Error=" & @error & @CRLF) Else ConsoleWrite('! Override setting for Open on .AU3 not removed' & @CRLF) EndIf Else ConsoleWrite('+No Open override on .au3.' & @CRLF) EndIf ; Check Edit Settings If $Edit <> $Edit_SciTe Then If MsgBox(4, "Edit Settings for AU3", 'Your "Edit" settings are currently:' & @CRLF & $Edit & @CRLF & " But should be:" & @CRLF & $Edit_SciTe & @CRLF & @CRLF & " Update?") = 6 Then $rc = RegWrite("HKCR\AutoIt3Script\Shell\Edit\Command", "", "REG_SZ", $Edit_SciTe) ConsoleWrite('-RegWrite Edit $rc = ' & $rc & " @Error=" & @error & @CRLF) EndIf Else ConsoleWrite('+Edit already set to default = ' & $Edit & @CRLF) EndIf ; Check Open Settings If $Open <> $Open_SciTe Then If MsgBox(4, "Open Settings for AU3", 'Your "Open" settings are currently:' & @CRLF & $Open & @CRLF & " But should be:" & @CRLF & $Open_SciTe & @CRLF & @CRLF & " Update?") = 6 Then RegWrite("HKCR\AutoIt3Script\Shell\Open\Command", "", "REG_SZ", $Open_SciTe) ConsoleWrite('-RegWrite Open $rc = ' & $rc & " @Error=" & @error & @CRLF) EndIf Else ConsoleWrite('+Open already set to default = ' & $Open & @CRLF) EndIf ; Check Run Settings If $Run <> $Run_SciTe Then If MsgBox(4, "Run Setting for AU3", 'Your "Run" settings are currently:' & @CRLF & $Run & @CRLF & " But should be:" & @CRLF & $Run_SciTe & @CRLF & @CRLF & " Update?") = 6 Then RegWrite("HKCR\AutoIt3Script\Shell\Run\Command", "", "REG_SZ", $Run_SciTe) ConsoleWrite('-RegWrite Run $rc = ' & $rc & " @Error=" & @error & @CRLF) EndIf Else ConsoleWrite('+Run already set to default = ' & $Run & @CRLF) EndIf ; ;Ensure hhctrl is properly registered $rc = RunWait(@ComSpec & " /c regsvr32 hhctrl.ocx", "", @SW_HIDE) ConsoleWrite('+RegSvr $rc = ' & $rc & @CRLF) I think a safety net to that script would be to also ensure that the ocx is enabled. (which was my problem) Sorry to be a pain in the ass, I have no idea how it got disabled. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now