Jump to content

Help file to program. Best practice.


Recommended Posts

Try to find a solution for help files to my autoit executable.
Its installed from simple XP-POS cash computers to desktop with windows 7, 8, 10.
The compiled AutoIt program itself work everywhere, but the help file??

I need a help file called from from the program and I don't really know what working best in all OS platforms.
1. A wordfile is helpful enough, but word is not installed everywhere.
2. RTF is very big files with pictures.
3. I could save it as pdf, but not all have it either.
4. Tried  .MHT file, but downside is browser could cover hole screen if browser closed this way. I have not found any way to resize it to specific size when open up.
5. Use of IE.au3 lib. Well it could open mht files ,but always got question about use it as default browser or not. Think this also make IE browser lose control so I could not resize.
6. Look at making a  .CHM file, but I don't think its the future do use that format. (.hlp is no no and old)

Any tips of do it in autoit or make a call to open up in some nice format working everywhere.
 

Edited by DagSa
typo
Link to post
Share on other sites

.chm why not?

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to post
Share on other sites

After some more research I found that MHT created from a word file also create a lot of garbage. That is the reason I cant resize. Test code below.

; Open_Helpfile.au3
#include <IE.au3>

;Local $oIE = _IECreate("www.autoitscript.com")
;Local $oIE = _IECreate("file:///c:/projects/etikettmakarn/autoit/install_activate.mht")
;Local $oIE = _IECreate("file:///c:/projects/etikettmakarn/autoit/Home - AutoIt.mht")
Local $oIE = _IECreate("file:///c:/projects/etikettmakarn/autoit/google.mht")
;Sleep(1000)
;If Not _IEPropertyGet($oIE, "statusbar") Then _IEPropertySet($oIE, "statusbar", True)
Sleep(2000)
_IEPropertySet($oIE, "title","Etikettmakarn - Hjälp med Registrering")
_IEPropertySet($oIE, "menubar", 1)
_IEPropertySet($oIE, "statusbar", 1)
_IEPropertySet($oIE, "statustext", "Do you see this ????")
_IEPropertySet($oIE, "height", 500)
_IEPropertySet($oIE, "width", 700)
Exit

The only working mht file is the google page I created by firefox archive to mht plugin. Autoit homepage does also work as html. All other tested mht are to complicated and _IEPropeetySet don't work. I got this error message:

>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Projects\EtikettMakarn\AutoIT\Open_Helpfile.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147417848, Browser has been deleted prior to operation.)
--> IE.au3 T3.0-2 Error from function _IEPropertySet, $_IESTATUS_COMError (-2147417848)
--> IE.au3 T3.0-2 Error from function _IEPropertySet, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEPropertySet, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEPropertySet, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEPropertySet, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEPropertySet, $_IESTATUS_InvalidObjectType
+>15:47:39 AutoIt3.exe ended.rc:0


So problem is now how to clean the MHT code so it fit.
Question about default browser is coming up, but its a smaller problem.

Link to post
Share on other sites

I got win10 and the chm from autoit for example, works.

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By water
      ATTENTION! THIS IS STILL WORK IN PROGRESS!
      This is the modified version of MrCreatoR's "Simple Library Docs Generator".
      It allows to create CHM help files that look like the AutoIt help file.
      In additon this CHM files can then be used with Advanced.Help.
      This a very early alpha version - so it is miles away from being perfect. It's just something for you to play with.
      The documentation is in the making and will be published as soon as possible.
       
      BTW: If you like this UDF please click the "I like this" button. This tells me where to next put my development effort
    • By water
      The F1 key in SciTE displays the documentation for the word on which the cursor is located. Up to now this was only available for AutoIt.
      But times change and we change with them

      With the "Simple Library Docs Generator" created by MrCreatoR and customized by me, any CHM help file (Compressed HTML Help) can be created (more about this later in a separate thread). The only prerequisite: All function names have to start with the same identifier (like _AD_, _OL_ etc.).
      We have already created CHM help files for the following UDFs:
      Active Directory    AD-CHM.zip Outlook                  OutlookEX-CHM.zip TaskScheduler      TaskScheduler-CHM.zip WebDriver             Webdriver-CHM.zip
      Preliminary release of the WebDriver help file.
      This release is for you to play with. Please tell us what you like, what is missing or just what you think about it. For download please see the top of this post. Other CHM help files come with existing UDFs:
      WinHTTP The integration of these help files in SciTE is now done with the tool presented here.

      Advanced.Help
      This tool, created by BugFix from the german forum, allows custom CHM help files to be included in SciTE.
      The existing help key is used to call either the AutoIt help or the corresponding custom help. Depending on which keyword the cursor is currently on. For unknown keywords the AutoIt help is called. For AutoIt a separate window is opened and for the user-defined UDFs another window is opened, so you can work with both helps at the same time.
      The ZIP file contains an installation guide in German (Install_Deutsch.txt) and English (Install_English.txt) in which the installation and configuration is described in detail.
      For download please check the download forum.
    • By Jamestay97
      Hello! Thanks you for looking at my post
      **No source code I'm sorry work related can't copy information**
      I've been using autoit for about 1 year. 
      I'm having trouble automating a click on an internet explorer web page and I've tried a lot of examples from help pages and forums already. The object I'm trying to click on isnt always in the same spot so I can't use mouse click or control click, I have tried to use the different get collection options and clickbyname, or index or get object. I'm just struggling. 
      Description of object I'm trying to click -- 
      HTML Code looks like <a ng-click.. "Click Here" it appears it's just a click able object named "click here" that opens a hidden window by running a script inside the web page. I'm not able to grab the information from the window unless it's open so I have to automate this click somehow. 
       
      I understand it's difficult to assist without having something to look at, I apologize for that sincerely and appreciate and assistance and suggestions. 
    • By kingjacob90
      Hi
      So I am trying to click the green button, this button is not always in the same place. So fare I am trying to click it by finding the color but there is also something else with the same color on the screen (circled in yellow) that is causing issues. Is there a way to use the Title and Class of the window (can't be just the window as there are more than one with the same name).
      How does AutoIt Info get this information?

    • By water
      Due to corona I have a  lot of spare time at the moment. So I started to create a "real" help file fo the AD UDF (MS Active Directory).
      This help file should look/work like the AutoIt help file.

      Attached you find the first beta of the AD help file.
       
      Done so far:
      Similar functions have been assigned to a group (example: mail, mailbox and Exchange related functions have been assigned to the "EMail" group) Content, Search and Index tabs work Formatting is similar to the AutoIt help file Introduction page ToDo:
      Fill index tab Use folder icons Set the correct font size for the TOC Enhance the CSS to fully match the formatting of the AutoIt help file Create a documentation so you can create CHM files for other homegrown UDFs Create pages for the chapters - return an error message at the moment Upgrade to the latest version of Microsoft HTML Workshop Seems 1.3 is the latest What do you think?
      Is something still missing on the ToDo-list?
      Comments please
      AD.chm
×
×
  • Create New...