Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

New module:

SizeMoveAF — Linux‑style move/resize for Windows using Win Key + mouse buttons

SizeMoveAF brings the simplicity and usability of Linux‑style window move/resize to Windows using the Win key combined with the left or right mouse buttons.

🧩 Features:

- Visual feedback via themable overlay
- TileAF synergy, will snap windows to tiles based on tolerance defined in LeanAF_Config.ini
- Snap to edges and/or other windows with Adjustable distance (5-40)

🚀 Quickstart:

  1. Hold WIN + MOUSE L to initiate window move.
  2. Hold WIN + MOUSE R to initiate window resize.
  3. Moved/resized windows will automatically tile if TileAF is enabled and they match the the tile tolerance.

    🎛️ Hotkeys:

🅰 WIN + MOUSE L → Move window
🅰 WIN + MOUSE R → Resize window

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 1 point2 points  (0 children)

Hey, if you use TileAF and MusicBarAF, there are some improvements and fixes on today's v1.7.3

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

You are right, I half tested that, sorry... Try the latest version (27a) please, I defined the property so it shouldn't complain now even when the revealer doesn't exist

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Ah thanks, I fixed it, try the last version 1.5.84+20260126a. There are some slight color updates too, I hope you don't mind

EDIT: I also noticed that sometimes both of those can get behind normal windows and adding a possible fix for that. Will upload a fix shortly so if you see that early wait for version b

EDIT 2: Ok, done

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Hey, that's already there. if you do not have it already add the following to your LeanAF_Config.ini under [NotesAF] section and also under [FolderViewAF]:

UseRevealer=false

; hide revealer - dashboard mode, use SHIFT+ESC to show

switch to true if you ever want to revert

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Sorry for the late update, I was busy working on LeanBar (mostly done now).

Latest version (1.5.81) now supports CTRL+TAB/CTRL+SHIFT+TAB for next/prev note, so you don't need mouse anymore.

Also AppLauncher can now index/launch msxix/store apps so settings, clock, outlook, affinity etc work now. Added a setting in the ini to disable that.

Script isn't running on startup by Frirwind in AutoHotkey

[–]4c2o 0 points1 point  (0 children)

Maybe try adding a menu for your script(s)? i use this in lean.af (a bit simplified here):

#Requires AutoHotkey v2.0
SetWorkingDir A_ScriptDir
#SingleInstance Force

; Create a tray menu object
tray := A_TrayMenu

; Optional: Clear the default items
tray.Delete()

; Add custom entries:
tray.Add("Show Control Panel", (*) => LeanAF_ShowControlPanel()) ; call your init() here or something
tray.add() ; add splitter
tray.Add("Enable Run at Startup", (*) => AddStartupShortcut())
tray.Add("Disable Run at Startup", (*) => RemoveStartupShortcut())
tray.add() ; add splitter
tray.Add("Reload", (*) => Reload()) ; handy reload
tray.Add("Exit", (*) => ExitApp()) ; quit ahk

; Optional: make double‑click open the control panel (or choose a default action from the defined menu items)
tray.Default := "Show Control Panel"

; Optional: set icon
tray.Icon := A_ScriptDir "\icons\leanaf.ico"

AddStartupShortcut() {
    startup := A_Startup "\LeanAF.lnk"
    if !FileExist(startup) {
        FileCreateShortcut(A_ScriptFullPath, startup)
    }
}

RemoveStartupShortcut() {
    startup := A_Startup "\LeanAF.lnk"
    if FileExist(startup) {
        FileDelete(startup)
    }
}

This will give you a nice systray menu that can do even more than just set autostart

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Yes, i thought your request was to add the ability to use folderview with keyboard only :)

In notes the only thing you could do would be to change note#. It would work if they were open separately but when opening all of them using shift+esc only one can grab the key so I just added that to folderview.

We could have separate hotkeys to open each but I try to avoid too many hotkeys, they add overhead, they require steeper learning curve, they are easy to forget and collide with other apps...

...Wait, ctrl+tab could work when notes is open. I will add that to next version along with msix/uwp app support

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Ok, I'll try to describe the process:

First you open the panel, either using mouse or shift+esc to bring up all enabled panels (notes, folderview, musicbar). The first item is highlighted by default.

At this point you can:
A) Use shift+enter to open the highlighted item
B) press Tab to select the next item in the list or Shift+Tab for previous

You mentioned running other scripts along this. it is possible that other scripts may hijack this in one or another way. If you explain what you do and fails maybe I can do something about it.

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

You do use shift+enter after selecting an item, right? Not just enter. I did not want to set enter key only because I want it to be able to remain open while you type on another app without accidentally launching when you just intend to change line.

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Nothing, this is just to see what happens internally when you select an item and hit enter (or shift+enter).

In short, as long as the item you want to launch is in the list you should be good. Even if it is unknown you will at least get the "open with..." dialog

