3 ms·
I use AutoHotkey every day but find it’s not very reliable. I have one script that checks if the current window is File Explorer and if it is, gets the currentl
by criddell 4y ago
I use AutoHotkey every day but find it’s not very reliable. I have one script that checks if the current window is File Explorer and if it is, gets the currently selected file or directory and does something with that. If I have more than one tab open, it will usually (but not always) give me the selected item from a different tab. Reloading the script fixes the issue sometimes.
- staindk 4y agoIt looks like Explorer tabs are a very recent addition to W11, so perhaps it isn't fully supported by AH1? Unless by 'tabs' you mean 'instances' or 'windows'?
- criddell 4y agoIt works sometimes and when it doesn’t, reloading the script will sometimes fix the problem. I just asked ChatGPT how to get the currently selected file in the current tab of File Explorer in AutoHotkey and it spit out code that works quite a bit differently than mine. Later today I’m going to figure out what it’s suggesting and see if a different approach is needed. ——- The ChatGPT code is nonsense that looks like AutoHotkey code.
- staindk 4y agoAhaha oh dear, well at least you tried.
- criddell 4y agoI ended up uninstalling the older version of AHK that I had installed and updated to v2 and rewrote the script using a slightly different (and simpler) method of getting the currently selected item in the window. So far today it’s working…
- slig 4y agoTabs are new in the Windows Explorer, right? Did you update your script to reflect that?
- criddell 4y agoI’ll look at it again, but it seems if that were the problem then reloading the script wouldn’t change anything.