Messages - Lintalist [ switch to compact view ]

Pages: [1] 2 3 4 5 6 ... 25next
1
Post New Requests Here / Re: Files 2 folder on steroids.
« on: July 17, 2024, 01:28 PM »
Preferably the Util will be in AHK as I want to learn how it is working so I can extrapolate for the future.
Just because I wanted to play around with AutoHotkey v2 (yeah yeah I know late to the party) this seems to work. v1 would be very similar apart from "FileCreateDir" which is the command to create a folder instead of "DirCreate".
Code: Autohotkey [Select]
  1. #Requires AutoHotkey v2.0+
  2.  
  3. SelectedFolder:=FileSelect("D3", , "Select a folder") ; select a folder, we don't check for cancelation so look into that
  4.  
  5. Loop Files SelectedFolder "\*.pdf" ; find all PDFs in that folder
  6.         {
  7.          SplitPath A_LoopFileFullPath, , , , &OutNameNoExt     ; get the file name without the ext.
  8.          If !FileExist(SelectedFolder "\" OutNameNoExt ".txt") ; only create a txt file if doesn't exist
  9.                 FileAppend OutNameNoExt, SelectedFolder "\" OutNameNoExt ".txt"       ; make file with file name (no ext)
  10.          DirCreate SelectedFolder "\" OutNameNoExt             ; make folder
  11.          FileMove SelectedFolder "\" OutNameNoExt ".txt", SelectedFolder "\" OutNameNoExt "\" OutNameNoExt ".txt" ; move files
  12.          FileMove SelectedFolder "\" OutNameNoExt ".pdf", SelectedFolder "\" OutNameNoExt "\" OutNameNoExt ".pdf"
  13.         }
  14. MsgBox "Done" ; bob's your uncle

Edit: adding path to FileAppend, shouldn't matter much but just to be safe(r)

2
Lintalist v1.9.23 @ https://github.com/lintalist/lintalist/
    [*] New: Choice / FileList plugin: Image preview window (toggle w F3) (formats bmp,gif,ico,jpg,jpeg,png -- ) if the FileList has returned full paths (P option). If an option in Choice seems to be a valid path (a-z:\) it automatically opens the preview window. https://github.com/lintalist/lintalist/issues/239 
    [*] New: Settings AlternateRowColor and AlternateSelectionColor (activated by default), see configuration. Also available in Themes (see Themes.md) https://github.com/lintalist/lintalist/issues/279 
    [*] New: Search Gui, view menu: Save column widths manually + reset https://github.com/lintalist/lintalist/discussions/252 https://github.com/lintalist/lintalist/discussions/273 https://github.com/lintalist/lintalist/issues/279 
    [*] New: Press Ins-key to insert searched text into Input and Choice plugin edit controls https://github.com/lintalist/lintalist/discussions/280 
    [*] New: Editor: load edited snippet manually from external editor https://github.com/lintalist/lintalist/issues/268 
    [*] New: Allow TitleMatch to use ahk_exe https://github.com/lintalist/lintalist/issues/286 
    [*] New: Show a "ScriptTemplates" menu in the Editor on right click https://github.com/lintalist/lintalist/discussions/256 https://lintalist.github.io/#ScriptTemplates 
    [*] New: Choice plugin "Enable Choice to use typed in value" PR TFWol https://github.com/lintalist/lintalist/pull/258 
    [*] New: Adding bundle name + properties to ColumnSearch using 6< https://github.com/lintalist/lintalist/issues/272 
    [*] New: Expert option: Define additional tools and editors accessible via the Tools and Editor menu (see Editing snippets and Additional Tools in the Docs) 
    [*] Fix: Additional check for StartSearchHotkeyTimeOut https://github.com/lintalist/lintalist/discussions/261 
    [*] Fix: Bundle (properties) Editor Gui +Owner1 PR TFWol https://github.com/lintalist/lintalist/pull/282 
    [*] Fix: Editor Gui +Owner1 PR TFWol https://github.com/lintalist/lintalist/pull/267 
    [*] Fix: Use [[clipboard]] in scripts (directly or via llpart1/2) https://github.com/lintalist/lintalist/discussions/259 
    [*] Fix: actually add ColumnWidthShorthand.ini to repository - reference https://github.com/lintalist/lintalist/pull/173#issuecomment-715927123 
    [*] Fix: Check for updates via About, allow for "spaces in path" https://github.com/lintalist/lintalist/issues/262 
    [*] Minor changes to docs ty @TFWol, "check for updates" and links in "about"
    [/list]

    3
    ... use it to tab to the first editable box on a page and nothing happens.
    That is not surprising as it doesn't send the text but pastes it, so it isn't sending "tab tab tab + text" but just "^v"

    You could try make it a script, if you know it is always 3 tabs:

    Code: Autohotkey [Select]
    1. Send {Tab 3}
    2. Sleep 100
    3. Send ^v

    When it comes to browser automation relying on clicks and tabs is too tricky and you should really look into other options (also via AutoHotkey) - in no particular order:
    * Rufaydium (using webdriver) https://www.autohotkey.com/boards/viewtopic.php?f=6&t=102616
    * UIAutomation with a focus on Chrome https://www.autohotkey.com/boards/viewtopic.php?t=104999
    * Chrome.ahk https://www.autohotkey.com/boards/viewtopic.php?t=42890

    4
    v1.9.22 @ https://github.com/lintalist/lintalist/releases
      [*] Fix: StartSearchHotkeyTimeOut should now work (better) with both StartSearchHotkey and StartOmniSearchHotkey, incl. modifier keys https://github.com/lintalist/lintalist/issues/247#issuecomment-1627195701
      [*] Fix: Quote file paths in "Edit in Editor" (Snippet Editor) avoiding errors with spaces in paths https://github.com/lintalist/lintalist/issues/249
      [/list]
      v1.9.21
        v New: Toggle timer to
      StartSearchHotkey activation + option to disable to toggle view mode (wide/narrow)   
        see settings StartSearchHotkeyTimeOut and StartSearchHotkeyToggleView https://github.com/lintalist/lintalist/issues/247 
      [*] New: ShorthandPart2 setting to paste Part2 of snippet, similar to QuickSearchHotkey2 https://github.com/lintalist/lintalist/discussions/242
      [*] Fix: Shorthand not being saved when reloading with default bundle only https://github.com/lintalist/lintalist/issues/246
      [/list]

      5
      Some updates for Lintalist @ https://github.com/lintalist/lintalist/releases/

      v1.9.20
        [*] Fix: QuickSearchHotkey/QuickSearchHotkey2 did not restore clipboard with a Script snippet https://github.com/lintalist/lintalist/issues/236#issuecomment-1421500855
        [/list]
        v1.9.19
          [*] Fix: QuickSearchHotkey2 didn't work https://github.com/lintalist/lintalist/issues/236 https://github.com/lintalist/lintalist/issues/169
          [*] Fix: QuickSearchHotkey/QuickSearchHotkey2 did not restore clipboard https://github.com/lintalist/lintalist/issues/236
          [*] LLInit() in a Local Var + Script snippet combination https://github.com/lintalist/lintalist/issues/238#issuecomment-1404014721
          [*] New: [[LLShorthand]] available in scripts similar to [[LLPart1]] and [[LPart2]] https://github.com/lintalist/lintalist/issues/237
          [/list]
          v1.9.18
            [*] Fix: Column Search should now reset properly after a search, so normal search works correctly again https://github.com/lintalist/lintalist/issues/232
            [/list]
            v1.9.17
              [*] New: Added setting for ColumnSearchDelimiter to allow to search in a specific part of the snippet (part1, part2, hotkey, shorthand, and script) https://github.com/lintalist/lintalist/issues/227 (a ColumnSearch setting is also available as hidden setting to automatically implement this for all searches)
              [/list]
              v1.9.16
                [*] New: AltPaste, addition to define PasteDelay (ms) and PasteMethod (0-2) per program https://github.com/lintalist/lintalist/issues/230
                [*] Fix: Fix the change so it actually restores Clipboard contents https://github.com/lintalist/lintalist/issues/217 (line '970' was omitted from commit)
                [/list]

                Pages: [1] 2 3 4 5 6 ... 25next
                Go to full version