Yeah those two (three) seem reasonable. Maybe start with that and if people later ask to whitelist some other image host decide that case by case.
Search found 598 matches
- 20 Nov 2023, 12:19
- Forum: Forum Issues
- Topic: Wish: remove ability to hotlink images in signatures
- Replies: 8
- Views: 1635
- 20 Nov 2023, 11:18
- Forum: Scripts and Functions (v2)
- Topic: Homerow mods: a potentially working approach
- Replies: 4
- Views: 1917
Re: Homerow mods: a potentially working approach
Do you remember which exact key up/down sequence was the trouble? Is it that you typed slow and had a finger lingering on the control home row mod longer than necessary and triggered a (assuming ⎈=d) ⎈↓ l🡙 ⎈↑ while typing dl (which during regular typing would release d before releasing l ? One pote...
- 20 Nov 2023, 08:48
- Forum: Scripts and Functions (v2)
- Topic: Homerow mods: a potentially working approach
- Replies: 4
- Views: 1917
Re: Homerow mods: a potentially working approach
Thanks for your work on this. Haven't tried it yet but I'm interested in using a AutoHotkey implementation of home row mods. Another software implementation is Kmonad https://github.com/kmonad/kmonad . Then there are custom keyboards with the QMK firmware of course. With all other home row mods alte...
- 14 Nov 2023, 10:43
- Forum: Scripts and Functions (v2)
- Topic: Object oriented path library, mirroring methods of Pathlib.py
- Replies: 5
- Views: 885
Re: Object oriented path library, mirroring methods of Pathlib.py
Thank you. A bit related to the SplitPath wish here and SplitPathObj() example function there https://www.autohotkey.com/boards/viewtopic.php?p=488898 and the .SplitPath() method of Descolada's String.ahk library https://www.autohotkey.com/boards/viewtopic.php?t=108272 Its been years but from memory...
- 13 Nov 2023, 07:02
- Forum: Bug Reports
- Topic: A_Args can't handle windows file arguments with spaces (drag&drop, sendto, etc, 8.3 shortname disabled)
- Replies: 24
- Views: 3506
Re: A_Args can't handle windows file arguments with spaces (drag&drop, sendto, etc, 8.3 shortname disabled)
[HKEY_CLASSES_ROOT\AutoHotkeyScript\ShellEx\DropHandler] @="{86C86720-42A0-1069-A2E8-08002B30309D}" That's the same drophandler that causes dropped files to become 8.3 short filepaths in A_Args on the PC I tested. I don't know why the same thing doesn't happen on your PC. And yes I still have pytho...
- 12 Nov 2023, 17:32
- Forum: Bug Reports
- Topic: A_Args can't handle windows file arguments with spaces (drag&drop, sendto, etc, 8.3 shortname disabled)
- Replies: 24
- Views: 3506
Re: A_Args can't handle windows file arguments with spaces (drag&drop, sendto, etc, 8.3 shortname disabled)
Python developers implemented their own drophandler for Windows https://stackoverflow.com/questions/42818369/python-drag-and-drop-broken#comment72845379_42869472 {86C86720-42A0-1069-A2E8-08002B30309D} is the standard EXE drop handler that we used to use. It has problems with Unicode filepaths, so St...
- 12 Nov 2023, 16:23
- Forum: Bug Reports
- Topic: A_Args can't handle windows file arguments with spaces (drag&drop, sendto, etc, 8.3 shortname disabled)
- Replies: 24
- Views: 3506
Re: A_Args can't handle windows file arguments with spaces (drag&drop, sendto, etc, 8.3 shortname disabled)
If dropped files become filepaths with 8.3 short filenames or not depends, I think, on the drophandler rather than on the Windows Long Paths settings. The drophandler {86C86720-42A0-1069-A2E8-08002B30309D} ( CLSID_ExeDropTarget ) seems to convert paths with spaces or unicode characters into 8.3 shor...
- 10 Nov 2023, 09:19
- Forum: Forum Issues
- Topic: Wish: remove ability to hotlink images in signatures
- Replies: 8
- Views: 1635
Re: Wish: remove ability to hotlink images in signatures
Marium0505, yeah that could be a middle way. I hope there is some phpBB plugins or code snippet to block the [img] tag. That can whitelist [img] tags for the imgur.com domain. And apply only to post creation or edits at times after the code is enabled, to avoid breaking older posts that hotlink. Mor...
- 09 Nov 2023, 13:36
- Forum: Forum Issues
- Topic: Wish: remove ability to hotlink images in signatures
- Replies: 8
- Views: 1635
Re: Wish: remove ability to hotlink images in signatures
I see that you also hotlink images in your signature though to the old ahkscript domain
- 09 Nov 2023, 11:19
- Forum: Forum Issues
- Topic: Wish: remove ability to hotlink images in signatures
- Replies: 8
- Views: 1635
Wish: remove ability to hotlink images in signatures
I noticed a user was hotlinking an image in their signature. That means anyone viewing any of the user's posts connects to a third party site to download that image. That is a possible means of tracking users on the forum. To prevent that I suggest removing the ability to hotlink images in signature...
- 08 Nov 2023, 19:04
- Forum: Ask for Help (v2)
- Topic: Get a member structure from struct (StandardDate as _SYSTEMTIME from _TIME_ZONE_INFORMATION) Topic is solved
- Replies: 7
- Views: 686
Re: Get a member structure from struct (StandardDate as _SYSTEMTIME from _TIME_ZONE_INFORMATION) Topic is solved
https://learn.microsoft.com/en-us/windows/win32/api/timezoneapi/ns-timezoneapi-time_zone_information#members says that member "StandardDate" is "A SYSTEMTIME structure that contains a date and local time when the transition from daylight saving time to standard time occurs on this operating system" ...
- 05 Nov 2023, 06:20
- Forum: Wish List
- Topic: Try(expression) no catch block, return 1 if no error
- Replies: 6
- Views: 1425
Re: Try(expression) no catch block, return 1 if no error
One type of objection to the Try() wish would be to ask for use cases and for each use case suggest either an existing better way to do it or a better wish. For the Try(ControlGetText) use case an alternative wish could be for a ControlExist function that returns 0 if the target control isn't found....
- 04 Nov 2023, 11:36
- Forum: Ask for Help (v2)
- Topic: app exe name different with every update
- Replies: 3
- Views: 214
Re: app exe name different with every update
Use WindowSpy to examine if the window has any other distinguishing features that can be used with WinActive . ahk_class? Visible text (for the parameter WinText)? You could also try ControlGetText or similar commands to check if the active window has certain controls. For that you may also need to ...
- 04 Nov 2023, 05:43
- Forum: Scripts and Functions (v2)
- Topic: Class AsyncStdoutReader: asynchronous non-blocking stdout reading
- Replies: 2
- Views: 1176
Re: Asynchronous non-blocking stdout reading
Thank you teadrinker I suggest renaming the thread title "class AsyncStdoutReader: Asynchronous non-blocking stdout reading" to make it easier to find through forum search. For context some links to previous functions and discussions of issues with them that teadrinker's class attempts to overcome S...
- 04 Nov 2023, 05:19
- Forum: Wish List
- Topic: Try(expression) no catch block, return 1 if no error
- Replies: 6
- Views: 1425
Re: Try(expression) no catch block, return 1 if no error
Thanks for describing the general case for Try Catch and for suggestions. The nice-try link was fascinating. I suppose this kind of wish/discussion crops up in many languages. Try Catch is often useful and Lexikos makes many wise design decisions. v2 throws more errors than v1, a difference that mad...
- 30 Oct 2023, 04:37
- Forum: Wish List
- Topic: Try(expression) no catch block, return 1 if no error
- Replies: 6
- Views: 1425
Try(expression) no catch block, return 1 if no error
Wish: Try(expression) with no catch block. Instead return 1 if the expression executed without error and return 0 on error. Benefits: shorten code and use Try() with precision on steps inside larger expressions. Current code where we want to proceed on non-error but have no need for catch Try a catc...
- 23 Oct 2023, 16:27
- Forum: Bug Reports
- Topic: [BUG] Compiled script: Run/RunWait launch the wrong executable Topic is solved
- Replies: 11
- Views: 2450
Re: [BUG] Compiled script: Run/RunWait launch the wrong executable Topic is solved
Helpful comment, thanks, I've updated my text above based on it.
- 23 Oct 2023, 10:06
- Forum: Ask for Help (v2)
- Topic: file copy with original timestamps
- Replies: 5
- Views: 511
Re: file copy with original timestamps
I think FileCopy preserves the Modified timestamp but updates the Created timestamp to the time of the copying. As a workaround write a function that reads the original Created timestamp, copies the file and sets the Created timestamp. https://www.autohotkey.com/docs/v2/lib/FileGetTime.htm https://w...
- 21 Oct 2023, 04:29
- Forum: Ask for Help (v2)
- Topic: get ThisHotkey
- Replies: 7
- Views: 927
Re: get ThisHotkey
I don't know any easy way. A messy, imperfect way is to inside the function create an error object e := Error() , read its script line LineNum := e.Line , read the script source (assuming it is uncompiled) Source := FileRead(A_ScriptFullPath) and parse the source text to find the first instance of W...
- 20 Oct 2023, 12:48
- Forum: AutoHotkey Development
- Topic: [Wish]: Allow Break Outside of a Loop, Such as In a Function
- Replies: 15
- Views: 3640
Re: [Wish]: Allow Break Outside of a Loop, Such as In a Function
;I have to make this if statement every time when I could just put the if statement in the function if I could put [c]break[/c] ... if (Test = 1){ FunctionExample02 break } As emmanuel d showed you can use return values from the function to mimic the break behaviour you want so you can already move...