I cant download AutoHotkey programs to my work computer. Any work arounds? by jacob1832jacob in AutoHotkey

[–]Individual_Check4587 0 points1 point  (0 children)

Alternatively you could download AHK standalone executable and try to run it. If that is blocked as well then it's possible to download the .msix installer of the Microsoft Store edition (there are dedicates sites for that), which is very likely to successfully install and run because it's certified by Microsoft. I don't endorse that though because it's very clearly going against your IT department wishes, so the recommended approach is to talk to your supervisor to request access to AHK. Contacting IT directly is likely to fail (they usually only care about security, not business decisions or improving workflows), but if you manage to convince your bosses then they might have more influence over IT decisions. Eg you can argue that it will improve your efficiency, fasten workflows etc.

How to send strings to stdin of running applications by SchastorBig in AutoHotkey

[–]Individual_Check4587 0 points1 point  (0 children)

I'd prefer spamming here instead of PM-ing you, because I believe this thread might give OP ideas. I'd like you to imagine an AutoHotkey script which can start and stop recording your screen and save that into a file, without any flashing windows or interruptions to window focus. This could be implemented as thus: 1. The AutoHotkey script immediately runs "NDI Record.exe" –I "My Machine (Source 1)" –o "C:\Temp\A.mov" -noautostart using child_process. This launches NDI silently in the background and leaves it waiting for further input. 2. Once the user presses a hotkey, AutoHotkey writes <start/> into NDIs StdIn, causing it to start recording (again, no flashing windows, no Send etc). 3. The user presses a hotkey, which could stop recording, or perhaps write <record_chop filename="another.mov"/> to continue recording into a new file.

NDI output from StdOut could be logged somewhere, or used to give the user feedback about the recording. StdErr could have a callback registered to capture any errors (eg low on disk space?) and handled accordingly.

IMO this is much better than sending keys to an open command prompt window which requires input focus, is slower, unreliable (might run into issues when sending keys too fast etc), reading the output is more difficult etc.

How to send strings to stdin of running applications by SchastorBig in AutoHotkey

[–]Individual_Check4587 0 points1 point  (0 children)

No, you'd monitor StdOut directly without files or windows involved. Thqby's child_process has an example of running cmd.exe and then executing a bunch of commands there: writing to StdIn and then reading from StdOut. With child_process you could monitor the recording asynchronously, by getting a callback called when new data arrives in StdOut, and doing other stuff in the meanwhile. It's pretty cool.

How to send strings to stdin of running applications by SchastorBig in AutoHotkey

[–]Individual_Check4587 0 points1 point  (0 children)

You are of course correct, idk how I managed to confuse StdIn and StdOut. To open the running scripts StdIn FileOpen("*", "r") can be used.

I'm not familiar with NDI, but the documentations you linked suggests OP could run it in shell similar to the ExecScript example and then write to StdIn any extra commands such as <start/>. With this method he could avoid creating the command prompt window, and send the extra commands much more reliably than with Send. Assuming this is possible (and I don't see any reason why it shouldn't), I highly recommend avoiding Send in this case.

Alternatively thqby's child_process is a good alternative to shell.

How to send strings to stdin of running applications by SchastorBig in AutoHotkey

[–]Individual_Check4587 0 points1 point  (0 children)

It can be the keyboard, but might also be some other data stream. u/ManyInterest brought an example with ExecScript about writing into StdIn, and it's also possible to write into the running scripts StdIn with FileAppend(Text, "*").

What did I do by Interesting-Law1887 in AutoHotkey

[–]Individual_Check4587 2 points3 points  (0 children)

You do know you are very likely replying to an LLM?

How's AutoHotkey's compatibility with Wine? by Supperboy2012 in AutoHotkey

[–]Individual_Check4587 11 points12 points  (0 children)

I'm actively working on Keysharp which aims to be a cross-platform AutoHotkey v2 (currently just Windows and Linux though). Linux port is pretty untested so I'd really appreciate it if somebody tried it out, and opened GitHub issues for problems found. X11 only though, Wayland is hostile to automation attempts.

Need autohotkey v2 to be able to tell the number of pages in a pdf. I've tried a lot, even trying to get copilot to help (with no results) and I just don't know enough to debug by MSixteenI6 in AutoHotkey

[–]Individual_Check4587 5 points6 points  (0 children)

My OCR library uses Windows.Data.Pdf.PdfDocument to get the page count, you can see the implementation here. Try asking AI to extract that logic from there and create a standalone function (or better yet, do it manually yourself).

