Double Click with ControlClick not working 1.1.31.00

Get help with using AutoHotkey and its commands and hotkeys
Jhartje
Posts: 6
Joined: 23 May 2019, 08:20

Double Click with ControlClick not working 1.1.31.00

10 Sep 2020, 13:48

I have a function set up to click on a row with-in a table, but now I need to double click on a row with-in that table to open a new window. But it does not seem to be working. Below if the function for double clicking the row but it is still only single clicking the row. Any ideas on what I am over looking in my code? Other things I have tried is to repeat a controlClick 2X, and setting the click count to 5 to see if more was better (It wasn't).

Code: Select all

DoubleClickRow(Value, ChildId)
    {
        For k, v in Acc_Children(this.table)
        {
            If (v.accValue(ChildId) = Value)
            {
                SelectedRow := v
                index := k
                Break
            }
            Else If (k = this.RowCount())
                Errorlevel := 1
        }
        acc_Location(this.Acc, 0, ParentLoc)
        acc_Location(SelectedRow, 0, xpos)
        Global PaneCoord := StrSplit(ParentLoc, A_Space, "x y")
        Global coord := StrSplit(xpos, A_Space, "x y")
        Global Clickx := coord[1] - PaneCoord[1] + 15
        Global Clicky := coord[2] - PaneCoord[2] + 10
        SetControlDelay -1
        ControlClick,, % this.WHNDL,,,2, NA X%Clickx% Y%ClickY% 
        return index
    }
Last edited by gregster on 10 Sep 2020, 16:21, edited 1 time in total.
Reason: Topic moved to 'Ask For Help' (from v2); [Code] tags added.

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, DanRim, Google [Bot], keylo, RicKami and 46 guests