Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/02/2021 in all areas

  1. 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.
    2 points
  2. wd_capabilities.au3 UDF was just changed/modified/refactored .... and commited/merged to https://github.com/Danp2/WebDriver WARNING: Before you start using this UDF be sure you download the recent version from: https://github.com/Danp2/WebDriver For support please take a look: To the MOD team: This topic/thread should be closed for new post. Please *click.
    1 point
  3. Instead of FileReadToArray() use FileRead() + StringSplit(). This way you can use encoding parameter in FileOpen().
    1 point
  4. Just my 2 cents worth. Somewhere in this thread you say that your WD Capabilities UDF should become part of the WebDriver UDF. In this case, I would strongly recommend using the WebDriver UDF naming convention. The main benefit would be not to confuse users.
    1 point
  5. I just work so much with different code that it starts to be useful to me. Or maybe I'm getting older, and my eyes need better separation in function and variable names.
    1 point
  6. Hi there, glad my code was able to help you get started with incorporating Webview2 into AutoIt! I haven't updated that post in a while but I've wrapped more of the functionality since then. Certainly not all of it because I don't have a use for a lot of the methods right now. Awesome you were able to pick this up for the AutoIt community!
    1 point
  7. I think your best bet is another script to read your script... How about something like this? #include <Array.au3> Dim $filename = "Your Script File.au3" Dim $variables[1] Dim $RegExp $varFileContents = FileRead ($filename) $RegExp = StringRegExp ($varFileContents, "(\$\w{1,50})(?:\s|\[)", 3) If Not @error Then For $i = 0 to UBound($RegExp) - 1 StringReplace ($varFileContents, $RegExp[$i], "") ;~ MsgBox (0, "", "Variable Name: " & $RegExp[$i] & @CRLF & "Number of times it occurs: " & @extended) If @extended = 1 Then $variables[UBound($variables)-1] = $RegExp[$i] ReDim $variables[UBound($variables+1)] EndIf Next EndIf _ArrayDisplay($variables, "Variables Used Only Once") I'm pretty sure the Regular Expression should cover most variable/array names, but it could require a little tweaking.
    1 point
×
×
  • Create New...