Search found 1503 matches

by TheDewd
07 Mar 2024, 18:42
Forum: Ask for Help (v1)
Topic: CMD Get Text Response
Replies: 4
Views: 153

Re: CMD Get Text Response

(BTW thanks for the links to pngquant; works great and reduces the size of .png files by ~80%)
No problem! Been using it to reduce image sizes for my EmulationStation scraped images for my game collection.

There's a few GUI for it. I was going to try making my own GUI though.
by TheDewd
07 Mar 2024, 11:57
Forum: Ask for Help (v1)
Topic: CMD Get Text Response
Replies: 4
Views: 153

CMD Get Text Response

I'm trying to capture the text from command prompt (cmd.exe) after executing commands using pngquant .exe (PNG Image Compression). I've tested various functions from the forums, but I can't seem to figure out something... I can easily get the response from the help command pngquant.exe -h However, I...
by TheDewd
14 Aug 2023, 07:18
Forum: Scripts and Functions (v1)
Topic: Rubbish - System Tray Recycle Bin
Replies: 18
Views: 30184

Re: Rubbish - System Tray Recycle Bin

For some reason, when I start the PC up, the Rubbish.ini file opens in Notepad and display on the desktop. It didn't happen before, only during the last few weeks. The Rubbish.ahk file is in C:\Users\xxxxx\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup (as well as the *.ini file) so ...
by TheDewd
30 Mar 2023, 17:54
Forum: Scripts and Functions (v1)
Topic: tlk.io bot - web remote control of scripts
Replies: 26
Views: 13704

Re: tlk.io bot - web remote control of scripts

I figured out how to set a nickname, but I still don't know how to use the returned data to post a new message. I think I'm too out of my depth on this part... #SingleInstance, Force HttpReq := ComObjCreate("WinHttp.WinHttpRequest.5.1") HttpReq.Open("POST", "https://tlk.io/api/participant") HttpReq....
by TheDewd
20 Mar 2023, 15:24
Forum: Ask for Help (v1)
Topic: Get Font Name From TTF
Replies: 0
Views: 239

Get Font Name From TTF

How can I get the font name from a font file? For example, I'm using AddFontResourceEx to load an external font file: DllCall("Gdi32.dll\AddFontResourceEx", "Str", "font.ttf", "UInt", 0x10, "Int", 0) However, I will not know which fonts will be provided by the end user, so I can't hardcode in the fo...
by TheDewd
14 Dec 2022, 09:41
Forum: Scripts and Functions (v1)
Topic: Function for finding the day of any date
Replies: 12
Views: 1603

Re: Function for finding the day of any date

GameNtt wrote:
14 Dec 2022, 09:38
No, this is not for Ahk V2. Could the both of you send me screenshots of all the steps you do after which you encounter this error? You could sent it via imgur in this topic.
1) Save script.
2) Run script.
3) Enter example date (24/09/2022)
4) Click OK
5) Error

Image
by TheDewd
13 Dec 2022, 12:07
Forum: Scripts and Functions (v1)
Topic: Function for finding the day of any date
Replies: 12
Views: 1603

Re: Function for finding the day of any date

I always get the error "The Date given is invalid, please try again"
by TheDewd
09 Sep 2022, 21:13
Forum: Ask for Help (v1)
Topic: Transparent PNG is BLACK
Replies: 0
Views: 228

Transparent PNG is BLACK

I'm adding Picture controls to my Gui, which will overlap each other as layers. I've added a fully transparent PNG image with +BackgroundTrans on top of another image, but the transparent picture is BLACK instead of showing the image behind it. I also tried without +BackgroundTrans , giving the same...
by TheDewd
01 Sep 2022, 14:12
Forum: Scripts and Functions (v1)
Topic: Calculate age / age calculator
Replies: 3
Views: 1094

Re: Calculate age / age calculator

Here's another way. (Requires Internet Connection) #SingleInstance, Force Month := "10" Day := "28" Year := "1955" URL := "https://www.datetime.io/age/" Year "/" Month "/" Day HttpReq := ComObjCreate("WinHttp.WinHttpRequest.5.1") HttpReq.Open("GET", URL, true) HttpReq.Send() HttpReq.WaitForResponse(...
by TheDewd
29 Aug 2022, 12:27
Forum: Ask for Help (v1)
Topic: Picture Control Order
Replies: 1
Views: 498

Picture Control Order

I'm attempting to layer Picture controls. First, I add a Picture control with a specific background color, then I add another Picture control containing an image with transparent background -- however the z-order is not what I was expecting and this will not work. I don't understand why I have to ad...
by TheDewd
27 Aug 2022, 16:12
Forum: Wish List
Topic: Dark theme / Windows themed AHK
Replies: 32
Views: 14783

Re: Dark theme / Windows themed AHK

