Search found 609 matches

by songdg
Today, 04:42
Forum: Ask for Help (v2)
Topic: Why the text color doesn't change Topic is solved
Replies: 2
Views: 144

Re: Why the text color doesn't change Topic is solved

boiler wrote:
Today, 03:30
The option starts with a c. It’s the same reason it’s cRed and not Red. So you just need to add a c before the color value:

Code: Select all

ctl.Opt('c' cc)
Problem solved, thank you very much :bravo:
by songdg
Today, 03:04
Forum: Ask for Help (v2)
Topic: Why the text color doesn't change Topic is solved
Replies: 2
Views: 144

Why the text color doesn't change Topic is solved

I want to change the text color with TheArkive's Color Picker https://www.autohotkey.com/boards/viewtopic.php?f=83&t=79172 There's no problem if I use ctl.Opt('cred') , however if use ctl.Opt(cc) (cc is the picked color) it won't work. global cc, defColor cc := 0x00FF00 ; green defColor := [0xAA0000...
by songdg
Yesterday, 04:39
Forum: Ask for Help (v2)
Topic: How to show MsgBox2 directly
Replies: 1
Views: 135

Re: How to show MsgBox2 directly

I answer my question, just replace pX := "", pY := "", pW := 0, pH := 0 with pX := 0, pY := 0, pW := 0, pH := 0 in the TheArkive_MsgBox2.ahk will solve the problem.
by songdg
20 May 2024, 06:56
Forum: Ask for Help (v2)
Topic: How to show MsgBox2 directly
Replies: 1
Views: 135

How to show MsgBox2 directly

Msgbox2 - customizable msgbox https://www.autohotkey.com/boards/viewtopic.php?f=83&t=79310 I want to show MsgBox2 directly, but don't know how to untangle it with the StartGui. Error: Expected a Number but got an empty string. ---- D:\ahktest\MsgBox2_AHK-master\AHK21\TheArkive_MsgBox2.ahk 303: If Wi...
by songdg
17 May 2024, 01:49
Forum: Ask for Help (v2)
Topic: A problem of using calling V1's libs in V2
Replies: 8
Views: 441

Re: A problem of using calling V1's libs in V2

Thanks, you are right, I should stick to the original one.
by songdg
16 May 2024, 10:22
Forum: Ask for Help (v2)
Topic: A problem of using calling V1's libs in V2
Replies: 8
Views: 441

Re: A problem of using calling V1's libs in V2

boiler wrote:
16 May 2024, 05:01
Do you have a copy of the AutoHotkey.dll file in your script directory?
Yes, I use viv's original code without any problem.
by songdg
16 May 2024, 04:04
Forum: Ask for Help (v2)
Topic: A problem of using calling V1's libs in V2
Replies: 8
Views: 441

Re: A problem of using calling V1's libs in V2

boiler wrote:
16 May 2024, 03:06
What is the reason for removing this.?
I see this reply by HotKeyIt.
by songdg
16 May 2024, 02:42
Forum: Ask for Help (v2)
Topic: A problem of using calling V1's libs in V2
Replies: 8
Views: 441

Re: A problem of using calling V1's libs in V2

Thanks, there's another problem, Error: Failed to load DLL. , and I have already replace DllCall(dll_path . "\ahktextdll", "Str", "#Persistent `n#NoTrayIcon `n#include " . this.lib_path, "Str", "", "Str", "") with DllCall(dll_path "\ahktextdll", "Str", "#Persistent `n#NoTrayIcon `n#include " . lib_p...
by songdg
15 May 2024, 22:39
Forum: Ask for Help (v2)
Topic: A problem of using calling V1's libs in V2
Replies: 8
Views: 441

A problem of using calling V1's libs in V2

A problem of using calling V1's libs in V2 https://www.autohotkey.com/boards/viewtopic.php?f=83&t=95656 , use viv's code without any problem, but I try Delta Pythagorean's modified code encounter this problem D:\script\Run_V1\call_OSDTIP.ahk (60) : ==> A "?" is missing its ":" #Requires AutoHotkey v...
by songdg
15 May 2024, 03:55
Forum: Ask for Help (v2)
Topic: Can the text color of a radio button be changed? Topic is solved
Replies: 8
Views: 449

Re: Can the text color of a radio button be changed? Topic is solved

This works and seems to demonstrate an AutoHotkey bug whereby the font must first be set to a non-default color. #Requires AutoHotkey v2.0 buttons := ['abc', 'def', 'ghi'] g := Gui(, 'Buttons') rad := [] defaultColor := 'Black' fontSize := 10 g.SetFont 's' fontSize ' c' defaultColor For radio in bu...
by songdg
15 May 2024, 03:54
Forum: Ask for Help (v2)
Topic: Can the text color of a radio button be changed? Topic is solved
Replies: 8
Views: 449

