Search found 258 matches

by jsong55
05 Mar 2024, 05:58
Forum: Ask for Help (v2)
Topic: How to get the Gui Object which is Parent of the Button that Invoked the function Topic is solved
Replies: 2
Views: 96

How to get the Gui Object which is Parent of the Button that Invoked the function Topic is solved

When a Gui Button calls function, we get the Gui.Button.

But how to get the Gui object? Moving 1 level up the tree?
by jsong55
04 Mar 2024, 22:30
Forum: Ask for Help (v2)
Topic: Any built in method to set hotkey condition multiple Win not active? Topic is solved
Replies: 4
Views: 126

Any built in method to set hotkey condition multiple Win not active? Topic is solved

Alt+Q brings up command palette search of MS office products.

Any ideas how to make the Hotkey trigger only when no MS products are active window?
by jsong55
04 Mar 2024, 19:30
Forum: Scripts and Functions (v2)
Topic: GUI for Testing Multiple Scripts Over 1ks Of Iterations for Speed Optimization
Replies: 8
Views: 1847

Re: GUI for Testing Multiple Scripts Over 1ks Of Iterations for Speed Optimization

Great finding. Any idea why combining in single line is slightly slower? How about if else vs ternary and switch cases
by jsong55
04 Mar 2024, 09:47
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 36748

Re: WebView2

I get failed to load DLL error, even if I pass the full path to the last param on create.

Using Win 11

Also couldn't find much tutorial

Can someone guide me how to pass my form data collected by JS on single page html to main ahk script. How to add the listener or callback?
by jsong55
03 Mar 2024, 06:28
Forum: Ask for Help (v2)
Topic: Cloud Database Wrapper for v2 with Queuing? Or SQL Server
Replies: 1
Views: 88

Re: Cloud Database Wrapper for v2 with Queuing? Or SQL Server

Anyone has clues?

Right now all I can think of is application layer with C# to create end point APIs

Then Url download to var function to utilize
by jsong55
03 Mar 2024, 01:18
Forum: Ask for Help (v2)
Topic: Using Rich Text in Various GUI Components Like Buttons, Edits, Texts, Listbox
Replies: 3
Views: 101

Using Rich Text in Various GUI Components Like Buttons, Edits, Texts, Listbox

I was following this viewtopic.php?style=17&f=83&t=117275&hilit=richedit

And it seems with a Edit box, it's doable

but how about individual components?
by jsong55
01 Mar 2024, 06:22
Forum: Ask for Help (v2)
Topic: Cloud Database Wrapper for v2 with Queuing? Or SQL Server
Replies: 1
Views: 88

Cloud Database Wrapper for v2 with Queuing? Or SQL Server

Are there any libraries out there for

Cloud Database Wrapper for v2 with Queuing? Or for SQL Server?

SQL Express is free too

https://www.microsoft.com/en-us/download/details.aspx?id=101064
by jsong55
07 Nov 2023, 21:38
Forum: Ask for Help (v2)
Topic: Chrome Web Scrapping stuck in a wait for response loop with thqby Chrome class
Replies: 1
Views: 318

Chrome Web Scrapping stuck in a wait for response loop with thqby Chrome class

I am evaluating a JS and it works fine on index 0 all the way to 9 var:=page.Evaluate("document.querySelectorAll('selectors purposely hidden')[0].innerText")["value"] Index 10 get's stuck in this loop in the chrome class ; Wait for the response this._responses[ID] := false while (this.readyState = 1...
by jsong55
03 Nov 2023, 21:02
Forum: Ask for Help (v2)
Topic: thqby Chrome Class - How to wait for new page to load
Replies: 2
Views: 423

Re: thqby Chrome Class - How to wait for new page to load

Anyone can help?

Is there a way to navigate and connect to that new url then wait for it to load? There's usually some time lag from run chrome.exe url, so getpage will either throw an error or get another page.
by jsong55
17 Oct 2023, 05:45
Forum: Ask for Help (v2)
Topic: Explain EventObj with example code Topic is solved
Replies: 5
Views: 513

Re: Explain EventObj with example code Topic is solved

@teadrinker @just me @ntepa

Thanks for all your contributions very educational

Had to read this
viewtopic.php?f=86&t=113195

To understand the difference between making the button's callback function static or not.
by jsong55
17 Oct 2023, 02:18
Forum: Ask for Help (v2)
Topic: Explain EventObj with example code Topic is solved
Replies: 5
Views: 513

Re: Explain EventObj with example code Topic is solved

Interesting, how would you normally use EventObj?
by jsong55
16 Oct 2023, 21:16
Forum: Ask for Help (v2)
Topic: Explain EventObj with example code Topic is solved
Replies: 5
Views: 513

Explain EventObj with example code Topic is solved

Can someone explain EventObj with example code please? Also, how do I achieve a OOP way of adding Gui buttons and calling corresponding actions when clicked? GTest:=GTestFn(,,GTA) RunBtn:=GTest.Add("Button","xm y+0" " w100" " vRunBtn","RUN") RunBtn.OnEvent("Click",RunBtnFn) class GTestFn extends Gui...
by jsong55
22 Sep 2023, 00:21
Forum: Ask for Help (v2)
Topic: What is the best JSON parser/stringify library to use with AHK 2? I'm so confused. Topic is solved
Replies: 9
Views: 1557

Re: What is the best JSON parser/stringify library to use with AHK 2? I'm so confused. Topic is solved

neogna2 wrote:
20 Sep 2023, 03:10
There is also
https://github.com/thqby/ahk2_lib/blob/master/JSON.ahk
which is pure AHK (no .dll dependencies, unlike cpp-json also by thqby)
I personally use this.
by jsong55
16 Sep 2023, 02:12
Forum: Ask for Help (v2)
Topic: Why are some Gui OnEvent Callbacks global and not local - hard to debug in vscode
Replies: 4
Views: 385

Why are some Gui OnEvent Callbacks global and not local - hard to debug in vscode

Btn2:=teG.Add("Button","xm y+0" " w100" " vBtn2","Btn 2") Btn2.OnEvent("Click",Btn2Clicked) Btn2Clicked(*) { x:=Btn2.Value ; Params here are global sleep(1) Btn2Clicked() Btn2Clicked() { msgbox "In Inner function" x:=Btn2.Value ; Params here are local } Btn2Clicked_Inner() Btn2Clicked_Inner() { msg...
by jsong55
15 Sep 2023, 06:07
Forum: Ask for Help (v2)
Topic: Why is Gui OnEvent callback functions not local but global in VSCode debug
Replies: 1
Views: 145

Why is Gui OnEvent callback functions not local but global in VSCode debug

Code: Select all

; example I have guide control
G:=Gui()
Btn:=G.Add(.....)
Btn.OnEvent("click",fn1)
Fn1(*)
{
     ; anything here is global
    InnerFn()
    InnerFn()
    {
         ; here local
         
     }
}


by jsong55
16 Aug 2023, 17:25
Forum: Ask for Help (v2)
Topic: Get Date from MonthCal Topic is solved
Replies: 22
Views: 8754

Re: Get Date from MonthCal Topic is solved

I found another way, which I thought others might find useful. s_DT := f_GetDT() MsgBox (FormatTime(s_DT , "yyyy MM dd, HH:00")) ExitApp f_GetDT() { s_UpdatedDT := a_Now o_GetDT := GuiCreate("ToolWindow", "Get DT") o_GetDT.Add("DateTime" , "v_SelectedDT" , "MMMM dd HH:00 yyyy, dddd").OnEvent("Chang...

Go to advanced search