Search found 699 matches
- 05 Jun 2024, 12:31
- Forum: Ask for Help (v2)
- Topic: Why the radio buttons do not display properly
- Replies: 4
- Views: 360
Re: Why the radio buttons do not display properly
teadrinker Thanks again, much appreciate your help :salute: , it's much harder than I thought. Here's my final design look like, if click the classic or default then show the color circles disable the choose buttons, when click the custom then hide the circles and enable the choose buttons. Also I ...
- 05 Jun 2024, 03:26
- Forum: Ask for Help (v2)
- Topic: Why the radio buttons do not display properly
- Replies: 4
- Views: 360
Why the radio buttons do not display properly
I want to add a radio group above the color circle, why the radio buttons do not display properly, it also affect the buttons alignment, and how to fix that problems. #Requires AutoHotkey v2.0 customColors := [0xAA0000, 0x00AA00, 0x0000AA, 0x000BBB, 0xFFFFAA] items := [ Map( 'text', 'This is a small...
- 29 May 2024, 02:13
- Forum: Ask for Help (v2)
- Topic: Gui: How to draw a small circle Topic is solved
- Replies: 13
- Views: 1838
Re: Gui: How to draw a small circle Topic is solved
You can modify the code as follows: #Requires AutoHotkey v2 customColors := [0xAA0000, 0x00AA00, 0x0000AA, 0x000BBB, 0xFFFFAA] items := [ Map( 'text', 'This is a small circle:', 'color', 0xFF0080, 'size', 20 ), Map( 'text', 'This is a medium circle:', 'size', 35 ), Map( 'text', 'This is a large cir...
- 28 May 2024, 05:06
- Forum: Ask for Help (v2)
- Topic: Gui: How to draw a small circle Topic is solved
- Replies: 13
- Views: 1838
Re: Gui: How to draw a small circle Topic is solved
teadrinker like defColor in my first post, if user changes Custom Colors, they will be stored in the defColor array, I can save the value of defColor into an ini file, so next time run the script all the Custom Colors can be restored. choose_event(ctl,*) { ;Global cc, defColor Global defColor hwnd ...
- 28 May 2024, 03:52
- Forum: Ask for Help (v2)
- Topic: Gui: How to draw a small circle Topic is solved
- Replies: 13
- Views: 1838
Re: Gui: How to draw a small circle Topic is solved
It's better like this: #Requires AutoHotkey v2 smallCircleDiam := 20 mediumCircleDiam := 35 largeCircleDiam := 50 wnd := Gui() wnd.MarginX := wnd.MarginY := 25 wnd.SetFont('s12', 'Calibri') getPicY := (size, h) => (y := size/2 - h/2, y > 0 ? '-' . y : '+' . Abs(y)) for size, str in Map( smallCircle...
- 26 May 2024, 22:35
- Forum: Ask for Help (v2)
- Topic: Gui: How to draw a small circle Topic is solved
- Replies: 13
- Views: 1838
Re: Gui: How to draw a small circle Topic is solved
@teadrinker
Thank you very much, your option surely a better one, but how to use a button with Color Picker to update the color, also if there's several text with several circles and buttons in the Gui
Thank you very much, your option surely a better one, but how to use a button with Color Picker to update the color, also if there's several text with several circles and buttons in the Gui
- 26 May 2024, 21:56
- Forum: Ask for Help (v2)
- Topic: Gui: How to draw a small circle Topic is solved
- Replies: 13
- Views: 1838
Re: Gui: How to draw a small circle Topic is solved
Hallo, replace: oGui.Add('text', 'vtxtCtrl1', "My Form") choose_bnt := oGui.AddButton("w150","Choose Color").OnEvent("click",choose_event.Bind(oGui['txtCtrl1'])) by: oGui.Add('text',, "My Form") oGui.Add('text', 'vtxtCtrl1 ys-12 h30', ' ' Chr(0x2B24) '`t').SetFont("S22") ; circle choose_bnt := oGui...
- 25 May 2024, 22:22
- Forum: Ask for Help (v2)
- Topic: Gui: How to draw a small circle Topic is solved
- Replies: 13
- Views: 1838
Gui: How to draw a small circle Topic is solved
I want to draw a small circle similar to the square of the Color Picker that fill with color represent the choosen color of the button. ; AHK v2 ; originally posted by maestrith ; https://autohotkey.com/board/topic/94083-ahk-11-font-and-color-dialogs/ ; ==============================================...
- 25 May 2024, 11:54
- Forum: Ask for Help (v2)
- Topic: Can the font color of the menu be changed?
- Replies: 2
- Views: 443
- 24 May 2024, 12:49
- Forum: Ask for Help (v2)
- Topic: Can the font color of the menu be changed?
- Replies: 2
- Views: 443
Can the font color of the menu be changed?
SetColor changes the background color of the menu, what about the font color?
- 22 May 2024, 04:42
- Forum: Ask for Help (v2)
- Topic: Why the text color doesn't change Topic is solved
- Replies: 2
- Views: 339
Re: Why the text color doesn't change Topic is solved
Problem solved, thank you very muchboiler wrote: ↑22 May 2024, 03:30The 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)
- 22 May 2024, 03:04
- Forum: Ask for Help (v2)
- Topic: Why the text color doesn't change Topic is solved
- Replies: 2
- Views: 339
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...
- 21 May 2024, 04:39
- Forum: Ask for Help (v2)
- Topic: How to show MsgBox2 directly
- Replies: 1
- Views: 266
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.
- 20 May 2024, 06:56
- Forum: Ask for Help (v2)
- Topic: How to show MsgBox2 directly
- Replies: 1
- Views: 266
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...
- 17 May 2024, 01:49
- Forum: Ask for Help (v2)
- Topic: A problem of using calling V1's libs in V2
- Replies: 8
- Views: 731
Re: A problem of using calling V1's libs in V2
Thanks, you are right, I should stick to the original one.
- 16 May 2024, 10:22
- Forum: Ask for Help (v2)
- Topic: A problem of using calling V1's libs in V2
- Replies: 8
- Views: 731
- 16 May 2024, 04:04
- Forum: Ask for Help (v2)
- Topic: A problem of using calling V1's libs in V2
- Replies: 8
- Views: 731
- 16 May 2024, 02:42
- Forum: Ask for Help (v2)
- Topic: A problem of using calling V1's libs in V2
- Replies: 8
- Views: 731
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...
- 15 May 2024, 22:39
- Forum: Ask for Help (v2)
- Topic: A problem of using calling V1's libs in V2
- Replies: 8
- Views: 731
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...
- 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: 743
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...