Search found 139 matches

by DRocks
15 Oct 2018, 14:15
Forum: Scripts and Functions
Topic: CbAutoComplete - Auto-completes typed values in a ComboBox
Replies: 10
Views: 2064

Re: CbAutoComplete - Auto-completes typed values in a ComboBox

Hello, So after receiving help from A_AhkUser, I found myself in front of two functions that I did not fully understand - (first from Pulover and second from User). So I thought it was not acceptable to rely fully on them before I try to get my head around the way they work. In this exercice, I thin...
by DRocks
14 Oct 2018, 19:54
Forum: Scripts and Functions
Topic: CustomBoxes: a collection of helper functions
Replies: 10
Views: 1014

Re: CustomBoxes: a collection of helper functions

Good job wolf thanks for your sharing and help with my recent questions!!
by DRocks
14 Oct 2018, 08:00
Forum: Ask For Help
Topic: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved
Replies: 8
Views: 173

Re: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved

Just out of curiosity, does this work as you need? CONFIRMATION: ; ... OnMessage(0x0111, "Suppress_EN_CHANGE") ; register monitoring of WM_COMMAND AFAIK your hook is monitoring focus changes only. What is causing that high amount of focus changes? - First, as strange as it is, I re-tried to do this...
by DRocks
13 Oct 2018, 20:17
Forum: Ask For Help
Topic: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved
Replies: 8
Views: 173

Re: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved

Ok sorry, I thought that OnMessage() EN_CHANGE Supress would only affect code inside the function it calls, so thanks for clarification. :lol: Also, the UnRegistering of the WinEventHook is working perfectly when I am putting the unregister call on top of any gLabel and then re-inserting the hWinEve...
by DRocks
13 Oct 2018, 18:51
Forum: Ask For Help
Topic: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved
Replies: 8
Views: 173

Re: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved

^^ Thanks a lot again! Its really helpful to me. Like a university course! Ok, I understand the concept of the EN_Change but since I was not using this particular OnMessage() to monitor anything, I am not able to make it affect the script the way its currently written. Other than that, I was able to...
by DRocks
13 Oct 2018, 09:43
Forum: Ask For Help
Topic: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved
Replies: 8
Views: 173

Re: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved

Thanks alot Lexikos, its very well explained and I'll do my homeworks to fix it trying your solutions. Just to update the context, I managed to count which labels were triggered and how many times.. it is quite impressive lol. We are talking of 6 labels that go from minimum 700 to max 7756 repeats E...
by DRocks
12 Oct 2018, 20:47
Forum: Ask For Help
Topic: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved
Replies: 8
Views: 173

How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved

Context: - This is a financial calculation Gui - There are about 30 controls - We need to reset each controls (empty display) when done with a confirm button - Each control has a unique or grouped gLabel that triggers when modifying them - I also have a SetWinEventHook that is monitoring for Current...
by DRocks
12 Oct 2018, 13:40
Forum: Ask For Help
Topic: What do YOU use AHK for?
Replies: 30
Views: 1221

Re: What do YOU use AHK for?

Customize hotkeys in programs
create macros to automate repeatitive functionc of acounting programs
currently coding my own financial basic program
automate tasks for family

EDIT: hahah Cylon thats some usage :D
by DRocks
11 Oct 2018, 07:17
Forum: Ask For Help
Topic: How can I speed up this code that searches 800MB .csv files Topic is solved
Replies: 4
Views: 114

Re: How can I speed up this code that searches 800MB .csv files Topic is solved

