Search found 31 matches

by Cebolla
03 Nov 2024, 06:32
Forum: Scripts and Functions (v2)
Topic: Class: Monitor-Methods For Per-Monitor DPI Aware Window Scaling
Replies: 2
Views: 243

Re: Class: Monitor-Methods For Per-Monitor DPI Aware Window Scaling

Nice job! :thumbup: Definitely simplifies making DPI-responsive GUIs. Do you think the cJSON and cArray dependencies could be removed though (or integrated in the monitor class)? It's weird that a monitor class changes the array prototype object, and it's quite common for users to already use some ...
by Cebolla
02 Nov 2024, 20:14
Forum: Scripts and Functions (v2)
Topic: Class: Monitor-Methods For Per-Monitor DPI Aware Window Scaling
Replies: 2
Views: 243

Class: Monitor-Methods For Per-Monitor DPI Aware Window Scaling

Description - Monitor class This class provides methods for obtaining information about monitor size, dimensions, position, and DPI. The calling script can gather monitor information using: - A single point: Monitor.GetFromPoint - A window's hwnd : Monitor.GetFromWindow - A rectangle (left, top, ri...
by Cebolla
20 Oct 2024, 06:57
Forum: Ask for Help (v2)
Topic: Trying to Make a Simple Search and Replace Text Script
Replies: 13
Views: 733

Re: Trying to Make a Simple Search and Replace Text Script

To echo what xMaxrayx has said, your order of operations is incorrect. You also seem to have a misunderstanding about the string variables. But don't be disheartened, you're on the right track and as long as you stick with it you will get better. ; note that literal text must quoted. Anything unquot...
by Cebolla
18 Oct 2024, 20:46
Forum: Scripts and Functions (v2)
Topic: Gui Control Resizer (another one)
Replies: 0
Views: 532

Gui Control Resizer (another one)

GuiResizer The purpose of this class is to simplify the process of resizing controls when a Gui window is resized. Parameters {Object} g - The Gui object that contains the controls. {Array|Object|Map} params - A single object or Map object, or an array of objects or Maps. Each object is a key-value...
by Cebolla
30 Sep 2024, 01:15
Forum: AutoHotkey Development
Topic: Nothing.
Replies: 46
Views: 22666

Re: Nothing.

I think what you really mean is that you would prefer both the name and the general concept and behaviour to be like certain other languages which use "null". I gave it a unique name because it is not intended to be a copy of null as seen in any other language. The purpose, semantics and behaviour ...
by Cebolla
25 Sep 2024, 23:51
Forum: Ask for Help (v2)
Topic: After migration to v.2 CapsLock behavior is changed
Replies: 6
Views: 392

Re: After migration to v.2 CapsLock behavior is changed

I couldn't figure out a "proper" approach, but here's a brute force approach, just delete the letters you actually intend to use. Also, this page in the documentation explains how to modify the registry to remap your keys: https://www.autohotkey.com/docs/v2/misc/Remap.htm#registry for item in ['a','...
by Cebolla
22 Sep 2024, 21:56
Forum: AutoHotkey_H
Topic: Continuous dll calls to "DefSubclassProc"
Replies: 1
Views: 1038

Re: Continuous dll calls to "DefSubclassProc"

I recreated the concept without the RichEdit components, and the problem no longer occurs. The source of the problem is most likely due to a problem in my implementation of RichEdit.
by Cebolla
20 Sep 2024, 23:47
Forum: Ask for Help (v2)
Topic: Create a Function Dynamically
Replies: 4
Views: 553

Re: Create a Function Dynamically

In practice it would not make much sense to have the FuncText be hard coded. This is for situations like where the user can define a simple function. Just out of curiosity, I tried to get the SendMessage/OnMessage to work with ExecScript but could not. But I am not that familiar with using SendMess...
by Cebolla
20 Sep 2024, 00:05
Forum: Ask for Help (v2)
Topic: Create a Function Dynamically
Replies: 4
Views: 553

Re: Create a Function Dynamically

With AHK_H, you can execute a string to code with the function `ahkExec`. Take for example this code: #HotIf ConditionalFn() ^Enter::ExecuteStringAsCode() #HotIf global g, title := 'AHK.GUI.TITLE' ConditionalFn() { global title return (WinExist(title) && WinActive(title)) } ExecuteStringAsCode() { g...
by Cebolla
19 Sep 2024, 20:45
Forum: AutoHotkey_H
Topic: Continuous dll calls to "DefSubclassProc"
Replies: 1
Views: 1038

Continuous dll calls to "DefSubclassProc"

While testing with multithreading, I inspected the recently read lines. The interpreter is repeatedly calling this DLL dozens of times per second. I'm assuming this is not supposed to happen, so I am posting it here. Output "Lines most recently executed": Script lines most recently executed (oldest ...
by Cebolla
15 Sep 2024, 20:50
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 49
Views: 16243

