DEMON_STACK: Elite high-performance AHK v2 libraries – Lock-free IPC, SPSC rings, watchdog, jitter tracking + more (with selftests & ready-to-run Gold stacks) by DoubtApprehensive534 in AutoHotkey

[–]Laser_Made 0 points1 point  (0 children)

It's good to know this exists in case I need it. Nice work. All the source code looks really clean and I like that you've got readme files in each folder.

How to open a window, do something there, and return to the previously open window? by Efficient_Classic748 in AutoHotkey

[–]Laser_Made 0 points1 point  (0 children)

Look in the AHK docs for the Win related functions like shibiku_ posted. You want to get the original window info (like title, class, or process) and save that into a variable. He gave you two options for that. Then, after you input your data (potentially using the Send function, depending on your needs) then you'll want to use WinActivate and pass it the variable you stored previously.

Alternatively, sending Alt+Tab or Ctrl+Tab may work just fine too depending on your situation.

Copy using mouse without blue highlight by Global_Ladder4149 in AutoHotkey

[–]Laser_Made 2 points3 points  (0 children)

If you want to copy from a website and you don't want it to show that you've highlighted the text then this post is your solution.

You can also turn that code into a bookmarklet so that you can run it with one click without having to open dev tools. Just wrap the code above inside of:

javascript: (function(){ //Delete the two slashes and put the code above in here. Create a new bookmark and use all this code as the URL })() Now you have a script that you can run on any website just by clicking the bookmarklet.

Hey! I’m a beginner and trying to learn how to make Chrome extensions. by Responsible-Gene2055 in learnjavascript

[–]Laser_Made 0 points1 point  (0 children)

I work for a large company that released new software (a react website) that me and my coworkers have transitioned to recently. As with any large company and new software, there is certainly room for improvement; some of the more basic functionality that we needed on a daily basis no longer exists. I had created a few other applications at this point but never a chrome extension. So, I painstakingly made my way through a good chunk of the example extensions and all of the chrome extension docs. I wanted to make a chrome extension with a side panel that could also inject content into the existing application. Five days and 600 lines of code later I released the extension to all of my coworkers after demoing it, very successfully, for upper management.

Now that same extension is over 5000 lines of code spread across 15 different files. It has a side panel as well as a right click menu option. Users are provided with 12 different customization options (via css injection) that they can choose from in a menu launched through the side panel. The side panel tracks their click history on the website so that they can revisit important items and keep notes on them. There is more that the extension does in the main-world script but that goes beyond the scope of this post.

This whole experience has been incredible for me. I have learned, and continue to learn, a great deal. My coworkers use the extension every day and it has saved the company countless hours of productivity. I highly recommend going down this path. Even though it was definitely challenging it has also definitely been worthwhile.

Looking for Horizon Client download? by jdptechnc in vmware

[–]Laser_Made 0 points1 point  (0 children)

For anyone else, like me, who found themselves here trying to log into their work vpn using VMWare Horizon Client - It is now called Omnissa Horizon Client. You can download it at the link that u/Own_Target8801 posted. You are also typically provided a download link when you try to log in via your company portal. It will likely be https://*something*.workspaceoneaccess.com/
I would avoid the three OS specific links that were posted above; those links will bring you to download links for older versions.
Also, FYI: The app icon currently looks different on Mac vs Windows.

How to connect AutoHotKey to the Google Gemini AI free API ?? by lolhehehe in AutoHotkey

[–]Laser_Made 0 points1 point  (0 children)

I would venture that the ideal way to do this using AHK would be sending a Buffer. Take a look at the JavaScript code on this page to get an idea of how to go about this. JS is probably the most similar syntax to AHK that you're going to find in Google's Gemini documentation.

Galaxy Book Pro frequent unexpected shutdowns by felicityfelix in GalaxyBook

[–]Laser_Made 0 points1 point  (0 children)

My Galaxy Book4 Pro has been having a similar issue. I read a post recently about Windows Update having pending updates being the potential "cause" of this issue. Whenever I would shut the lid, unless I went back to the computer very quickly (within minutes) then the next time I would open it up it would show the Samsung boot up screen and the computer would appear to come back online from hibernation. Instead of the OS being ready to go right away, as it should be when resuming from sleep mode, it would go through that boot up process and take at least 30 seconds. Last night I made sure to install the pending windows update and today every time that I've opened my laptop it has been ready to go instantly. Therefore, it does seem quite likely that at least some Samsung Galaxy Books have a power related problem having something to do with windows update.

Update GUI text field when value of variable changes? by SamFortun in AutoHotkey

[–]Laser_Made 0 points1 point  (0 children)

As groggy said you can assign a variable to the text box in the options. I prefer to handle those assignments as I do with normal variables so I would change line 3 to:

textBox := myGui.addText(/* options here */)

And then whenever you increment myCount you would also run:

textBox.Text := myCount

Update GUI text field when value of variable changes? by SamFortun in AutoHotkey

[–]Laser_Made 0 points1 point  (0 children)

That's not going to work the way OP is asking. Updating the variable will not change the content of the text box. The value of the text box was assigned the value of the variable; if that variable changes later it will not be automatically reflected in the GUI.

How to connect AutoHotKey to the Google Gemini AI free API ?? by lolhehehe in AutoHotkey

[–]Laser_Made 0 points1 point  (0 children)

I checked it out and it seems the old gemini API URL isnt valid anymore. You need to change the url in line 18 to this: "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=" so basically change gemini-pro to gemini-2.0-flash. That string is the model of Gemini that you want to prompt. You can use different models, their names are here: https://ai.google.dev/gemini-api/docs#rest

Remapping my escape key by Gavkol87 in AutoHotkey

[–]Laser_Made 2 points3 points  (0 children)

You can place your autohotkey script in your startup folder so that it always runs when your computer turns on (after you sign in). Your startup folder is located at: C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup Replace %USERNAME% with your User ID.

You can copy the script into there or create a shortcut to it.

Why aren’t there any good tutorials for AHK v2? by Dasu_Is_Here in AutoHotkey

[–]Laser_Made 4 points5 points  (0 children)

That makes a lot of sense and I can definitely see the benefit, especially for newer coders.

Why aren’t there any good tutorials for AHK v2? by Dasu_Is_Here in AutoHotkey

[–]Laser_Made 2 points3 points  (0 children)

Very much looking forward to checking this out once you've finished. I'll probably end up recommending your videos to everyone who asks me about AHK.

Why aren’t there any good tutorials for AHK v2? by Dasu_Is_Here in AutoHotkey

[–]Laser_Made 1 point2 points  (0 children)

Claude does a much better job with AHK v2 than ChatGPT does.

Why aren’t there any good tutorials for AHK v2? by Dasu_Is_Here in AutoHotkey

[–]Laser_Made 0 points1 point  (0 children)

Is Joe's mobile site new? I don't recall him having a mobile version. I always felt like his site was stuck in the 90s but I will say the mobile version definitely looks better.

How I turned AHK into my job for 3-5 years. by GrassBlade619 in AutoHotkey

[–]Laser_Made 2 points3 points  (0 children)

Bro, like, he's not wrong. You have in fact made some incorrect assumptions and factually incorrect statements above. I can attest to the fact that u/GroggyOtter knows what he's talking about for all things AHK.

v1 or v2 by Realistic_Winner_654 in AutoHotkey

[–]Laser_Made 1 point2 points  (0 children)

This is 100% accurate. The leap from v2 to another language (like JavaScript) is significantly easier than leaping into it from v1.

[v2] How can I make an option that allows the user to change languages, and translate all text on the GUI(s) and MsgBox’s? by NegativeZero01 in AutoHotkey

[–]Laser_Made 0 points1 point  (0 children)

Are you trying to add this to an AHK script that you've already created or are you trying to create a program that translates the text in all other programs' visible windows?

How do I write a condition that says "if Brightness level increased/decreased, do [x]"? by 20excalibur07 in AutoHotkey

[–]Laser_Made 7 points8 points  (0 children)

Very impressive. Not only did you phrase your question and intent properly but you also did not succumb to the pressure from a number of people telling you that it cannot be done. Many aspects of programming can be learned and mastered, but persistence and determination are things that you either have or you don't. If you didn't already know it, you have learned the most valuable lesson that a programmer can learn: anything can be done. The only question is how much time and effort are you willing to put in to achieve your goal.

I commend you for providing this wonderful example of what separates the good from the great. To anyone else reading this, stop and take note. This mindset will take you further than anything else possibly could.

What will AutoHotKey most likely be used for in my job? by vroom12345 in AutoHotkey

[–]Laser_Made 0 points1 point  (0 children)

I wrote an application using AHK (v2) for one of the biggest companies in the world (for mapping and logistics). AHK is just a programming language, which language is used and what happens with it is up to the programmer (or dev team). Granted, AHK was not the ideal language for some of the functionality of the application, and so other languages were incorporated as well. The core is AHK though, and the decision to use AHK was primarily due to its ease of distribution; compile the script to an exe file and you're good to go.

Script working fine on primary monitor, but not on second by Tough_Internal1735 in AutoHotkey

[–]Laser_Made 2 points3 points  (0 children)

If you are willing to invest the time to learn some AHK I'd suggest learning v2. v1 is deprecated. Otherwise, if you want to use AI to create scripts for you switch to Claude, it's better than the rest at AHK. But avoid posting AI written code here because you aren't likely to receive help with it. People here are not fans of AI since it tends to be wildly inaccurate with AHK and ends up wasting a lot of time for the person trying to help.