Search found 1513 matches

by TheDewd
Yesterday, 22:02
Forum: Ask for Help (v2)
Topic: Gui Progress Bar in Taskbar Topic is solved
Replies: 4
Views: 62

Re: Gui Progress Bar in Taskbar Topic is solved

@mikeyww,

That is exactly what I needed. It works as expected. Thank you very much!
by TheDewd
Yesterday, 20:58
Forum: Wish List
Topic: A_Downloads might be a nice thing to have at some point.
Replies: 3
Views: 71

Re: A_Downloads might be a nice thing to have at some point.

; V1 RegRead, A_Downloads, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders, {374DE290-123F-4565-9164-39C4925E467B} ; V2 A_Downloads := RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "{374DE290-123F-4565-9164-39C4925E4...
by TheDewd
Yesterday, 20:34
Forum: Ask for Help (v2)
Topic: Gui Progress Bar in Taskbar Topic is solved
Replies: 4
Views: 62

Gui Progress Bar in Taskbar Topic is solved

I have been using this v1 code to create a progress bar in the taskbar for a Gui. I'm trying to convert it to work with v2, but I don't understand enough of the new commands yet. Can someone help? I've looked at a few libraries on the forum & github, but it was too complex for me to understand and e...
by TheDewd
03 Apr 2024, 10:20
Forum: Ask for Help (v2)
Topic: Loop Value Calculation Help
Replies: 2
Views: 60

Loop Value Calculation Help

I'm trying to define pixel coordinates on the x-axis, starting with 0, and advancing by 32 pixels for each iteration of the loop. I do the calculation of 32 * A_Index , however I want the initial value to begin at 0. To achieve this, I'm subtracting 32 each time. Is there a better way to do this, in...
by TheDewd
30 Mar 2024, 11:25
Forum: Ask for Help (v2)
Topic: Stop auto sort in Map ? Topic is solved
Replies: 11
Views: 1948

Re: Stop auto sort in Map ? Topic is solved

Code: Select all

MyMap := Map()
MyMap[1] := "Something"
MyMap[2] := "Something Else"
...
How about this structure, then you can have a numbered index to use to call the values in order?
by TheDewd
29 Mar 2024, 07:59
Forum: Ask for Help (v2)
Topic: GDI+ Gui Pic Issue Topic is solved
Replies: 7
Views: 226

Re: GDI+ Gui Pic Issue Topic is solved

just me Thanks! That's good information to know. The code was just a demonstration. I'm actually recreating my sokoban game in v2, but I'm reworking everything to be better this time around. I will be drawing images to the picture control -- not doing a single one-time background color update. :-) ...
by TheDewd
28 Mar 2024, 10:45
Forum: Ask for Help (v2)
Topic: GDI+ Gui Pic Issue Topic is solved
Replies: 7
Views: 226

Re: GDI+ Gui Pic Issue Topic is solved

teadrinker , That's exactly what I needed! Thank you! I've fully commented the example code below for anyone else that find themselves with a similar question. ; Prevent multiple instances of script from running #SingleInstance Force ; Prevent script from exiting automatically Persistent True ; Loa...
by TheDewd
27 Mar 2024, 14:40
Forum: Ask for Help (v2)
Topic: GDI+ Gui Pic Issue Topic is solved
Replies: 7
Views: 226

GDI+ Gui Pic Issue Topic is solved

I have some sample code below to help illustrate the problem I am currently facing. I'm using GDI+ to draw to an empty picture control within my Gui. It successfully updates the background color of the image to GREEN, however if I resize the Gui, move it off & on the screen, minimize/restore, etc it...
by TheDewd
27 Mar 2024, 10:35
Forum: Ask for Help (v2)
Topic: static initialization, function auto-execution? Topic is solved
Replies: 3
Views: 134

static initialization, function auto-execution? Topic is solved

In v1, I was able to use the code below to automatically execute code inside a function without needed to call it from within the auto-execute section. The code would be executed when the script runs, without first needing to manually call it. Is this functionality removed from v2? Is there still a ...
by TheDewd
27 Mar 2024, 09:32
Forum: Ask for Help (v2)
Topic: Array v1 to v2 Topic is solved
Replies: 7
Views: 225

Array v1 to v2 Topic is solved

Edit: Going to use Map(). Seems to do what I need. So, I'm finally trying to learn the v2 syntax by converting one of my v1 scripts. Below is an example of an array, the way I've formatted it in v1: MyArray := [] MyArray[1] := "MyText1" MyArray[2] := "MyText2" MyArray[3] := "MyText3" This code is g...
by TheDewd
07 Mar 2024, 18:42
Forum: Ask for Help (v1)
Topic: CMD Get Text Response
Replies: 4
Views: 167

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: 167

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: 30692

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: 13837

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: 269

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: 1620

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: 1620

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: 229

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: 1101

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...

Go to advanced search