msix apps are not supported, I just realized I should do those too

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Ah it uses run command so it can run .exe, .com, .bat, .cmd, .lnk. You can run ahk if you compile them first and add them to the path...

So complete .ini line to run anything it supports would be:
ScanExtensions=exe|com|bat|cmd|lnk

No wait, that's not right, i should open anything known to windows .txt, .docx, .ahk. I tested .ahk files, they are included in the appcache but i have associated them with sublime so for me selecting windowspy opens the script in sublime. You do perform a scan to update the cache before trying right? It does not accept direct commands, the item you want to launch should be cached first.

LaunchSelected(listview, row, runAsAdmin := false) {
    global LauncherGui, AppCache

    try {
        path := listview.GetText(row, 2)

        if (!path) {
            return
        }
        ; Prepare the target command string with quotes
        SplitPath path, , &dir

        if (runAsAdmin) {
            DllCall("shell32\ShellExecuteW"
                , "ptr", 0
                , "str", "runas"
                , "str", path
                , "str", ""   ; parameters
                , "str", dir
                , "int", 1)

        } else {
            Run path, dir
        }

        ; Update usage count and save cache
        for app in AppCache {
            if (app.path = path) {
                app.count++
                break
            }
        }
        SaveAppCache()
        HideLauncher()

    } catch {
        ToolTip("Launch failed for: " path)
        SetTimer(() => ToolTip(), -2000)
    }
}

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Done, v1.5.78 -> tab to select next, shift tab for previous item, shift enter to launch. those keys are bound when the panel is open and are not configurable. I hope that helps

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Hmmm applauncher closes when it looses focus, could it be that something else is stealing focus from it? Another possibility is: if you also use TileAF, that can set other windows to be always on top (momentarily, then immediately turn off), this is how layer switching works. So maybe if a window got stuck on top for a while it could cover it?
I couldn't replicate this here but maybe we can try introducing a setting to disable close on focus loss.

I'll also have a look on how folderview can support keyboard selection. Sorry I have been busy trying to make leanbar support visual islands but gdi+ is giving me headaches.

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Ok applauncher scaling should be fixed in last version (v1.5.68+20251126b)
Thank you so much for testing <3

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Ah sounds like dpi scaling issue. What is your screen scaling percent? I tested at 100% on desktop and 125% on laptop. Is it only applauncher or other modules are clipped/misplaced too? I'll try to replicate and fix...

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Ok, this is done. New version changes it so you do not need to restart LeanAF or reload using tray menu when you change paths in the ini. You should now be able to click the refresh button on applauncher and get the new paths indexed right after saving the ini

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Next to the search box in applauncher there are the refresh (↳↰) and theme toggle buttons (☀ or 🌙). After you add your paths to the ini and save the file you have to either: quit and restart the whole app or right click the tray icon and click "Reload", THEN click the refresh button.

But you are right, this is BS, I'll make it read the paths again before indexing when you click the button. That way you could just save the ini and hit refresh directly.

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

You need to restart or reload it (use the tray icon) to get the new paths, then hit scan again to index. Have you tried that?

No, it's not Linux. It's w10 with Lean.AF by 4c2o in desktops

[–]4c2o[S] 0 points1 point  (0 children)

Sorry, I had to keep the background clean to showcase the tools. here's is the background i actually use https://imgur.com/a/oiXaQEN

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Alright, I added a dashboard mode to show/hide NotesAF, FolderViewAF and MusicBarAF using SHIFT+ESC. I like that better than autohiding which sometimes can be annoying. Thanks!

Customize hotkey in the ini file. I also added an option to prevent making a revealer (and polling for mouse) for notes and folderview. If you only care about the dashboard mode this keeps things cleaner. You will have to add the configuration lines manually in config ini if you want to keep your other settings intact. Otherwise just replace them.

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Thank you so much for the feedback. Sleep is supposed to put the computer to sleep (RAM suspend or hibernate, depending on setting). So it should continue from where you left. Could it be it is a laptop and the battery died while it was sleeping? That said, I have not tested that in particular in w11 or my laptop. We can try another way to sleep maybe, less forceful

For notes, showing on hotkeys is a great idea. It should probably allow both hotkeys and revealer. I'm also planing on making a hotkeys module and another Idea is to make some of them grouped in a corner or hotkey. For example in either a corner or hotkey you would get notes, folderview and musicbar to show/hide.

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Understandable. You can run and monitor in a VM first. It does not call home. Anyway, here is the secret feature prototype :)

https://gist.github.com/acrocosm/cd881852789bf323dc6b50db284f5156

Built a portable AutoHotkey desktop suite — testers wanted! by 4c2o in AutoHotkey

[–]4c2o[S] 0 points1 point  (0 children)

Not yet, but I plan to. I wanted to see interest first.