themax90 Posted August 9, 2006 Share Posted August 9, 2006 How do a display a chm file from inside autoit? If $msg = $showhelp Then Run($File) Doesn't work. Thank you for the help. AutoIt Smith Link to comment Share on other sites More sharing options...
Knight Posted August 9, 2006 Share Posted August 9, 2006 (edited) $File = "C:\Program Files\AutoIt3\AutoIt.chm" Run(@ComSpec & " /c Start " & FileGetShortName($File), "", @SW_HIDE)oÝ÷ Ù8b²Ç+pYh¥éÚ'âè§Ûyö®Úk¢ Ú@ÈMDKßÛ0¢¹-¢®¶sbb33c´fÆRÒgV÷C¶GG¢ò÷wwræWFöG67&Bæ6öÒgV÷C°¥'Vâ6öÕ7V2fײgV÷C²ö27F'BgV÷C²fײfÆTvWE6÷'DæÖRb33c´fÆRÂgV÷C²gV÷C²Â5uôDR I live by this simple run command. Allows me to open any file without worry. Edited August 9, 2006 by Knight Link to comment Share on other sites More sharing options...
themax90 Posted August 9, 2006 Author Share Posted August 9, 2006 Thank you. Link to comment Share on other sites More sharing options...
nitekram Posted August 9, 2006 Share Posted August 9, 2006 Thank you.Can I add a question that fits this topic - is there a way to open the file to a certain link?If you need more information - I will provide. 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator Link to comment Share on other sites More sharing options...
Knight Posted August 9, 2006 Share Posted August 9, 2006 $File = "mk:@MSITStore:C:\Program%20Files\AutoIt3\beta\AutoIt3.chm::/html/license.htm" Run(@ComSpec & " /c Start " & FileGetShortName($File), "", @SW_HIDE) I got the URL from right clicking the CHM page and pulling the address. However it doesn't open it in "CHM" format.. So I am not sure exactly how to do it. Link to comment Share on other sites More sharing options...
nitekram Posted August 9, 2006 Share Posted August 9, 2006 $File = "mk:@MSITStore:C:\Program%20Files\AutoIt3\beta\AutoIt3.chm::/html/license.htm" Run(@ComSpec & " /c Start " & FileGetShortName($File), "", @SW_HIDE) I got the URL from right clicking the CHM page and pulling the address. However it doesn't open it in "CHM" format.. So I am not sure exactly how to do it.That at least starts the process down the path I might take, thanks. 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator Link to comment Share on other sites More sharing options...
Knight Posted August 9, 2006 Share Posted August 9, 2006 (edited) With a little research.. This seems to work to go to a specific topic. $File = "hh.exe C:\Program Files\AutoIt3\beta\AutoIt3.chm ::/html/license.htm" Run(@ComSpec & " /c Start " & FileGetShortName($File), "", @SW_HIDE) Edited August 9, 2006 by Knight Link to comment Share on other sites More sharing options...
nitekram Posted August 9, 2006 Share Posted August 9, 2006 With a little research.. This seems to work to go to a specific topic. $File = "hh.exe C:\Program Files\AutoIt3\beta\AutoIt3.chm ::/html/license.htm" Run(@ComSpec & " /c Start " & FileGetShortName($File), "", @SW_HIDE)That works great - where did you find that and how are you opening an htm file in the chm file (or if memory serves me right - the chm file is really a bunch of htm files banded together in a help file) 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator Link to comment Share on other sites More sharing options...
theguy0000 Posted August 9, 2006 Share Posted August 9, 2006 (edited) That works great - where did you find that and how are you opening an htm file in the chm file (or if memory serves me right - the chm file is really a bunch of htm files banded together in a help file)yes, memory does serve you right. Edited August 9, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
nitekram Posted August 9, 2006 Share Posted August 9, 2006 yes, memory does serve you right. Then I guess my next question would be - is there a naming convention for the files and if not is there a listing of all the htm files with out having to use the website and hover over each link to get the ones I want? 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator 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