My greatest, easiest AHK script ever - Instant application switching
NEWEST CODE WITH 'BACK' BUTTON and VARIABLE APP:
github.com/TaranVH/2nd-keyboa...
NOTE: The functions are CALLED from this separate script. You can put them both in the same script, though.
github.com/TaranVH/2nd-keyboa...
THE OLD CODE THAT IS FEATURED IN THIS VIDEO: github.com/TaranVH/2nd-keyboa...
Пікірлер: 278
Year 2020 . Taran has scripted his 1.000.000th key. LMG had to move to a different office, because every wall was covered in keyboards for Taran to work with.
@TaranVH
7 жыл бұрын
Kincses Richárd that would be inefficient. I'll have a direct brain to computer interface by then.
@RichardKincses
7 жыл бұрын
In 3 years? Holy moly, i want to see a review of that.
@azreow
5 жыл бұрын
It's been almost three years ... and you just made a video about macro keyboards ... so where is the direct brain interface?
@moth4256
5 жыл бұрын
@Taran its almost 2020 you better hurry up with your brain computer interface
@frankhu5418
5 жыл бұрын
@@TaranVH still waiting for that brain to computer interface
You need to change your KZread handle to _TaranTechTips_
@munjee2
6 жыл бұрын
Carl Siemens taranmacrotips
@IHateHandlesWayTooMuch
4 жыл бұрын
TaranKeyTips
I have next to no coding knowledge yet the way you explained AHK in your original video made it really easy to wrap my head around. I use it for controlling lights for concerts rather than spending thousands on a control desk. this video gives me some ideas to expand my useability even more. (i also use a G15 keyboard and am not mentally stable) Thank Taran 1 like = 1 macro
I dont even use auto hot key. Yet I watch these anyways This is what my life has become
Your off-the-cuff explanations are refreshing...your tutorials are very much appreciated.
Would love to see TaranAutoHotkeyTV more! lol.
I've been on the verge of ending it all ever since I found out about your 4H long editing tutorial but after A LOT of blood sweat and tears I've been able to get my first AHK script running and it's this one, thank you for this man
Nice tips, Taran! You are awesome! Thanks!
It's 2024, This has been a serious game changer! You've upped my level, thanks!!!
"You're PERFECTLY mentally stable. Maybe. Unless you're watching me. Then... maybe not." Love you, Taran :v
Taran should get an autohotkey sponsership lol
@ohareza
7 жыл бұрын
AHK is FOSS. It's not monetized. They're probably broke af
Thank you so much Taran!
With absolutely no prior knowledge of AHK, I was able to get this running (the newer version), change the applications it calls and bodge together a new feature. Thanks Taran!
@2dsimp149
2 жыл бұрын
howwwww pls
OH MY FUCKING GOD IV WANTED THIS SINCE FOREVER HOLY SHIT YOU ARE THE MAN TARAN YOU ARE THE BEST
@TaranVH
7 жыл бұрын
givingtnt This guy gets it.
@VisualBasic6
7 жыл бұрын
I just hate alt+tab, I always manage to pick the one before, or the one after. never the right one. now I can just. click one button and be right on !
@Sp3ctre18Gaming
7 жыл бұрын
alt+tab works with shift for reverse, arrow keys, and mouse
Also Taran, why you stop becoming a host in Techquickie? Your technical details topics like Ergonomic, Aperture, and FOV are actually great!
@TaranVH
7 жыл бұрын
AlphaCore research and writing those scripts takes a lot of time!! The latest one I wrote (but did not host) was "the history of video editing" check it out.
@AlphaCore_
7 жыл бұрын
Taran Van Hemert Yeah, bit it's been like a year without your videos. Not that I don't understand how researching for content creation works, that was what my job, but it's been forever without your videos.
@AlphaCore_
7 жыл бұрын
Taran Van Hemert Oh wow, I totally jinxed myself. Last video on Techquickie is yours, lol.
@ksoonsoon
2 жыл бұрын
@@TaranVH is there anyway you can re-post your old AHK scripps from this video back to get hub? They appear to have been changed and I can’t find the old one and the new one looks different. Thanks much. Great work so appreciate it
Thanks I am looking forward to adapting this to my online class work.
Dank Video Taran.
Great video. Love your channel and the helpful videos on it. One question: What is the font of the LinusTechTips logo?
This one is brilliant super easy to edit and work with once you travel to the future and watch your complete autohotkey tutorial
"This wastes *minutes* of time per day!"
@TaranVH
7 жыл бұрын
Mark Vadeika if I can save 1 millisecond of time per day, I will do it. Some of my scripts have to wait for premiere to load stuff before they can continue. I trim off as many milliseconds as I can. 500 milliseconds (half a second) feels like an eternity to me in this context.
@adamconconi792
7 жыл бұрын
Taran Van Hemert i personally like videos like these, i mean i mostly likely wont ever use them, but they are entertaining
@TaranVH
7 жыл бұрын
Adam Conconi This is an odd thing to me. And yet it's a comment that I get a lot of! I guess it means I am quite entertaining!
@Rickles
5 жыл бұрын
The Crux of Entertainment and education is why I and so many others follow LTT. These vids are high on the education side which I crave more of from LTT. I've used these scripts to go from CS101 drop out, to writing macros to prove to the programmer at my office that keyboard shortcuts can be developed for the janky custom software we use all day. I somehow got a job using software all day that doesn't offer keyboard shortcuts. You saved my life dude.
@ultraboy99x
5 жыл бұрын
@@Rickles May i ask what kind of software do you use at work good sir?
This is freaking awesome man.
Good shit.
This should be a stock feature on every PC. Or at the very least, an option to enable. Brilliant. I wish more left side macro keyboards existed. Maybe a left handed keyboard can be purchased and the number pad can be mapped to specific apps and what not.
Honestly the Win + 1 to switch was one of the most helpful tips from this video ^^ Really do enjoy the rest of the imformation though.
@bhavyapatel3133
Ай бұрын
i didnt understood can anyone please explain
This is really cool!
this is sorcery..!!! really open my eyes to the possibility
Hail the hotkey god. TaranHotkeyTips
To those that don't want to use the function keys, Ctrl Alt Tab is quite similar in the fact that it is near the centre of the screen so would take less time than moving the mouse and if you wanted to map it to a key, it would only take one (who needs F1 anyway?).
I have been using this script for a week and it is really great. I now wonder how these shortcuts are not available by default in the OS. Then I think that Taran should get an AHK sponsorship and then I think that he actually needs to be on advising a small team of developers that work on a OS that overthrow Windows, develop consciousness and destroys the humanit... oh wait.
personally I use the built in windows multi desktops and then work on different projects in different desktops.....I also run my taskbars at the top of the screen for more fluid motion. I do use autohotkey with a moba mouse to use the 12 buttons in the side of it for code snippets, desktop switching etc.
Nice. Are you planning on trying out CC 2017?
I’m getting a fully programmable keyboard in the mail soon. I’m excited to try stuff like this on a secondary layer on my home row. Probably not this exactly, I’m doubting this would work well with Windows’ virtual desktops.
Taran: The smartest person at Linus Media Group. Misspells Instant in the title (Or is that a misspelled version of insane? *X-Files theme intensifies*)
Taran, the amount of programs and tabs you have opened is insane, for example, why do you have two Nvidia programs opened?
@TaranVH
7 жыл бұрын
Lucas Magno idk, ask Nvidia. I just had the options menu still open in GeForce experience ... (v2)
Very useful script.
I watch Linus because he is entertaining. I watch Taran because he says things that makes my life better.
yes!! solved a problem!! thanks!!
might actually use this one nice!
Awesome!!! Thank you Taran!! Say good bye to alt tab :D
More productive? Sounds more like a way to quickly tab away from a reddit window while at work....
@ForgottenArmy99
7 жыл бұрын
More like when you're educating yourself. ( ͡° ͜ʖ ͡°)( ͡° ͜ʖ ͡°)( ͡° ͜ʖ ͡°)
@daephx
6 жыл бұрын
For Academic Purposes - but another way is if on windows 10 use "Ctrl + Win + Arrow" for virtual Desktops
@aadisahni
2 жыл бұрын
@@daephx or just alt tab
@Beetless
2 жыл бұрын
@@daephx thanks didnt know that shortcut til now
Finally really using this with the stream deck. Kudos - easiest script that's not buried under layers of code you've made, indeed.
@TaranVH
7 жыл бұрын
If you think my layers of code are confusing... try coming up with it in the first place!
@EposVox
7 жыл бұрын
And that is why I'm still relying on your code :P
@aadisahni
3 жыл бұрын
@@TaranVH OH DAMN YOU DESTROYED HIM
Very helpful
What I do is that, since I personally never use the caps lock key, I transformed it into a different modifier key, just as ctrl or alt, so now I can use commands like caps lock + 1 or caps lock + F, that way I can still use a lot of commands using only one hand. I added the shortcuts to my most used programs to caps lock + 1, 2, 3. I even added multimedia controls and volume controls with caps lock + A,S,D,Q and W I took the idea from the chromebooks keyboard, which replace the caps lock key with something else
@aadisahni
2 жыл бұрын
I use the same thing dude
Good tips, and do you still have various function.ahk files that you have. May share the link because the new script can't running
You're a hero
Taran Van Hemert-Hotkey Connoisseur
Did you wanted to say TaranTechTips at the end?
very useful. I'm surprised you're not using qttabbar (the one from wikidot, not the older sourceforge version). like Clover, it adds tabbed browsing to windows explorer, except qttabbar is much more mature with way more customization option than clover. it allows you to set hot keys for a ton of different browsing and file management actions in explorer which I'm sure you could put to use in scripts (like scrolling through file browsing tabs, going to certain favorite folder locations, etc). mainly though, having tabbed browsing with middle click on folders to open in a new tab just like chrome is a god send. all I can say is imagine 10 years ago when you would browse the internet and have to deal with 15 browser windows open because tabs weren't a thing. that's what you're doing now with file browsing and it's a huge PITA :)
@TaranVH
7 жыл бұрын
Jon Sands Never heard of it. I'll check it out. Any other useful stuff you know?
Awesome...
Hi Taran, love your videos. I bought a usb numpad and wanted to turn it into shortcut keys, but I'm still new to programming. I downloaded the two programs(autohotkeys and Interception), but it seems that I can also program the keys using the interception.exe, then how do I use autohotkeys in conjunction with interception?
@TaranVH
7 жыл бұрын
what I do in interceptor is have a keystroke, say "numpad5 down" trigger F24 down, numpad5 down, numpad5 up, F24 up. Then in autohotkey, I have the code: #if (getKeyState("F24", "P")) F24::return ;here is where you put all the keypresses. numpad5::msgbox, lol #if you COULD program everything straight from interceptor... but i am not good enough to do that. if you figure it out, document your findings and publish it somewhere, and send me a link!
@TaranVH
7 жыл бұрын
kzread.info/dash/bejne/q2eZwdSiXdm1edI.html made a video!
Just send F-keys default function on long press! Works like a charm.
That'll be useful.
Great for when you're browsing the web and Linus walks by and you should be working
nice tut thx!!!!.do you know how to catch wm_ messages and send them thru autohotkeys.i am trying to automate knobs sliders and rotary knobs in video editing and music applications.
How you make the notepadd ++ hilights green with ahk?
Hi Taran, was curious if you had a download link for your Active Window Info tool? I've tried googling it and cant seem to find it
taran why are you not using a double windows bar? so you can read the text at the bottom next to the program icons :)
Hey Taran. First of I think that your reviews on LinusTechTips are pretty much the most well made ones. Two questions: do you think that your reviews profit from the fact that you script, host and edit them yourself (I assume thats the case, sorry if I'm wrong)? Second Question: do you have a good starting point to recommend for someone who has never done any programming but is pretty well versed with PC Hardware? Just came over from LTT and thought, that I would have a better chance here...
@TaranVH
7 жыл бұрын
yeah dude, having control over the entire process allows me to be more creative, and ensure that my vision for a video gets carried out. As for learning programming, I've heard good things about code.org/
@BoogiemanXXL
7 жыл бұрын
Thanks you for the response and the recommendation. Btw. I have learned a lot from your videos about efficiency while editing.
@botarnav6817
2 жыл бұрын
@@BoogiemanXXL r u still there? 👀
Just tried for the last 5 hours to implement the gotofiretab() function on my system. No success. I gues it's because my windows has german language and so some firefox structure names are different...?
This is awesome! now, how can i switch between different different chrome windows? The group method did not work for me and i didn't find any other way that works
@TaranVH
7 жыл бұрын
I got it working for Firefox, is that the code you tried?
What do you think of the shuttle pro 2?
Nice video, didn't know you are a script user. Any reason you use AHK over AutoIt or Python?
@TaranVH
7 жыл бұрын
Final Spartan nope.
Essa função que esta fazendo se chama "macro" a função que procura esta associada ao "mouse record pro 2" eles captura os movimentos do mouse e teclado e depois reproduz com uma hotkey no programa execelente programa para tarefas repetitivas.
Just in case you or anyone else wants some hints on autohotkey: To access your script even easier you can use caps as an additional modifier. In autohotkey you can type: SetCapsLockState, AlwaysOff ^ This will disable caps from ever turning on (phew, what a relief) After this you can just go to ahk and use: CapsLock & q:: do something return Your left hand is probably already on top of that area of the keyboard anyway, so pressing that is incredibly quick. You can also swap 'q' to any other key.
@TaranVH
6 жыл бұрын
I'm glad you figured that out! I did that too. I reassigned capslock to F20 first, though.
On k95 G buttons how can I assing ctrl + numpad1 on iCue?
can you pls show or tell how to start a script with textinput thx
This seems pretty similar to ctrl + winkey + number (Switch to the last active window of the program pinned to the taskbar in the position indicated by the number.) Win7 here...
question, how to i work around UAC prom i want to launch obs as administrator, but i can't. i try running the script has admin that didn't work
i would like to see guest tech people who are saving valuable seconds to do work faster. Taran any thoughts?
Does it includes the right click playhead feature? And pls Update the Newer link!
How do you show all your inputs in the video?
this would work great with Custom Keycaps too!
I see potential, but It's basically like windows + 1, 2, 3 etc triggering apps in that order from start menu. Nontheless, I dig the method and will use probably if I manage to set up my hotkeys finally
Have the links to the old and new scripts moved? The current scripts don’t look right to me? Thx
Is there a way to combine the left mouse click and a keyboard key? Like LeftMouse + "A" to launch an app
@aadisahni
2 жыл бұрын
LButton & A:: function goes here This would do the trick I suppose
can you make a video on how to add them to AHK now ?
i like you taran. but you spent more time making these and making this video than this will ever save you in time
Hi Taran! First, I wanna say THX for the grat script. Just downloaded it, and it works great. I use it to switch between explorer, firefox, android studio and word. But I also sometimes want to see the performance-screen in the task manager. What can I do to make AHK press ctrl+shit+esc, and then 3x tab and 1x right arrow for me?
@TaranVH
7 жыл бұрын
nnnkatze F5:: Send ^+{esc} sleep 100 Send {tab 3} Send {right} Return Or something like that. Read the getting started guide.
@nnnkatze4329
7 жыл бұрын
Taran Van Hemert Task Manager opens, but when the task manager window is activated, the other shortcuts (F1, F2, F3, F4, WinF4) don't work. I'll read the guide, maybe I can find something. Nevertheless, thanks for your help.
@TaranVH
7 жыл бұрын
nnnkatze ah, yes. Be grateful for that. Task manager seems to override eeeeevvvvverything, including AHK. So I you make a script that gets stuck in a loop, or disables the keyboard, or whatever... And task manager still works completely normally. So yeah, you'll have to click to get away from it!
@ooh-ahh
7 жыл бұрын
ctrl SHIT esc? xD
Hello Do you know a "beginning" who's really well done for a really beginner like me ? thnaks.
Hey, does anyone know how to make a script like this- Normally when I press F2 on windows, it's the shortcut for renaming files. However, I have dozens of keys especially alphabet keys mapped to macros. I tried assigning escape to a function called Suspend, but it's a forgettable thing to first press F2 and then escape and then the system goes haywire(cause I'm typing with all hotkeys firing off). How can I make it so that when I press F2, the hotkeys temporarily get disabled and then I can type text normally and then after finishing typing the hotkeys again get re enabled?
Hm. I watched a lot of these videos from you now. And i thought about this: What about having a key, e.g. Ctrl and each time you press and release it, the keyboard goes into a different mode and each mode has different makros/routines attached to the buttons. Which basically means, you could cycle through infinite different keyboards on a single keyboard. Ctrl Ctrl Ctrl would access the third additional keyboard layout and press A would do something. Or an alternative: you could press Ctrl+Q for the first keyboard mode, Ctrl+W for the second, Ctrl+E for the third, ect. This way, you could technically have thousands of makros by just using the left hand on the left side of the keyboard alone.
@TaranVH
6 жыл бұрын
Those are called "layers." People keep bringing them up, It's a bad solution for me. They sacrifice time, to save space. Not a good trade-off. You'll have to spend time to see what layer you're in, and spend more time switching to the correct layer. Layers are dumb.
My laziness brought me here and looking at the complexity of the task (I am no programmer), I am now in conflict on whether I should make an effort to learn this now and be lazy later. Or if I should be lazy now and keep making an effort every time I want to switch between programs...
taran, when i am running the script. it'll says can't find that app. i tell him it is in the program files under my C drive. but on the video you just typed in Premiere.exe, how did that work?
@aadisahni
2 жыл бұрын
Kinda late but it really depends whether premiere is registered as a direct exe or something like that because I always thought that it would work if it was in program files. Whatever the case is, you can check it by using the windows run dialog, windows + r
I have no intention to do it and still I watch? One day I will use AHK ..
please update new video codes are changed I cannnot figure out .
Thanks for sharing! However, I optimized the script to be more generic. After each reload of Autohotkey, you can then switch between active windows #t:: ;switch windows WinGetClass, Title, A GroupAdd, taranpdfs, ahk_class %Title% GroupActivate, taranpdfs, r WinActivate ahk_class %Title%
Reason you were quoted $2000 is because it's a commercial license. Otherwise, for personal use, the source code is there for you to recompile. I've done it, got the 2 dlls (x86 and x64) but don't have enough keyboards to try them. Since I don't have 10 devices, I'm not sure if the dll is embedded in the installer or simply replace the dlls in the library folder is enough.
ok strange question, I have a smart plug socket and i want to control it using a hot key. i found a relatively easy way of doing it but its slow and not reliable, first i use IfTTT (If receive webhooks GET web request THEN turn switch on) now this is related because i use AHK to send that GET request but for some reason it triggers twice sometimes and sometimes not at all. if anyone wants to help that would be cool. or even point me in the right direction. i can make a quick video explaining this if someone thinks they can help. anyway taren you are the AHK king is there a simple way of sending HTTP GET requests using AHK or another program that allows me to use hotkeys to send GET requests?
The new link doesn't work anymore.
visa versa?
But Taran you could have made the macro keys just execute AHK files instead of mapping numpad and linking shortcut to numpad..? Anyway love your work and you have some, impressive work:)
@TaranVH
6 жыл бұрын
It looks like Corsair CUE 2.0 CAN indeed launch programs directly. So yes, I could do that. But then I'd have to have a huge folder with one script for every single function WITH parameters. This is what I did for the stream Deck, since I had run out of normal keys. It's more of a PITA to deal with, AND you can end up with scripts massively interfering with one another, as they all try to run at the same time, and don't wait in line like they should. It's often better to just trigger the functions with keyboard shortcuts. ;) (ones that use the CTRL modifier so they never type anything in.)
@cuisined
6 жыл бұрын
You are right and we've got the same PC peripheral's EXACTLY just mine is 5960X :) Downloaded your right mouse move playhead in premiere and it's awesome! IJust bought 3x Panasonic GH5 to do my cooking videos and I'm pretty happy with them! Just bought 2x corsair K65 RGB LUX with 3x G700s which I store in closet for a later date when they stop manufacturing those :D like I don't want to have that K95 scenario..ever :D. Amazing how far you as a group went , fully amazing up travel here on Yt!! There is a AHK script that you can move windows from anywhere in the window frame I am using for quite some time and its wayyyy more easier to use than the slim bar on top it's called Easy Window Dragging , look it up :) I set mine as ctrl+alt + right mouse and !` to suspend. Cheers man! Hi to LTT !:) autohotkey.com/docs/scripts/EasyWindowDrag_(KDE).htm
Does windows have alt+tilde?
Quick some one tell this guy about "Alt + Tab"... or "Ctrl+Tab" in browsers. Modify any backwards by adding shift. This does Exactly the same thing. Just easier and cleaner.
@ErrareEstStultus
3 жыл бұрын
quite right :-)
Hi, I'm Taran, Look at all my cool HOTKEYS
any idea on how to make it work when two programs have the same ahk_class?
@aadisahni
2 жыл бұрын
Use ahk_exe
The link to the old code is broken for me.
Hey, I actually wanted to thank you earlier when I was there for all the improvements you're bringing to that fucking garbage we find ourselves working with. - the timid guy Linus took on a date
When you record you 4K screen everything is tiny on my 1080p panel.
@TaranVH
7 жыл бұрын
MORE LIKE 1080PEQUEÑA
Hey Taran is there a particular reason why you're still using Word 2007? Are there some features that have been removed in later versions or is it just what you have lying around at the office?
@TaranVH
7 жыл бұрын
Teska nope, no reason at all. Some of the things I do have been very carefully considered. But not all.
@ooh-ahh
7 жыл бұрын
Taran Van Hemert You should definitely upgrade to 2010 ... and then stick with it. MSO 2007 is like Vista and 2010 equals to Windows 7, IYKWIM.
*Alt* + *Esc* also cycles through open windows.
@zapy422
4 жыл бұрын
Or to reveal my madness :)
@Aeroxima
3 жыл бұрын
How did I not know that all these years? I even looked up windows shortcuts multiple times, nobody mentioned that.