Re: thqby's AutoHotkey_H v2.0 & v2.1

changxiaotiao xMaxrayx In case of others looking here for help with using loops in a multithreaded environment, one solution to the this problem is to introduce break-out points for the loop. Define a point in the loop when the thread checks for a condition, and if true, pauses or breaks the loop. ...
by Cebolla
15 Sep 2024, 19:24
Forum: AutoHotkey Development
Topic: Nothing.
Replies: 46
Views: 22666

Re: Nothing.

Never , Null is like a third option "user never set the value kind" and take some size on ram wont make the code crash, unset is just destroying the variable. I believe I undertand your meaning 😂 and yes I agree. I want to be able to reference a symbol in my code even if that symbol does not have a...
by Cebolla
13 Sep 2024, 01:56
Forum: AutoHotkey Development
Topic: Nothing.
Replies: 46
Views: 22666

Re: Nothing.

I disagree that null/unset passed to a function should produce no change. Such code should throw an error, otherwise it'd lead to hard-to-debug problems in the future (as AHK v1 did with silent fails). Either your array must have values at all indices, or your function should be able to handle unse...
by Cebolla
12 Sep 2024, 01:53
Forum: AutoHotkey Development
Topic: Nothing.
Replies: 46
Views: 22666

Re: Nothing.

I spent a good 6 hours playing around with various ways to represent `null` in AHK, just last night in fact. Funny how sometimes unrelated things line up, like me now stumbling upon this discussion. AHK's implementation of null values is functional, and I haven't encountered any problems or limitati...
by Cebolla
02 Sep 2024, 23:34
Forum: Scripts and Functions (v2)
Topic: RichEdit - a rich edit control for AHK v2 (2023-05-23)
Replies: 20
Views: 6505

Re: RichEdit - a rich edit control for AHK v2 (2023-05-23)

@just me I tried to run the demo but encountered this error RichEdit.ahk (140) : ==> This operator's right operand must not be unset. For anyone using AHK_H, (and presumably 2.1 alpha) you can fix this error by removing the question marks from line 140. edit: the sample is runnable with this, but I...
by Cebolla
21 Aug 2024, 01:49
Forum: Scripts and Functions (v2)
Topic: Class ToolTipOptions - 2024-03-27
Replies: 52
Views: 10185

Re: Class ToolTipOptions - 2024-03-27

I've gotten a lot of use out of ToolTipOptions since I downloaded it. So I wanted to share my helper class I built around it, which basically simplifies using timers, toggling coordmode/dpi awareness, and sets some defaults so I can just call tooltips with ease. There's instructions at the top, and ...
by Cebolla
17 Aug 2024, 16:27
Forum: Scripts and Functions (v2)
Topic: Flexi-Finder - Customizable File search tool.
Replies: 4
Views: 702

Re: Flexi-Finder - Customizable File search tool.

prasad383 After posting I was like... yeah he's def already using it. But I agree on all points. Sometimes it's better to have a simpler tool that does exactly what I want it to do, than to use an existing, more powerful tool. I get the sense that users of scripting languages for personal projects ...
by Cebolla
16 Aug 2024, 04:12
Forum: Scripts and Functions (v2)
Topic: Flexi-Finder - Customizable File search tool.
Replies: 4
Views: 702

Re: Flexi-Finder - Customizable File search tool.

@ozzii at the top of the script is a commented `;include ImagePut.ahk`. You can download ImagePut.ahk here: https://www.autohotkey.com/boards/viewtopic.php?t=76633 Add that to your library and the error will go away. @prasad383 This works great, I really like it a lot. Thank you for sharing it. I re...
by Cebolla
20 Jul 2024, 18:57
Forum: Scripts and Functions (v2)
Topic: Coding QOL Improvement: An Enhancement to THQBY's VS Code Addon
Replies: 15
Views: 2394

Re: Coding QOL Improvement: An Enhancement to THQBY's VS Code Addon

Thanks for releasing this, GroggyOtter. I found it on Reddit some time ago and never said thanks. So thanks. It really is very handy. Your update with the auto-updater confused me because of the aforementioned setting in THQBY's project allowing me to point directly to the folder containing the defi...
by Cebolla
19 Jul 2024, 22:30
Forum: Ask for Help (v2)
Topic: need v2 script to move mouse
Replies: 3
Views: 577

Re: need v2 script to move mouse

Here you go. When you press `F9`, the MouseMover will activate, and the mouse pointer will move betwee the two coordinates at the specified interval. When you press `F9` again, the MouseMover stops. Also a little tooltip will display whenever you hit `F9` so that way you can have visual feedback tha...

Go to advanced search