Your presentation style is such that I can see the usefulness of this even though I am ignorant of writing scripts. If there is a video primer you can recommend I don't think I would be the only grateful viewer.
Thanks! Wish I could have the time to make more videos. I usually recommend people go through the official ahk tutorials. They’re really good. www.autohotkey.com/docs/Tutorial.htm
Thank you for this! Previously I had one giant AHK script. Each function would be a hotkey. Then in stream deck I would bind the hotkey to the function. It was so annoying. Thank youuuu!
How to modify the launch script for Autohotkey v2 - I have gotten some of the way, but the path variable handling does not "play ball" - do you know how?
Hi I have a relative with learning difficulties and I plan to set up a gaming PC for him for Christmas, At the moment he has a pc with touch screen and I have programmed some macro buttons to open Itunes and switch the PC off, He also has an Xbox to play games on however I plan to set up a PC to allow him to play games on that instead. I need some quite specific actions to happen on his Gaming PC. He will be using Itunes, Windows media player for DVD and 4 or 5 games on his PC. He doesnt know how to use a mouse or keyboard because he cant read or write but he can use a touchsceen to play and pause iTunes library and he can use an xbox controller to play games. however the issue he has is closing one game to open another game. I have managed to use Win+1 Win+2 Win+3 macro buttons to toggle between Itunes, DVD, and one game but they just minimise to background which is fine if he only has one game as Itunes and DVD wont hog resources if they are just minimised to background but if he has 2 or more games in background then his games wont run properly it don’t think as it would be using too much resources and the CPU GPU wont cope with the load. Could you tell me if its possible to create a script or action using Stream deck to minimise iTunes then launch a game, but if he tries to launch another game it will close the first game so he doesnt have 2 games running at the same time ? Im confident I can program the stream deck to toggle between a game in background and toggle back to itunes the key issue is making sure when he presses his Forza button GTAV closes before Forza opens and vice versa. Ideally scenario: Itunes Button - If open bring to front If not open Launch Itunes Forza button - check if another game is running If yes close other game then launch forza - If no check if Forza is running If yes bring to front If no Launch Forza GTA V button - check if another game is open If yes close other game then launch GTAV - If no Check if GTAV is running IF yes bring to front If no Launch GTAV And so on I would be willing to pay for your time to write this script or of you think it would be easily achievable by a noob and you could provide guidance on how to achieve this I would be very grateful. Kind regards Jamie
This did not work for me, i followed your steps completely top the T but when I click the button it just opens the launcher.ahk file in noetpad++, maybe cause i made those files associate with notepad? but thats how i want it, so i can jump into editing the fasrtest just double clicking =. anyway around this?
You can launch the script with the ahk exe file like how you would on command line still but yea if you changed the default launch behavior it’s gonna do that lol. You played yourself there
I had an issue. Whenever I press the key it says Error: Failed attempt to launch program or document:" Action: Params: Specifically: The system cannot find the file specified I followed everything correctly, any idea what this could be?
i have dual pc, main and second pc the stream deck plugged in second pc, can I send hotkey to main pc via stream deck? for example lunch a game or close a window (alt+f4), or open browser page ! is there anyway to do that ?
I'm trying to get an ImageSearch script to run after your script for the advanced launcher but I'm having no joy. My script is to find a button in my Pro tools window and press it but it doesn't seem to be running using this set up you showed. Any advice?
Make sure you do have the correct working directory in your script your launching. My guess is it’s not finding the image when launched from my launcher script. Put “SetWorkingDir %A_ScriptDir%” at the top of the script
@@waldensautomation I currently have it set like this. Your launcher script runs, then a script that has "run Show_Only_Drums.ahk" in it which then runs my script which I originally had bound to shift + 1. I don't know if it's the cleanest way to do it but it works! lol
Nice! I have a few program-specific scripts and I have all of them in my autolaunch folder, so they all run permanently no matter if the respective programs are running. But it would have been much more elegant if those scripts launched only when the respective programs are being launched. Maybe you know how to do it?
Hey, I've actually done something like that before with a custom launch script. Basically it was 2 Run commands where one launched the program and another launched the ahk script I wanted to run. Then I just replaced my desktop shortcuts with each of the scripts. I never really stuck with it though because it was finicky when I went to open programs again or opened from another place like start menu etc. Also scripts would just hang out and stay open. The stream deck thing on the other hand has stuck with me so far because it's got that closing and opening ability. And if I'm being honest a lot of the time I open stuff I don't actually need the scripts I've written. If the tradeoffs aren't a problem for you definetly try out the double run command launcher script
Walden's Automation Thanks. As ahk scripts don’t eat much RAM I will stick to running them all permanently. Elgato seems to be promising for macros. If I ever get to Taran Van Hemert’s level of automation maybe I will invest in a Stream deck.
@@skripnigor I love mine but honestly if you don't do any video stuff it might not be as useful. If your serious about getting it though just get the larger size, I got the 15 just to try it and I'm really wishing I got the bigger one lol. Tarans been a huge inspiration for me and he's making some serious use out of that stream deck
Your videos are stellar, Walden!! Keep it up, especially the AHK stuff (but anything power usage-related is also great).
Your presentation style is such that I can see the usefulness of this even though I am ignorant of writing scripts. If there is a video primer you can recommend I don't think I would be the only grateful viewer.
Thanks! Wish I could have the time to make more videos. I usually recommend people go through the official ahk tutorials. They’re really good. www.autohotkey.com/docs/Tutorial.htm
Thank you for this! Previously I had one giant AHK script. Each function would be a hotkey. Then in stream deck I would bind the hotkey to the function. It was so annoying. Thank youuuu!
this is awesome! thanks for sharing! im try this out tonight on my control deck
hi, can i pass parameters into this? e.g. the path to my ahk and the numer of times a certain loop needs to be executed inside the ahk script.
How to modify the launch script for Autohotkey v2 - I have gotten some of the way, but the path variable handling does not "play ball" - do you know how?
Hi
I have a relative with learning difficulties and I plan to set up a gaming PC for him for Christmas, At the moment he has a pc with touch screen and I have programmed some macro buttons to open Itunes and switch the PC off, He also has an Xbox to play games on however I plan to set up a PC to allow him to play games on that instead. I need some quite specific actions to happen on his Gaming PC.
He will be using Itunes, Windows media player for DVD and 4 or 5 games on his PC.
He doesnt know how to use a mouse or keyboard because he cant read or write but he can use a touchsceen to play and pause iTunes library and he can use an xbox controller to play games. however the issue he has is closing one game to open another game. I have managed to use Win+1 Win+2 Win+3 macro buttons to toggle between Itunes, DVD, and one game but they just minimise to background which is fine if he only has one game as Itunes and DVD wont hog resources if they are just minimised to background but if he has 2 or more games in background then his games wont run properly it don’t think as it would be using too much resources and the CPU GPU wont cope with the load.
Could you tell me if its possible to create a script or action using Stream deck to minimise iTunes then launch a game, but if he tries to launch another game it will close the first game so he doesnt have 2 games running at the same time ?
Im confident I can program the stream deck to toggle between a game in background and toggle back to itunes the key issue is making sure when he presses his Forza button GTAV closes before Forza opens and vice versa.
Ideally scenario:
Itunes Button - If open bring to front If not open Launch Itunes
Forza button - check if another game is running If yes close other game then launch forza - If no check if Forza is running If yes bring to front If no Launch Forza
GTA V button - check if another game is open If yes close other game then launch GTAV - If no Check if GTAV is running IF yes bring to front If no Launch GTAV
And so on
I would be willing to pay for your time to write this script or of you think it would be easily achievable by a noob and you could provide guidance on how to achieve this I would be very grateful.
Kind regards
Jamie
How do you get your ahk scripts to have different icons? Mine are always just a H in a green box, separating them visually looks great!
ruclips.net/video/5aetsOYRzGs/видео.html I made a video for this
Great stuff here! Thanks a lot! AutoHotKey is now 2.0, is it due to the Advanced Launcher? Would you explain please, what to upgrade?
I don't use 2.0, you can still use 1.0 auto hotkey
Beautiful. Thank you very much
I am aware this vid is a few years old but... what is going on in those closed captions? lol
This did not work for me, i followed your steps completely top the T but when I click the button it just opens the launcher.ahk file in noetpad++, maybe cause i made those files associate with notepad? but thats how i want it, so i can jump into editing the fasrtest just double clicking =. anyway around this?
You can launch the script with the ahk exe file like how you would on command line still but yea if you changed the default launch behavior it’s gonna do that lol. You played yourself there
is there a way to set a press and hold function when in game as I can have my game in push to talk
Love the video, but i have a question Is there any way to have the image toggle so i know if its activated or not??
Not with my script. Stream deck has a toggle feature where you create on and off actions. you can adjust my script to work with that. I’d do that
I had an issue. Whenever I press the key it says
Error: Failed attempt to launch program or document:"
Action:
Params:
Specifically: The system cannot find the file specified
I followed everything correctly, any idea what this could be?
I have no idea what you might have done wrong from this. My discord channel is on waldens.world/contact if you want some more specific help
i have dual pc, main and second pc
the stream deck plugged in second pc, can I send hotkey to main pc via stream deck?
for example lunch a game or close a window (alt+f4), or open browser page !
is there anyway to do that ?
I’m sure it’s possible but that’s not addressed in this video at all. If you could somehow use ahk to do it then you could run the script with this
I'm trying to get an ImageSearch script to run after your script for the advanced launcher but I'm having no joy. My script is to find a button in my Pro tools window and press it but it doesn't seem to be running using this set up you showed.
Any advice?
Never mind. I got it working. Thank you for uploading this video, helped me out alot !
Make sure you do have the correct working directory in your script your launching. My guess is it’s not finding the image when launched from my launcher script. Put “SetWorkingDir %A_ScriptDir%” at the top of the script
@@waldensautomation I currently have it set like this.
Your launcher script runs, then a script that has "run Show_Only_Drums.ahk" in it which then runs my script which I originally had bound to shift + 1.
I don't know if it's the cleanest way to do it but it works! lol
Brilliant !
Nice! I have a few program-specific scripts and I have all of them in my autolaunch folder, so they all run permanently no matter if the respective programs are running. But it would have been much more elegant if those scripts launched only when the respective programs are being launched. Maybe you know how to do it?
Hey, I've actually done something like that before with a custom launch script. Basically it was 2 Run commands where one launched the program and another launched the ahk script I wanted to run. Then I just replaced my desktop shortcuts with each of the scripts. I never really stuck with it though because it was finicky when I went to open programs again or opened from another place like start menu etc. Also scripts would just hang out and stay open. The stream deck thing on the other hand has stuck with me so far because it's got that closing and opening ability. And if I'm being honest a lot of the time I open stuff I don't actually need the scripts I've written. If the tradeoffs aren't a problem for you definetly try out the double run command launcher script
Walden's Automation Thanks. As ahk scripts don’t eat much RAM I will stick to running them all permanently. Elgato seems to be promising for macros. If I ever get to Taran Van Hemert’s level of automation maybe I will invest in a Stream deck.
@@skripnigor I love mine but honestly if you don't do any video stuff it might not be as useful. If your serious about getting it though just get the larger size, I got the 15 just to try it and I'm really wishing I got the bigger one lol. Tarans been a huge inspiration for me and he's making some serious use out of that stream deck
hey, how did you get visual studio to work with ahk files? what version of VS are you using?
I’m using the latest visual studio code with the AutoHotkey extension
@@waldensautomation I cant find the autohotkey extention,I couldnt find where to open the command pallet to do Ctrl Shift P