Search found 7 matches

by Umbracinis
24 Apr 2024, 13:58
Forum: Ask for Help (v2)
Topic: SendInput to Notepad++ not working if clipboard is empty
Replies: 2
Views: 183

Re: SendInput to Notepad++ not working if clipboard is empty

Thank you for your reply RussF . I can clarify a few things. Pasting anything to the tab will do nothing. That is why you must first click into the edit window. Allow me to clarify. Here are my steps for replicating the problem I described: 1 - Run the AutoHotKey code in my first post; 2 - Open Wind...
by Umbracinis
23 Apr 2024, 12:47
Forum: Ask for Help (v2)
Topic: SendInput to Notepad++ not working if clipboard is empty
Replies: 2
Views: 183

SendInput to Notepad++ not working if clipboard is empty

Context: Windows 11 Pro x64 (Eng) v23H2 OS build: 22631.3447 AutoHotkey x64 v2.0.13.0 Notepad++ v8.6.5 64-bit Greetings. I wrote a script that does multiple tasks, one of them uses the clipboard to type the current date. It saves the current Windows clipboard, then replaces it with the current date,...
by Umbracinis
04 Jun 2023, 10:38
Forum: Ask for Help (v2)
Topic: Convert Base64PNG_to_HICON to v2 Topic is solved
Replies: 9
Views: 971

Re: Convert Base64PNG_to_HICON to v2 Topic is solved

Ah... now I see it: that last return is not part of the if block. Agreed, that was a rather stupid thing I did. So it would be like this: Base64PNG_to_HICON(Base64PNG, width := 0, height := 0) { size := StrLen( RTrim(Base64PNG, '=') )*3//4 if DllCall('Crypt32\CryptStringToBinary', 'Str', Base64PNG, ...
by Umbracinis
04 Jun 2023, 05:54
Forum: Ask for Help (v2)
Topic: Convert Base64PNG_to_HICON to v2 Topic is solved
Replies: 9
Views: 971

Re: Convert Base64PNG_to_HICON to v2 Topic is solved

Understood gregster, thank you.
If I decide to post an updated version of the code, I shall do it in a new reply.
by Umbracinis
04 Jun 2023, 04:39
Forum: Ask for Help (v2)
Topic: Convert Base64PNG_to_HICON to v2 Topic is solved
Replies: 9
Views: 971

Re: Convert Base64PNG_to_HICON to v2 Topic is solved

Thank you for your feedback. It's ok, but there are a few remarks. (...) Although not a programmer, I have written many short scripts (batch and bash mostly) for over 20 years as a Systems and Network Administrator, and I was always a stickler for writing good consistent code, so I really do appreci...
by Umbracinis
03 Jun 2023, 02:38
Forum: Ask for Help (v2)
Topic: Convert Base64PNG_to_HICON to v2 Topic is solved
Replies: 9
Views: 971

Re: Convert Base64PNG_to_HICON to v2 Topic is solved

Wow, it works perfectly! Thank you teadrinker! I added back the 'width' option, and then thouroghly tested it, and it seems to be working fine. I am posting it here, in case anyone wants to use it for images that are not exact squares: Base64PNG_to_HICON(Base64PNG, width := "0", height := "0") { siz...
by Umbracinis
02 Jun 2023, 12:11
Forum: Ask for Help (v2)
Topic: Convert Base64PNG_to_HICON to v2 Topic is solved
Replies: 9
Views: 971

Convert Base64PNG_to_HICON to v2 Topic is solved

Context: Windows 11 Pro x64 (Eng) v22H2, OS build: 22621.1702, AutoHotkey x64 v2.0.2.0 First time posting here, so apologies if I am doing something wrong. I am now trying to implement an icon encoded with base64 in my script instead of referencing an external (ico) file. Yes, I know that I can comp...

Go to advanced search