^^ following the last post, and if I understood correctly - a good way to parse a file would look like the first option and not the second commented out one? GuiControlGet, R_content ; search content R_resul:= FileRead, JG_content, Data\JG.ini ; Extract all its content to JG_content variable ;/* loo...
by DRocks
11 Oct 2018, 07:14
Forum: Ask For Help
Topic: When function is called, break the former "for loop" called by the same function and start the new one Topic is solved
Replies: 7
Views: 97

Re: When function is called, break the former "for loop" called by the same function and start the new one Topic is solved

^^ ok I understand. Atleast I suppose Continue would help if you have lots of conditions to validate on each loop. As soon as it finds one condition it would stop checking the rest of conditions uselessly? Am I right? For the stoping I think you could try comparing at the top of the loop, if the sea...
by DRocks
11 Oct 2018, 05:41
Forum: Ask For Help
Topic: When function is called, break the former "for loop" called by the same function and start the new one Topic is solved
Replies: 7
Views: 97

Re: When function is called, break the former "for loop" called by the same function and start the new one Topic is solved

I just read yesterday that continue is equivalent to reaching loop's end bracket. So it is going to help if you position a continue after each condition's action. Check docs for the word continue in Loops Ex: if () { Do this... Continue } Else if() { Do this... Continue } Not 100% sure its best prac...
by DRocks
10 Oct 2018, 20:25
Forum: Ask For Help
Topic: Simplifying Block of Code using Variables Topic is solved
Replies: 3
Views: 72

Re: Simplifying Block of Code using Variables Topic is solved

This is a gem for any similar type of needs. Thanks for asking the question. And thanks Lexikos for the long detailed reply. Its super helpful to analyze it. PS: i also do like you for learning lol. The more you learn the more mystical talks you begin to understand its fun and gratifying hehe :D AHK...
by DRocks
10 Oct 2018, 15:32
Forum: Ask For Help
Topic: How to check focused control changes with OnMessage() rather than gLabel SetTimer? Topic is solved
Replies: 14
Views: 206

Re: How to check focused control changes with OnMessage() rather than gLabel SetTimer? Topic is solved

Good afternoon all, So after alot of trial and error I've been concluding that the easiest way to accurately maintain Gui Control Focus events is with the DllCall method. The problem with WM_COMMAND is that it reacts to many different Notification Codes which make it impossible (for me) to acheive d...
by DRocks
10 Oct 2018, 07:08
Forum: AutoGUI
Topic: AutoGUI 2.5
Replies: 103
Views: 10219

Re: AutoGUI 2.5

Nice !! Thank you sir good job
by DRocks
10 Oct 2018, 07:07
Forum: Scripts and Functions
Topic: StrQ() : String queue of Recent Items + FileQ() : Validates a File queue
Replies: 3
Views: 147

Re: StrQ() : String queue of Recent Items + FileQ() : Validates a File queue

Nice SKAN I am currently figuring this sort of things out too so Ill study your code. I am doing this with iniread/write to make ini able to append values in front of existing keys.

Thanks for sharing that :)
by DRocks
10 Oct 2018, 06:58
Forum: Scripts and Functions
Topic: More than just capslock - Capslock++
Replies: 1
Views: 109

Re: More than just capslock - Capslock++

Very nice idea thanks for sharing
by DRocks
09 Oct 2018, 21:22
Forum: Ask For Help
Topic: How to check focused control changes with OnMessage() rather than gLabel SetTimer? Topic is solved
Replies: 14
Views: 206

Re: How to check focused control changes with OnMessage() rather than gLabel SetTimer? Topic is solved

Good evening guys, After testing your great options tonight, this is a comparative test simplifying both methods side by side. To compare one or the other, all you have to do is comment out either the DllCall or the OnMessage() I still don't know which one of the two I prefer but for your informatio...
by DRocks
09 Oct 2018, 10:55
Forum: Ask For Help
Topic: How to check focused control changes with OnMessage() rather than gLabel SetTimer? Topic is solved
Replies: 14
Views: 206

Re: How to check focused control changes with OnMessage() rather than gLabel SetTimer? Topic is solved

Microsoft docs: Message Source wParam (high word) wParam (low word) lParam Control Control-defined notification code Control identifier Handle to the control window Is the wParam Low Word (control identifier) any useful? Would you be able to use any of these without defining hWnd and only using GUI'...
by DRocks
09 Oct 2018, 07:35
Forum: Ask For Help
Topic: How to check focused control changes with OnMessage() rather than gLabel SetTimer? Topic is solved
Replies: 14
Views: 206

Re: How to check focused control changes with OnMessage() rather than gLabel SetTimer? Topic is solved

I also ran into the same problem as in this thread with not being able to get WM_KILLFOCUS to work. #NoEnv WM_COMMAND := 0x111 OnMessage(WM_COMMAND, "MessageHandler") Gui, +AlwaysOnTop Gui, Add, Edit, w200 vEdit1 hWndhEdit1, Initial value! Gui, Add, Edit, w200 vEdit2 hWndhEdit2, Initial value! Gui,...

Go to advanced search