Search found 3452 matches

by guest3456
14 Jun 2023, 12:26
Forum: About This Community
Topic: Constructive criticism
Replies: 24
Views: 8255

Re: Constructive criticism

the biggest mistake was not creating a new extension for v2

.ahk2 would have solved much of this

i am hugely against hiding v1... v1 will likely be the prevalent version for many years in the future, maybe even forever
by guest3456
27 May 2023, 21:27
Forum: Ask for Help (v1)
Topic: recognizing touchpad input
Replies: 2
Views: 455

recognizing touchpad input

touchpads have built in gesture features, such as swiping up/down with two fingers to initiate scrolling how can we detect this type of input in AHK? and then create and detect our own gestures? there is a free app called GestureSign which does this, but the source is in C# so i wouldn't even know w...
by guest3456
22 May 2023, 10:47
Forum: Ask for Help (v2)
Topic: Don't understand this v1 to v2 syntax conversion
Replies: 7
Views: 822

Re: Don't understand this v1 to v2 syntax conversion

now I'm just wondering if I would be seeing more assertions popping up and interrupting the execution of various hotkeys without functions being assigned to the ErrorLevel variable, or if removing the assignments and running the functions without them would result in seeing fewer unnecessary interr...
by guest3456
20 May 2023, 06:39
Forum: Ask for Help (v2)
Topic: Don't understand this v1 to v2 syntax conversion
Replies: 7
Views: 822

Re: Don't understand this v1 to v2 syntax conversion

In this case, I mainly wasn't sure why the v1 to v2 script conversion added a lot of these ErrorLevel assignments (which again, as you explained, actually doesn't make sense in this context) the converter doesn't scroll through your entire script to know what variables you use or not. instead, it m...
by guest3456
19 May 2023, 11:40
Forum: Ask for Help (v2)
Topic: Best practices for obscuring sensitive information Topic is solved
Replies: 5
Views: 532

Re: Best practices for obscuring sensitive information Topic is solved

move the sensitive info to a config file, and have your project read from the config file

then use a .gitignore file to ignore the config file so it doesnt go into the repo
by guest3456
15 May 2023, 11:56
Forum: Scripts and Functions (v2)
Topic: SendText - hotstring, text snippet manager
Replies: 7
Views: 2184

Re: SendText - hotstring, text snippet manager

Extremely tangentially related question - do you align your code manually or do you have a script or function that does it for you? Sorry for the minor post jack! use a good text editor like Vim, endure the learning curve, and find endless plugins like this: https://github.com/junegunn/vim-easy-align
by guest3456
04 May 2023, 12:34
Forum: Scripts and Functions (v2)
Topic: Pulover's Macro Creator for v2 [mod]
Replies: 23
Views: 6444

Re: Pulover's Macro Creator for v2 [mod]