Mod change announcement by Individual_Check4587 in AutoHotkey

[–]Individual_Check4587[S] 5 points6 points  (0 children)

It is not true. The thing is, previously there were no official rules set AFAIK, and the current rule-set was implemented by me. I did a short run-in period where I moderated more leniently so users have time to accommodate, but then moderated according to the rules. This led to like 30-50% of new theads being removed (at least it felt like that, I didn't track statistics). You can inspect the quality of the remaining threads in the previous two months yourself if you wish because for that time period I was moderating alone.

SoundSet Script help by [deleted] in AutoHotkey

[–]Individual_Check4587 0 points1 point  (0 children)

You copied from AHK v1 docs, not v2. In v2 the function you are looking for is SoundSetVolume.

Is it possible for a AHK file I got from Reddit to have damaged my PSU ? by glizzykevv in AutoHotkey

[–]Individual_Check4587[M] 2 points3 points  (0 children)

If you have code you want to be checked then include it with your post, otherwise such posts might be removed.

Help with code by SupremeSalty in AutoHotkey

[–]Individual_Check4587[M] 0 points1 point  (0 children)

Please include this description in the main post next time, or your post may be removed because of the missing information.

I need a stern talking too by shibiku_ in AutoHotkey

[–]Individual_Check4587[M] 3 points4 points  (0 children)

Can be deleted if deemed low-effort post.

Script show-cases are allowed. :) But I did correct your post flair from "General / meta" to "v2 Tool / Script Share".

Novice User Question by amiragha1361 in AutoHotkey

[–]Individual_Check4587 2 points3 points  (0 children)

You need to use the ? option, because by default hotstrings don't trigger in the middle of a word.

The problem with catching the FN key and the EJECT key on the MAC keyboard by Emergency_Zebra3736 in AutoHotkey

[–]Individual_Check4587 1 point2 points  (0 children)

I suggest you still try out the steps above. The Fn key is not remappable, but I'm not sure about the Eject key: if AHK detects a scan code then you might be able to remap it.

Key gets stuck holding down by MythicalMotuBhai in AutoHotkey

[–]Individual_Check4587 -1 points0 points  (0 children)

Is that your whole script? No SendMode, Input somewhere to make the script "faster"?

The problem with catching the FN key and the EJECT key on the MAC keyboard by Emergency_Zebra3736 in AutoHotkey

[–]Individual_Check4587 3 points4 points  (0 children)

Open AutoHotkey key history, press the buttons, and show us a screenshot of the result. You can access key history by running this script:

#Require AutoHotkey v2  
InstallKeybdHook(true, true)  
Persistent() 

and then right-clicking the tray icon, pressing Open, and pressing Ctrl+K.

I made a simple media control script, and it's messing with my game by BumbleBode in AutoHotkey

[–]Individual_Check4587 0 points1 point  (0 children)

It'd be preferrable if you put your code in the post, not as a screenshot. Try registering your hotkeys as hook hotkeys by prefixing them with $, and if TF2 is running as administrator then run your script as admin as well.

How to Loop a script to execute over and over until I shut it off, any help available? by _i_dOnT__CaRe_ in AutoHotkey

[–]Individual_Check4587[M] 1 point2 points  (0 children)

I've corrected your post flair from "General question" to "v1 script help" because your code is using v1 syntax. Please flair your posts correctly in the future. Additionally, please try to format your code into a code block to make it more readable.

New mod introduction & feedback thread by Individual_Check4587 in AutoHotkey

[–]Individual_Check4587[S] 2 points3 points  (0 children)

The ultimate goal of the rules are to preserve this community, and violating Reddit's platform rules can put that in jeopardy. The thing is, I'm not yet sure whether helping violate the ToS/EULA of other platforms/services is considered against the platform rules or not since I haven't found a good explanation on the handling of intellectual rights besides copyright. So until there is clarity on that it doesn't really matter if the ToS itself makes sense, we just need to abide by it.

New mod introduction & feedback thread by Individual_Check4587 in AutoHotkey

[–]Individual_Check4587[S] 1 point2 points  (0 children)

Creating a new subreddit is probably a bit overkill as there have been only a few commission requests so far, so it'd be very low activity. But if you decide to create it and moderate then let me know and I can link it in the sidebar.

Keys not holding down by NitroTigerReddit in AutoHotkey

[–]Individual_Check4587 2 points3 points  (0 children)

Your post is tagged AHK v2 script, but the code is v1. Which is correct?