I can't figure out how to make my Gui titlebar dark. The ListLines window is dark as stated, but I don't know how to execute this for my other Gui windows. I see screenshots from the other replies showing dark titlebars. Edit : Nevermind. I had to call it BEFORE Gui, Show . However, you can at least...
by TheDewd
24 Aug 2022, 21:28
Forum: Ask for Help (v1)
Topic: JSON Parse?
Replies: 8
Views: 5002

JSON Parse?

What's the current best way to parse JSON data from a file? Would need to read the file, then convert the string to object. Also should run on any version of AHK 1.1 (U32, U64, ANSI). I know several libraries exist, but not sure which is the best at the moment. Prefer something simple and lightweigh...
by TheDewd
24 Aug 2022, 09:58
Forum: Ask for Help (v2)
Topic: How to prevent FileRecycleEmpty from freezing AutoHotkey?
Replies: 5
Views: 1148

Re: How to prevent FileRecycleEmpty from freezing AutoHotkey?

Maybe using the DllCall would have better results? I'm not sure about v2 compatibility, but below is the code I use in one of my v1 scripts... Flags: 1 - Confirm 4 - Sound 2 - Progress Add flag numbers together. 7 results in Confirmation with sound and progress display. 0 should delete without confi...
by TheDewd
21 Jun 2022, 14:02
Forum: Ask for Help (v1)
Topic: Call a function on GUI click?
Replies: 4
Views: 492

Re: Call a function on GUI click?

Is this what you're wanting? Get the selected DropDownList value and perform a different action depending on which value was selected? #SingleInstance, Force Gui, +Resize Gui, Add, DropDownList, vChoice gDoTHIS, One|Two|Three| Gui, Show, AutoSize, Example return DoTHIS() { GuiControlGet, DDL_Val,, C...
by TheDewd
21 Jun 2022, 13:45
Forum: Ask for Help (v1)
Topic: How to automatically put receiver's name with corresponding greeting in the body of email Topic is solved
Replies: 2
Views: 404

Re: How to automatically put receiver's name with corresponding greeting in the body of email Topic is solved

See example below... F12:: olApp := ComObjActive("Outlook.Application") Try { olItem := olApp.ActiveWindow.CurrentItem } Catch { olItem := olApp.ActiveExplorer.Selection.Item(1) } emailTo := StrSplit(RegExReplace(olItem.To, ".+?, ") " ", " ").1 DayType := (A_Hour >= 6 && A_Hour <= 11 ? "morning" : A...
by TheDewd
14 Jun 2022, 16:14
Forum: Scripts and Functions (v1)
Topic: A Script that uses internet/TTS COM Objects to find and read Lyrics
Replies: 3
Views: 679

Re: A Script that uses internet/TTS COM Objects to find and read Lyrics

I don't have time to finish, but here's an example of how I would get random songs. This partial code only gets the HTML source code for a random song. I didn't add the code to parse the lyrics and read them. Hope that helps! #SingleInstance, Force ; Assign valid page index characters to array arrPa...
by TheDewd
02 Jun 2022, 10:56
Forum: Bug Reports
Topic: [v2] SetTimer does not respect -0 as an argument Topic is solved
Replies: 24
Views: 5601

Re: [v2] SetTimer does not respect -0 as an argument Topic is solved

If I wanted to execute immediately, I've always just called GoSub, LabelName after SetTimer. I was never aware that anyone was trying or suggesting -0 as a value.
by TheDewd
26 May 2022, 13:18
Forum: General Discussion
Topic: I asked GPT-3 to write AutoHotkey scripts for me. These are it's scripts.
Replies: 3
Views: 1999

Re: I asked GPT-3 to write AutoHotkey scripts for me. These are it's scripts.

Thanks for brining this website to my attention. Human: Write a story about Super Mario dying and waking in heaven AI: When Mario died, he awoke in heaven. He was greeted by a bright light and a beautiful angel. The angel told him that his time on earth was done, and that he must now ascend to the n...
by TheDewd
26 May 2022, 07:38
Forum: Scripts and Functions (v1)
Topic: Rubbish - System Tray Recycle Bin
Replies: 18
Views: 30184

Re: Rubbish - System Tray Recycle Bin

I am using the Rubbish recycle bin script because you can't pin the (empty/full changing) recycle bin to the taskbar in windows 11. I really like it, however the default Windows tray (now called Corner Overflow) icons are by default smaller that taskbar icons and Rubbish is sized likewise. Is there...
by TheDewd
25 May 2022, 14:39
Forum: Other Utilities & Resources
Topic: WordsAPI
Replies: 4
Views: 2099

Re: WordsAPI

#SingleInstance, Force HttpReq := ComObjCreate("WinHttp.WinHttpRequest.5.1") HttpReq.Open("GET", "https://www.wordsapi.com/", True) HttpReq.Send() HttpReq.WaitForResponse() RegExMatch(HttpReq.ResponseText, "var\swhen\s=\s'(.*?)'", When) RegExMatch(HttpReq.ResponseText, "var\sencrypted\s=\s'(.*?)'",...

Go to advanced search