Search found 17 matches

by ahbi
11 Jun 2020, 12:36
Forum: Ask for Help (v1)
Topic: Focus monitoring: Is there a better way?
Replies: 0
Views: 311

Focus monitoring: Is there a better way?

Since the Windows update, my windows have randomly been losing focus. Needless to say, this is a nightmare for typing. I want to write a program to monitor who has focus and log changes. I could put WinGetActiveStats in a loop, but I am wondering if there is a more elegant way to do this (e.g., COM,...
by ahbi
07 Oct 2018, 16:49
Forum: Scripts and Functions (v1)
Topic: [Class] LogClass - Logging and log file management class
Replies: 12
Views: 7985

Re: [Class] LogClass - Logging and log file management class

My application usually just runs once a day, but occasionally more often. In those cases the original log file gets overwritten. Is there a built-in way to control this? I'd rather it just keep appending or rotate the logs and keep the original intact somehow. There is. My initial idea was you just...
by ahbi
06 Oct 2018, 23:55
Forum: Scripts and Functions (v1)
Topic: Shove-it: move windows back on to the screen
Replies: 6
Views: 2778

Re: Shove-it: move windows back on to the screen

Interesting. No issues for me. But to %% or not to %% is the bane of my AutoHotKey existence What is your section name? I have a new version of Shove-It semi-complete (messing with the log ability and ignoring windows that refuse to be shoved). I'll add your code to it before I release it. And thank...
by ahbi
20 Jun 2018, 00:11
Forum: Scripts and Functions (v1)
Topic: [Class] LogClass - Logging and log file management class
Replies: 12
Views: 7985

Re: [Class] LogClass - Logging and log file management class

Is the file object completely async? A thing that would be nice to have is something like logObject which could handle objects. And let's the user define a function for Object logging beforehand. Generally dealing with multiple types would by nice. Explain to me more how to do that? Or point me to ...
by ahbi
19 Jun 2018, 23:04
Forum: Scripts and Functions (v1)
Topic: [Class] LogClass - Logging and log file management class
Replies: 12
Views: 7985

Re: [Class] LogClass - Logging and log file management class

Wow I started needing a logging class today and I see this is less than a week old. Perfect timing. Thanks my dude. Thanks Please let me know if I need to correct any errors. I noticed that both .initalizeNewLogFile() and .finalizeLog() ignore pre/postEntryString, which seems a little inconsistant ...
by ahbi
18 Jun 2018, 12:51
Forum: Scripts and Functions (v1)
Topic: [Class] LogClass - Logging and log file management class
Replies: 12
Views: 7985

Re: [Class] LogClass - Logging and log file management class

FYI:
I am thinking about pulling out the ability to set the log's filename through anything but New().

This would mean all the filename-related properties would be read-only (get(), but no set())

PS:
GitHub is an idea. I have never used it before.
by ahbi
15 Jun 2018, 23:14
Forum: Scripts and Functions (v1)
Topic: [Class] LogClass - Logging and log file management class
Replies: 12
Views: 7985

[Class] LogClass - Logging and log file management class

This class makes working with a log file much easier. Once created, you can write to a log file with a single method call. Each instance of the object supports a single log file (and its inactive older versions). To use multiple log files (with separate names) create multiple instances. The log file...
by ahbi
11 Jun 2018, 19:48
Forum: Ask for Help (v1)
Topic: Is there a way to find what called the current function?
Replies: 7
Views: 1625

Re: Is there a way to find what called the current function?

Wow, that is truly exceptional.

Thank you all, especially nnmik for your full detailed example.
by ahbi
10 Jun 2018, 23:39
Forum: Ask for Help (v1)
Topic: Is there a way to find what called the current function?
Replies: 7
Views: 1625

Is there a way to find what called the current function?

%A_ThisFunc% is the current function. That I got. I have a program in which FuncA calls FuncB and FuncB calls FuncC. FuncD also calls FuncC. %A_ThisFunc% in FuncC is "FuncC" (as it should be). Is there any way within FuncC that I can tell if it was called by FuncB or FuncD? (Yes, I could pass some i...
by ahbi
29 May 2018, 01:08
Forum: Ask for Help (v1)
Topic: Change GUI width (from left) when control is deleted
Replies: 1
Views: 517

Change GUI width (from left) when control is deleted

What I am trying to do is move controls from the left of the GUI to the right of the GUI, and then have the GUI's width and X/Y change by dropping portions if itself from the left. Let us see if I can show this ... 1. |A|B| <-- GUI gets created 2. |B|A| <-- I move A from the left to the right of B [...
by ahbi
16 May 2018, 10:13
Forum: Ask for Help (v1)
Topic: Gui control variable names as array / pseudo-array
Replies: 3
Views: 1335

Re: Gui control variable names as array / pseudo-array

Gagdet: Should be Gadget:
Aww crap !!!!

Thanks. It is always the little things that drive you nuts.
by ahbi
15 May 2018, 22:31
Forum: Ask for Help (v1)
Topic: Gui control variable names as array / pseudo-array
Replies: 3
Views: 1335

Gui control variable names as array / pseudo-array

The short question, like most on the forum, is why doesn't the below work (i.e., update)? I have a GUI with a variable number of repeating elements. These elements need to show status (change text) independently. I am trying to just use a pseudo-array of variables to identify them, but I am having n...
by ahbi
28 Apr 2018, 11:32
Forum: Scripts and Functions (v1)
Topic: Shove-it: move windows back on to the screen
Replies: 6
Views: 2778

Shove-it: move windows back on to the screen

Ever get annoyed that windows appear partially off screen? Ever had that annoying window that appears way off screen and you can't grab its title bar? Shove-It makes program windows behave by keeping them from going off the screen. It also keeps them from slipping under the Taskbar when you have the...
by ahbi
18 Apr 2018, 13:29
Forum: Ask for Help (v1)
Topic: Req. help with Object Property set() method
Replies: 3
Views: 1342

Re: Req. help with Object Property set() method

Thanks a lot, but I still have a ton of questions you need to assign YCoordRel before you assign to the XCoordRel property, look in __new. I don't understand. It seems to work without flipping the assignment order in _New() Plus, if I did have to assign X before Y to make X.set() work, I'd be stuck ...
by ahbi
18 Apr 2018, 11:00
Forum: Ask for Help (v1)
Topic: Req. help with Object Property set() method
Replies: 3
Views: 1342

Req. help with Object Property set() method

Can I get some help in writing my first set method? Up until this point I have basically used AHK objects as arrays with some functions (which you know ...) , but now I am trying to branch out. I have a simple object with 5 properties. Every time I change Prop#1 or Prop#2, I want Prop#3 to also chan...
by ahbi
06 Apr 2018, 23:07
Forum: Scripts and Functions (v1)
Topic: [x64 & x32 fix] DeskIcons - Get/Set Desktop Icon Positions
Replies: 80
Views: 30384

Re: [x64 & x32 fix] DeskIcons - Get/Set Desktop Icon Positions

DeskIcons() is nice as far as it goes, but I am at a loss as to how to take the next step, setting arbitrary icon positions. If I dump out coords I get This PC:47318090 Recycle Bin:53150794 Handbrake:64816202 That 64816202 number (for Handbrake) must be a coordinate or related to one. And by adding ...

Go to advanced search