Search found 601 matches

by songdg
Yesterday, 22:39
Forum: Ask for Help (v2)
Topic: A problem of using calling V1's libs in V2
Replies: 0
Views: 54

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
Yesterday, 03:55
Forum: Ask for Help (v2)
Topic: Can the text color of a radio button be changed? Topic is solved
Replies: 8
Views: 357

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
Yesterday, 03:54
Forum: Ask for Help (v2)
Topic: Can the text color of a radio button be changed? Topic is solved
Replies: 8
Views: 357

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
Yesterday, 03:49
Forum: Ask for Help (v2)
Topic: Can the text color of a radio button be changed? Topic is solved
Replies: 8
Views: 357

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

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: 375
Views: 54731

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

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

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

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

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

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

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...
by songdg
11 May 2024, 01:27
Forum: Scripts and Functions (v2)
Topic: Msgbox2 - customizable msgbox - 2021/07/25 - beta.1
Replies: 8
Views: 2829

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

MsgBox2_AHK-master\AHK2\TheArkive_MsgBox2_Example.ahk (8) : ==> #Include file "_JXON.ahk" cannot be opened.
Thanks, that's what I'm looking for, but I have a problem of running the example. Where I can find _JXON.ahk?
by songdg
10 May 2024, 22:48
Forum: Scripts and Functions (v2)
Topic: [Class] ScrollBar - A class to simplify the use and management of scrollbars in a Gui object
Replies: 1
Views: 482

Re: [Class] ScrollBar - A class to simplify the use and management of scrollbars in a Gui object

Thanks for sharing, there's a problem, if a listview with scrollbar that WheelUp/WheelDown doesn't work on it.
by songdg
09 May 2024, 21:58
Forum: Ask for Help (v2)
Topic: How to tell a single click from a rapid double click Topic is solved
Replies: 5
Views: 378

Re: How to tell a single click from a rapid double click Topic is solved

I do not understand the question or the problem. You will determine in you script whether the Listiview has checkboxes or not. If it does have checkboxes you can use the modified Class so that a rightclick edits the cell and a doubleclick checks the box. If it does not have checkboxes you can use t...
by songdg
08 May 2024, 03:39
Forum: Ask for Help (v2)
Topic: How to tell a single click from a rapid double click Topic is solved
Replies: 5
Views: 378

Re: How to tell a single click from a rapid double click Topic is solved

flyingDman Thanks for providing a neat solution :thumbup: . There's another problem, can I make the Class LVICE_XXS behave differently, if the ListView have checkboxes at the left side then use doubleclick for check / uncheck and right click for edit, otherwise use doubleclick for edit(cancel the r...
by songdg
06 May 2024, 22:19
Forum: Scripts and Functions (v2)
Topic: Notify - Display Notifications GUIs
Replies: 7
Views: 994

Re: Notify - Display Notifications GUIs

Wonderful, thanks for sharing :clap:
by songdg
06 May 2024, 21:55
Forum: Ask for Help (v2)
Topic: How to tell a single click from a rapid double click Topic is solved
Replies: 5
Views: 378

How to tell a single click from a rapid double click Topic is solved

How to tell a single click from a rapid double click, I want to checked/unchecked a row of a ListView with checkbox by clicking on the text of that row so I use the ToggleCheck function, also I use LVICE_XXS https://www.autohotkey.com/boards/viewtopic.php?f=83&t=94046 when double click triggers in-c...
by songdg
03 May 2024, 01:44
Forum: Ask for Help (v2)
Topic: ActiveX(HTML), how to underline a paragraph, change a sentence's background color and some words' font color Topic is solved
Replies: 4
Views: 501

Re: ActiveX(HTML), how to underline a paragraph, change a sentence's background color and some words' font color Topic is solved

Try this fix: #Requires AutoHotkey v2 DecoratedTextGui() DecoratedTextGui() { FixIE() wnd := Gui() document := wnd.AddActiveX('w220 h130', 'HTMLFILE').Value document.Write(' ( <!DOCTYPE html> <html> <head> <style> * { margin: 0; padding: 0; overflow: hidden; } .sometext { position: absolute; width:...
by songdg
01 May 2024, 18:39
Forum: Ask for Help (v2)
Topic: ActiveX(HTML), how to underline a paragraph, change a sentence's background color and some words' font color Topic is solved
Replies: 4
Views: 501

Re: ActiveX(HTML), how to underline a paragraph, change a sentence's background color and some words' font color Topic is solved

teadrinker Very happy to get your answer, I run your code but encounter a problem. Error: This value of type "HTMLDocument" has no method named "getElementsByClassName". 007: document := wnd.AddActiveX('w220 h130', 'HTMLFILE').Value 008: document.Write('<!DOCTYPE html> <html> <head> <style> * { mar...

Go to advanced search