Re: Can the text color of a radio button be changed? Topic is solved

The SetFont method does not appear to work to change radio buttons text color. I'm not sure. One workaround is to associate text controls to the radio buttons. #Requires AutoHotkey v2.0 #SingleInstance g := Gui() g.OnEvent('Close', (*) => ExitApp()) g.Add('Radio', 'w15 h15').OnEvent('Click', SetRad...
by songdg
15 May 2024, 03:49
Forum: Ask for Help (v2)
Topic: Can the text color of a radio button be changed? Topic is solved
Replies: 8
Views: 449

Re: Can the text color of a radio button be changed? Topic is solved

 I thought I could easily write it because I've done similar tasks in v1, but surprisingly, there were some grammar changes from v2, so it took me a bit of time. This is more of a conceptual demonstration to show what you desire is possible. In reality, it needs a bit more refinement. #Requires Aut...
by songdg
13 May 2024, 22:39
Forum: Ask for Help (v2)
Topic: Can the text color of a radio button be changed? Topic is solved
Replies: 8
Views: 449

Re: Can the text color of a radio button be changed? Topic is solved

mikeyww wrote:
13 May 2024, 22:26

Code: Select all

#Requires AutoHotkey v2.0
g := Gui()
g.SetFont 'cRed'
g.AddRadio , 'abc'
g.SetFont 'cBlue'
g.AddRadio , 'def'
g.Show
Thanks, I mean initially all the text color are the same, when I checked a radio button the text color will change.
by songdg
13 May 2024, 22:10
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 380
Views: 56332

Re: UIA v2

Hey pal, there is a built-in command to take full-screen screenshots(Capture full size screenshot) in Google Chrome, would you wrap this into a function?
by songdg
13 May 2024, 21:14
Forum: Ask for Help (v2)
Topic: Can the text color of a radio button be changed? Topic is solved
Replies: 8
Views: 449

Can the text color of a radio button be changed? Topic is solved

I want to set the chosen radio button apart further in a radio group by changing its text color, is it even possible?
by songdg
12 May 2024, 21:26
Forum: Scripts and Functions (v2)
Topic: Color Pallet gui - V2.0-beta.3
Replies: 8
Views: 2171

Re: Color Pallet gui - V2.0-beta.3

Hello, can you providing an example of how to use library, say change the text color of GUI.
by songdg
12 May 2024, 11:43
Forum: Ask for Help (v2)
Topic: A problem of uncheck all checkboxes of a listview Topic is solved
Replies: 4
Views: 315

Re: A problem of uncheck all checkboxes of a listview Topic is solved

As stated by @vmech, the LV parameter represents the text Gui Control object, not the ListView Gui Control object. I highly recommend using VSCode alongside the Debugger extension. By hovering over variables, you can examine both their type and content. You will save a ton of time. https://i.imgur....
by songdg
12 May 2024, 11:41
Forum: Ask for Help (v2)
Topic: A problem of uncheck all checkboxes of a listview Topic is solved
Replies: 4
Views: 315

Re: A problem of uncheck all checkboxes of a listview Topic is solved

@songdg Because Uncheck_All callback take Text Gui Control object in named LV parameter. Not ListView Gui Control object. Try: Uncheck_All(*) { global LV LV.Modify(0, "-Check") ; Uncheck all the checkboxes. } You can also try to make the code more structured: 1. Declare controls with options 2. Dec...
by songdg
11 May 2024, 21:54
Forum: Scripts and Functions (v2)
Topic: Msgbox2 - customizable msgbox - 2021/07/25 - beta.1
Replies: 8
Views: 2926

Re: Msgbox2 - customizable msgbox - 2021/07/25 - beta.1

TheArkive wrote:
11 May 2024, 03:35
_JXON.ahk has been added to the AHK2 folder on the repo.

And the JXON repo can be found here:

JSON Serializer - 2022/09/07 - beta.8
Thanks, if I want to skip the StartGui() and go straight to the MsgBox2 with two parameters one for the title another for the message, how to do that :?:
by songdg
11 May 2024, 02:52
Forum: Ask for Help (v2)
Topic: A problem of uncheck all checkboxes of a listview Topic is solved
Replies: 4
Views: 315

A problem of uncheck all checkboxes of a listview Topic is solved

I want to uncheck all checkboxes of a listview by doubleclick on the text Uncheck_All , but get this error Error: This value of type "Gui.Text" has no method named "Modify". 011: g.OnEvent("Close", (*) => ExitApp()) 014: { ▶ 015: LV.Modify(0, "-Check") 016: } 020: { #Requires AutoHotkey v2.0 g := Gu...

Go to advanced search