Search found 26 matches

by tqphan
28 Jan 2024, 21:51
Forum: Ask for Help (v2)
Topic: How do I make key generate from one script to activate another key in another script? Topic is solved
Replies: 2
Views: 236

How do I make key generate from one script to activate another key in another script? Topic is solved

How do I make key generate from one script to activate another key in another script?

For example, in one script I have
a::b

and in another script, I have
b::c

so I press "a", the second script sends "c"

Don't ask why I need to do this and not just do a::c, it's complicated. :lol:
by tqphan
27 May 2023, 21:52
Forum: Ask for Help (v2)
Topic: Gui with -Caption
Replies: 1
Views: 368

Gui with -Caption

When creating Gui with -Caption, there is still a tiny bar on top. How do I get rid of this bar?
Image
by tqphan
29 Apr 2023, 19:46
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 36299

Re: WebView2

What is AHK equivalent of System.Drawing.Color.Transparent?

I tried

Code: Select all

wv.DefaultBackgroundColor := 0x00000111
by tqphan
29 Apr 2023, 17:32
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 36299

Re: WebView2

How do I make

Code: Select all

WinSetTransColor "000111", "ahk_id " win.hWnd
work with WebView2? I'm displaying a page with #000111 background and I want the #000111 color to be transparent.
by tqphan
23 Apr 2023, 21:14
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 36299

Re: WebView2

@xroot Is there an alternative way to accomplish button click without using DocumentTitleChangedEventHandler? This seems like a hacky solution.
by tqphan
23 Sep 2021, 15:20
Forum: Ask for Help (v2)
Topic: Catching Document Events For ActiveX Topic is solved
Replies: 8
Views: 1565

Re: Catching Document Events For ActiveX Topic is solved

@swagfag how do i distinguish between the mouse buttons with your method since I don't have the event passed though the OnMouseUp function?
by tqphan
20 Sep 2021, 21:23
Forum: Ask for Help (v2)
Topic: Catching Document Events For ActiveX Topic is solved
Replies: 8
Views: 1565

Catching Document Events For ActiveX Topic is solved

I want to catch OnMouseUp event. I think I need to connect with ComObjConnect(WB.Document, WB_events) but this gives an error of no valid COM object MyGui := Gui() URL := MyGui.Add("Edit", "w930 r1", "https://www.autohotkey.com/boards/") MyGui.Add("Button", "x+6 yp w44 Default", "Go").OnEvent("Click...
by tqphan
02 Sep 2021, 18:35
Forum: Scripts and Functions (v2)
Topic: WebView2 Control For Edge
Replies: 24
Views: 10849

Re: WebView2 Control For Edge

I'm running Win10 Pro x64
Could that be the problem?
by tqphan
01 Sep 2021, 16:36
Forum: Scripts and Functions (v2)
Topic: WebView2 Control For Edge
Replies: 24
Views: 10849

Re: WebView2 Control For Edge

Here is My Current WebView2 Include for Version 2.0-beta.1 ; Current WebView2 Include ; For Version 2.0-beta.1 On_ReSize(controller,*){ If(wvLeft+wvTop+wvRight+wvBottom>0) DllCall "SetRect","ptr",RECT,"int",wvLeft,"int",wvTop,"int",wvRight,"int",wvBottom Else DllCall "GetClientRect","ptr",AHKGui.hW...
by tqphan
31 Aug 2021, 21:19
Forum: Scripts and Functions (v2)
Topic: WebView2 Control For Edge
Replies: 24
Views: 10849

Re: WebView2 Control For Edge

When I ran the updated version of your script, I get a blank window. I have installed the evergreen webview2 runtime and using 1.0.902.49 of WebView2Loader.dll and AHK 2.0-beta.1
any idea?
by tqphan
04 Mar 2021, 16:41
Forum: Scripts and Functions (v2)
Topic: WebView2 Control For Edge
Replies: 24
Views: 10849

Re: WebView2 Control For Edge

Hi,
Thank you for sharing this library.

Where does dllPath supposed to point to?

Edit: It's \WebView2Loader, duh! It's working :bravo:
by tqphan
31 Oct 2020, 16:16
Forum: Ask for Help (v1)
Topic: Need help with getting data from a DllCall. I'm bad at programming
Replies: 2
Views: 296

Re: Need help with getting data from a DllCall. I'm bad at programming

Thank you, sir! I'm getting the numbers that expected now.
by tqphan
31 Oct 2020, 15:18
Forum: Ask for Help (v1)
Topic: Need help with getting data from a DllCall. I'm bad at programming
Replies: 2
Views: 296

Need help with getting data from a DllCall. I'm bad at programming

I'm making a DllCall to a function that requires a callback. The signature of the callback is as followed: typedef void (*tobii_gaze_point_callback_t)( tobii_gaze_point_t const* gaze_point, void* user_data ); So the two parameters for the callback are a pointer to a structure and another pointer to ...
by tqphan
30 Jun 2020, 19:07
Forum: Ask for Help (v1)
Topic: onpointerdown event in activeX control
Replies: 0
Views: 723

onpointerdown event in activeX control

I have the following html: <!DOCTYPE html> <html> <body> <div id="target"> Tap me, click me, or touch me! </div> <script> var targetBox = document.getElementById("target"); targetBox.onpointerdown = handleDown; function handleDown(evt) { var action; switch(evt.pointerType) { case "mouse": action = "...
by tqphan
23 Jun 2020, 18:11
Forum: Ask for Help (v1)
Topic: Changing click behaviors for onscreen keyboard
Replies: 1
Views: 1058

Changing click behaviors for onscreen keyboard

I have a physical disability and use the default onscreen keyboard. Currently the onscreen keyboard only support left click to activate the keys. Sometimes my finger for left click gets tired or unresponsive to my brain so I would switch between left and right click. I'm wondering if it's possible t...
by tqphan
15 Jun 2020, 16:53
Forum: Ask for Help (v1)
Topic: CSS :hover Selector On ActiveX Control
Replies: 3
Views: 1435

Re: CSS :hover Selector On ActiveX Control

Would you mind posting your ahk script? maybe something on my side is causing it.
by tqphan
15 Jun 2020, 16:10
Forum: Ask for Help (v1)
Topic: CSS :hover Selector On ActiveX Control
Replies: 3
Views: 1435

CSS :hover Selector On ActiveX Control

I have the following html/css loaded on an ActiveX control. When I move my mouse very fast over the elements, sometimes multiple elements are stuck on hover. This behavior doesn't exist if I load the page using all major browsers including IE 11. My ActiveX is using IE 11. Here's a gif to illustrate...

Go to advanced search