Search found 292 matches
- 25 Mar 2024, 08:28
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 337
- Views: 46508
Re: UIA v2
@fenchai browser automation with UIA is highly unreliable, because in addition to webpages user interface changing, also the browsers UIA tree tends to change with browser updates. I've needed to adapt and change UIA v2 UIA_Browser multiple times because of this. I am not updating v1 UIA_Interface ...
- 23 Mar 2024, 16:23
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 337
- Views: 46508
Re: UIA v2
I have been having some weird issues with UIA these days, I haven't changed my code in any way. I am automating google chrome on 2 computers, but on one computer (COMP 1) it works as usual, but on the other (COMP 2) it stopped working so I was trying to debug: UIA := new UIA_Browser("ahk_exe " brows...
- 19 Jan 2024, 11:25
- Forum: Ask for Help (v2)
- Topic: Block Input on ahk gui listview? Topic is solved
- Replies: 4
- Views: 144
Re: Block Input on ahk gui listview? Topic is solved
tried something like this but it didn't work: WM_MOUSEMOVE(wParam, lParam, msg, hwnd) { Control := "" thisGui := GuiFromHwnd(hwnd) thisGuiControl := GuiCtrlFromHwnd(hwnd) if thisGuiControl { thisGui := thisGuiControl.Gui Control := thisGuiControl.ClassNN } ToolTip Control if (Control = "SysListView3...
- 19 Jan 2024, 10:38
- Forum: Ask for Help (v2)
- Topic: Block Input on ahk gui listview? Topic is solved
- Replies: 4
- Views: 144
Re: Block Input on ahk gui listview? Topic is solved
Hello, Some other posts show how to use OnMessage to detect keyboard or mouse activity when a GUI is active. Another approach could simply be to use BlockInput . If needed, setting a mouse button to Return will prevent the button from doing anything. InputHook provides a way to capture text input, ...
- 19 Jan 2024, 09:22
- Forum: Ask for Help (v2)
- Topic: Block Input on ahk gui listview? Topic is solved
- Replies: 4
- Views: 144
Block Input on ahk gui listview? Topic is solved
I would like to block clicks or keyboard input only on ahk gui listview, is it possible?
- 27 Dec 2023, 10:31
- Forum: Ask for Help (v2)
- Topic: preventing Send ^c from triggering A_MaxHotkeysPerInterval warning box
- Replies: 1
- Views: 562
preventing Send ^c from triggering A_MaxHotkeysPerInterval warning box
I have a bunch of hotkeys that lead to a single function that sends ^c, waits for the data to be grabbed then does other stuff, is there a way to prevent the warning box from showing? I know the warning box might show from computer overload, is there a way to detecth the box and then restart the scr...
- 19 Dec 2023, 08:18
- Forum: Ask for Help (v2)
- Topic: A way to debounce hotkeys
- Replies: 6
- Views: 369
Re: A way to debounce hotkeys
Another example of this is below. #Requires AutoHotkey v2.0 #MaxThreadsPerHotkey 9 targetWindow := 'ahk_exe notepad.exe' nMax := 3 reset If A_Args.Length ; If a command-line parameter was provided, copyCode(A_Args[1]) ; then call the function SoundBeep 1500 #HotIf WinActive(targetWindow) ~LButton::...
- 19 Dec 2023, 03:30
- Forum: Ask for Help (v2)
- Topic: A way to debounce hotkeys
- Replies: 6
- Views: 369
Re: A way to debounce hotkeys
1. A variable can serve as a counter. 2. Elapsed time can be measured via A_TickCount . 3. Aborting can be achieved by restarting the script. 4. When a script is run, command-line parameters can be added to indicate that the script should execute a specific task. I know I can use a variable to keep...
- 18 Dec 2023, 15:40
- Forum: Ask for Help (v2)
- Topic: A way to debounce hotkeys
- Replies: 6
- Views: 369
A way to debounce hotkeys
I have hotkeys like: HotIfwinActive target_win Hotkey "~LButton", copyCode Hotkey "~Up", copyCode Hotkey "~Down" copyCode Hotkey "~Left" copyCode Hotkey "~Right" copyCode copyCode(thisHotkey) { ;basically a function that sends ^c ;manages clipboard data ; then checks and returns data from my sqlite ...
- 18 Aug 2023, 08:06
- Forum: Ask for Help (v2)
- Topic: [Excel VBA] Speeding up a loop in excel Topic is solved
- Replies: 2
- Views: 392
Re: [Excel VBA] Speeding up a loop in excel Topic is solved
made some changes to the function above to fit my script, works perfectly! getInventListFromXlsx(file) { ; loop invent.xlsx and get return item list xl := ComObject("Excel.Application") xl.Visible := false wb := xl.Workbooks.Open(inventXlsxPath) sarr := xl.Intersect(xl.columns("A:H"), xl.ActiveSheet...
- 17 Aug 2023, 21:28
- Forum: Ask for Help (v2)
- Topic: [Excel VBA] Speeding up a loop in excel Topic is solved
- Replies: 2
- Views: 392
[Excel VBA] Speeding up a loop in excel Topic is solved
i created this ahk function to loop an excel file until A column's cell has no more text to extract. it loops every row and then extracts that row's code, group and qty then pushes it into a list as an object. getInventListFromXlsx(file) { ; loop invent.xlsx and get return item list xl := ComObject(...
- 17 May 2023, 10:54
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 337
- Views: 46508
Re: UIA v2 beta
it looks like WaitElementFromPath() has no arguments? is there a way to set the timeout? or do I have to implement it myself? WaitElement() has timeout argument.
- 18 Mar 2023, 11:07
- Forum: Scripts and Functions (v2)
- Topic: [AHK v2] RichEdit Class
- Replies: 5
- Views: 1905
Re: [AHK v2] RichEdit Class
do you plan to updating it? it doenst seem to work on latest v2 atm, I will try to fix if I can.
- 15 Mar 2023, 07:23
- Forum: Scripts and Functions (v2)
- Topic: Class LV_Colors v2.0 - 2023-05-06
- Replies: 59
- Views: 13697
Re: Class LV_Colors v2.0 - 2023-01-04
thanks for letting me know!
- 13 Mar 2023, 17:06
- Forum: Scripts and Functions (v2)
- Topic: Class LV_Colors v2.0 - 2023-05-06
- Replies: 59
- Views: 13697
Re: Class LV_Colors v2.0 - 2023-01-04
I found a solution, I removed .ShowColors(), used updateProps() then apply the .row() coloring before showing the GUI. the steps position matters.
- 13 Mar 2023, 06:50
- Forum: Scripts and Functions (v2)
- Topic: Class LV_Colors v2.0 - 2023-05-06
- Replies: 59
- Views: 13697
- 12 Mar 2023, 18:32
- Forum: Scripts and Functions (v2)
- Topic: Class LV_Colors v2.0 - 2023-05-06
- Replies: 59
- Views: 13697
Re: Class LV_Colors v2.0 - 2023-01-04
Long time fan of your work, thanks for v1 and now v2! I have an issue with the library. so far, I have tested: SelectionColors() and the Alt{x}() methods work perfectly. but I haven't gotten the luck of making .Cell() and .Row() methods work. is there something I am missing here? mainGui() { global ...
- 09 Mar 2023, 21:24
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 337
- Views: 46508
Re: UIA v2 beta
Descolada , for some weird reason... - edge has no invoke methods, only LegacyIAccessible , ScrollItem , TextChild , TextEdit and Text . does it means it cannot do click actions? then why does it show up on the Macro creator Action menu? mmm maybe it's best to disable it? - chrome shows Invoke, Leg...
- 09 Mar 2023, 08:49
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 337
- Views: 46508
Re: UIA v2 beta
Descolada , this is what I am doing: - I am running edge in private mode . - this is the code I am running in the test zone in UIAViewer: #include UIA.ahk msedgeEl := UIA.ElementFromHandle("Some Website - [InPrivate] - Microsoft Edge ahk_exe msedge.exe") msedgeEl.ElementFromPath("Y/YYY/YqYYYYVRR/R...
- 08 Mar 2023, 16:08
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 337
- Views: 46508
Re: UIA v2 beta
So I was testing and so far it works pretty well! I have had issues with: ComCall(4, this) when trying to .Click() it seems the path cannot be found? but weirdly enough, I am using the test tool from UIAViewer which should contain the correct path? any solution to this issue? it only happened on 1 s...