sashaatx wrote:
03 May 2023, 16:57
no harm m8 (:
you've added MIT license but you are required by the GPL to keep your derivative work also as GPL. you should also keep Pulover's original license and copyright in the main dir
by guest3456
04 May 2023, 12:32
Forum: Scripts and Functions (v1)
Topic: v1 -> v2 Script Converter
Replies: 123
Views: 70098

Re: v1 -> v2 Script Converter

sashaatx wrote:
04 May 2023, 05:00
Hi Guest,
I reached out a week ago, I'd love to connect. I'm making a bunch of additions as I work with my EasyAutoGUI modded for v2 script.
I would just need your help with how to navigate the regex vs my instr mods. A brief chat would help me navigate the github.
replied on github
by guest3456
03 May 2023, 23:59
Forum: Ask for Help (v2)
Topic: how to make a func "force-local" ? Topic is solved
Replies: 8
Views: 638

Re: how to make a func "force-local" ? Topic is solved

You have not described your use case. You would only access the var as local if you define it in the function, and it's then local as I also showed. Unless you mean a nested function, but you have not said what you are trying to do. i have not described my use-case. but i did say what i am trying t...
by guest3456
03 May 2023, 13:04
Forum: Scripts and Functions (v2)
Topic: Pulover's Macro Creator for v2 [mod]
Replies: 23
Views: 6444

Re: Pulover's Macro Creator for v2 [mod]

hi guest3456, https://github.com/samfisherirl/Pulovers-Macro-Creator-for-AHKv2/blob/main/important/Documentation/License.md it looks like I placed i t in the wrong folder, Idk why the license.txt wasn't in the application I see its in my zipped version so It did get moved. Thats my fault. ah ok the...
by guest3456
03 May 2023, 12:30
Forum: Ask for Help (v2)
Topic: how to make a func "force-local" ? Topic is solved
Replies: 8
Views: 638

Re: how to make a func "force-local" ? Topic is solved

mikeyww wrote:
03 May 2023, 07:36

Code: Select all

#Requires AutoHotkey v2.0
x := 5
y := 999999999
j
MsgBox y

j() {
 y := 3
 MsgBox x
 MsgBox y
}
this doesn't make the func force-local. as your own example shows, x is read globally.

apparently there is no way, which seems extremely baffling
by guest3456
03 May 2023, 10:30
Forum: Scripts and Functions (v2)
Topic: Pulover's Macro Creator for v2 [mod]
Replies: 23
Views: 6444

Re: Pulover's Macro Creator for v2 [mod]

- Macro Creator credit to Mr. Pulover and all the credited creators listed here: https://github.com/Pulover/PuloversMacroCreator (will enumerate all credits soon) if i remember correctly, PMC was distributed under the GPL license, which requires that all derivative works such as yours to also be re...
by guest3456
03 May 2023, 09:32
Forum: Scripts and Functions (v2)
Topic: ClickLock Indicator
Replies: 0
Views: 484

ClickLock Indicator

ClickLock is an accessibility feature in Windows which allows you to click, hold for a second, and then release, but after releasing, the mouse down click is still held and locked. This allows you to click+drag without having to hold down the click the entire time, which is especially useful when us...
by guest3456
03 May 2023, 07:29
Forum: Ask for Help (v2)
Topic: how to make a func "force-local" ? Topic is solved
Replies: 8
Views: 638

how to make a func "force-local" ? Topic is solved

docs https://www.autohotkey.com/docs/v2/Functions.htm#Local Functions are assume-local by default. Variables accessed or created inside an assume-local function are local by default, with the following exceptions: Global variables which are only read by the function, not assigned or used with the re...
by guest3456
02 May 2023, 13:40
Forum: Ask for Help (v1)
Topic: How to remove windows from a group?
Replies: 4
Views: 1207

Re: How to remove windows from a group?

17 years later, how do we still have not a built-in solution to remove window group criteria?
by guest3456
30 Apr 2023, 13:27
Forum: Scripts and Functions (v1)
Topic: WinMoveZ() : Moves, but confines a window to the work area of target monitor
Replies: 9
Views: 1702

Re: WinMoveZ() : Moves, but confines a window to the work area of target monitor

The function: WinMoveZ(hWnd, C, X, Y, W, H, Redraw:=0) { ; WinMoveZ v0.5 by SKAN on D35V/D361 @ tiny.cc/winmovez Local V:=VarSetCapacity(R,48,0), A:=&R+16, S:=&R+24, E:=&R, NR:=&R+32, TPM_WORKAREA:=0x10000 C:=( C:=Abs(C) ) ? DllCall("SetRect", "Ptr",&R, "Int",X-C, "Int",Y-C, "Int",X+C, "Int",Y+C) :...
by guest3456
20 Apr 2023, 01:18
Forum: Scripts and Functions (v2)
Topic: Snipper - Window Snipping Tool
Replies: 125
Views: 26268

Re: Snipper - Window Snipping Tool

Something about AHK gui windows and PrintWindow that messes up on one of my computers but not the other. Not all AHK gui windows, just ones that have been interacted with by GDIp. I think it is something with pGraphics, it seems if a pGraphics is involved the window no long will respond properly fr...
by guest3456
19 Apr 2023, 11:30
Forum: Scripts and Functions (v2)
Topic: Snipper - Window Snipping Tool
Replies: 125
Views: 26268

Re: Snipper - Window Snipping Tool

You need to use something like this: since he's already using GDIP, he can just migrate the GdipBitmapFromHwnd() func, which calls PrintWindow. just need to add that -3 flag which the gdip lib omits Man, I am really confused now. I just tried GdipBitmapFromHwnd() on an older computer because everyo...
by guest3456
19 Apr 2023, 11:25
Forum: Scripts and Functions (v1)
Topic: v1 -> v2 Script Converter
Replies: 123
Views: 70098

Re: v1 -> v2 Script Converter

submeg wrote:
19 Apr 2023, 06:32
Is there a Discord for this?
not for this specific project, no. the discord joedf linked is a general ahk discord. work on this project is coordinated on github and in this thread
by guest3456
19 Apr 2023, 01:09
Forum: Scripts and Functions (v2)
Topic: Snipper - Window Snipping Tool
Replies: 125
Views: 26268

Re: Snipper - Window Snipping Tool

iseahound wrote:
17 Apr 2023, 20:00
You need to use something like this:
since he's already using GDIP, he can just migrate the GdipBitmapFromHwnd() func, which calls PrintWindow. just need to add that -3 flag which the gdip lib omits

Go to advanced search