Search found 290 matches

by fenchai
19 Jan 2024, 11:25
Forum: Ask for Help (v2)
Topic: Block Input on ahk gui listview? Topic is solved
Replies: 4
Views: 141

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...
by fenchai
19 Jan 2024, 10:38
Forum: Ask for Help (v2)
Topic: Block Input on ahk gui listview? Topic is solved
Replies: 4
Views: 141

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, ...
by fenchai
19 Jan 2024, 09:22
Forum: Ask for Help (v2)
Topic: Block Input on ahk gui listview? Topic is solved
Replies: 4
Views: 141

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?
by fenchai
27 Dec 2023, 10:31
Forum: Ask for Help (v2)
Topic: preventing Send ^c from triggering A_MaxHotkeysPerInterval warning box
Replies: 1
Views: 561

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...
by fenchai
19 Dec 2023, 08:18
Forum: Ask for Help (v2)
Topic: A way to debounce hotkeys
Replies: 6
Views: 362

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::...
by fenchai
19 Dec 2023, 03:30
Forum: Ask for Help (v2)
Topic: A way to debounce hotkeys
Replies: 6
Views: 362

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...
by fenchai
18 Dec 2023, 15:40
Forum: Ask for Help (v2)
Topic: A way to debounce hotkeys
Replies: 6
Views: 362

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 ...
by fenchai
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: 388

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...
by fenchai
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: 388

[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(...
by fenchai
17 May 2023, 10:54
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 334
Views: 45452

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.
by fenchai
18 Mar 2023, 11:07
Forum: Scripts and Functions (v2)
Topic: [AHK v2] RichEdit Class
Replies: 5
Views: 1892

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.
by fenchai
15 Mar 2023, 07:23
Forum: Scripts and Functions (v2)
Topic: Class LV_Colors v2.0 - 2023-05-06
Replies: 59
Views: 13590

Re: Class LV_Colors v2.0 - 2023-01-04

thanks for letting me know!
by fenchai
13 Mar 2023, 17:06
Forum: Scripts and Functions (v2)
Topic: Class LV_Colors v2.0 - 2023-05-06
Replies: 59
Views: 13590

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.
by fenchai
13 Mar 2023, 06:50
Forum: Scripts and Functions (v2)
Topic: Class LV_Colors v2.0 - 2023-05-06
Replies: 59
Views: 13590

Re: Class LV_Colors v2.0 - 2023-01-04

just me wrote:
13 Mar 2023, 03:41
Currently you might need to call BgCLV.UpdateProps() after you changed the LVs contents.
I added BgCLV.UpdateProps() before and after main.Show() but it still does not change any color. Am I out of luck?
by fenchai
12 Mar 2023, 18:32
Forum: Scripts and Functions (v2)
Topic: Class LV_Colors v2.0 - 2023-05-06
Replies: 59
Views: 13590

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 ...
by fenchai
09 Mar 2023, 21:24
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 334
Views: 45452

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...
by fenchai
09 Mar 2023, 08:49
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 334
Views: 45452

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...
by fenchai
08 Mar 2023, 16:08
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 334
Views: 45452

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...
by fenchai
22 Feb 2023, 09:05
Forum: Ask for Help (v1)
Topic: how can I read a Dbase or DBF file?
Replies: 12
Views: 1667

Re: how can I read a Dbase or DBF file?

We have a massive custom production management / inventory control system written in dBase IV. While it is ancient technology, and we've had to jump a few hurdles to get it to run on 64 bit machines, it does exactly what we need in the way that we want it. I've used dBase since dBase II came out in...
by fenchai
22 Feb 2023, 09:02
Forum: Ask for Help (v1)
Topic: how can I read a Dbase or DBF file?
Replies: 12
Views: 1667

Re: how can I read a Dbase or DBF file?

this is not an ahk-script, its a standalone freeware 2837-kB , I just short tried to read old dbf-files created with dBase III http://www.alexnolan.net/software/ http://www.alexnolan.net/software/dbf.htm --------------------- http://www.alexnolan.net/software/ http://www.alexnolan.net/software/dbf....

Go to advanced search