Search the Community
Showing results for tags 'autohotkey'.
-
I've made a game assistant but the game updated their launcher so now it blocks <MouseMove> and <Click>. Is there a hardware solution with a mouse emulator or somekind of physical movement of the mouse?
-
Is there a ways to add shortcut keys automatically to every buttons first or second letter of a desktop application.for example I had an application with two buttons login and close which has no shortcut keys associated with it, so I want that alt+l be for the login and alt+c for the close to added automatically.
- 3 replies
-
- ahk
- autohotkey
-
(and 3 more)
Tagged with:
-
Is there a way to trigger a function when a specific input box of a desktop application is changed, just like in JavaScript onchange event. Either with ahk(autohotkey) or through some other means/application. Plz let me know. By the way I love your YouTube channel and you guys all.
- 3 replies
-
- ahk
- autohotkey
- (and 4 more)
-
Hey want to use this specific keypad as an independent hotkey pad with intercept and autohotkey because I bought it already and with this use in mind. amazon.com/gp/product/B01E8TTWZ2/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&th=1 I followed Taren's video on intercept and autohothey to the T but it does not work with this Keypad I thought I was doing something wrong so I tried it with a regular keyboard and it worked great. I did change the auto hot key names to numbers and programed intercept with that keypad but I still cant get it? If all else fail I can just return it.
-
I'm using intercept.exe and autohotkey to have a second keyboard function as a sound board and to change my scenes on OBS. The script works fine everywhere but once OBS is not in focus it stops working. This only happens with OBS. The program I use for the soundboard and Discord work fine even out of focus. I have no idea if this is a known problem or if there's a solution for this. Thank you
-
Hi All Hopefully just a quick one! I wondered if AHK can be used in place of these peripherals' default software. Can you map them without iCUE/Synapse? I did some research and heard that due to lack of onboard memory you couldn't, that other people managed it, that some people managed it but it wouldn't save settings etc. If anyone could link this being achieved/a guide that would be amazing!
-
I´m looking for someone who can help me with AutoHotKey or a similar program. I want to program my key "my computer" to go to sleep instead. Anyone here that can help me?
- 7 replies
-
- autohotkey
- sleep
-
(and 1 more)
Tagged with:
-
A while ago I got an idea for using my capslock key, which I never use, as a new modifier. I googled a bit and found out that someone already made it, but it wasn't that good (weird mapping, not useful shortcuts etc.). So I made my own and I think its pretty stellar What it does is, when you hold the capslock key, the following changes: I J K L => UP LEFT DOWN RIGHT U O => HOME END T G => PGUP PGDOWN H Z/Y => BACKSPACE DELETE Q W E => (ctrl+shift+z) UNDO REDO X C V => CUT COPY PASTE A => CTRL S => SHIFT F => ALT D => CTRL + SHIFT WIN + CAPS => CAPS It took me around a week to get used to it, but once I did, it sped up my coding dramatically, especially because I don't need to reach for the mouse anymore to select text. I've put the AutoHotKey file in the attachments if anyone is interested. And if you have any ideas on how to improve it, please tell CapsScript.ahk
-
^[:: state := GetKeyState("CapsLock", "T") if state Send, Ä else Send, ä Return ^]:: state := GetKeyState("CapsLock", "T") if state Send, Å else Send, å Return ^\:: state := GetKeyState("CapsLock", "T") if state Send, Ö else Send, ö Return ^':: state := GetKeyState("CapsLock", "T") if state Send, Ü else Send, ü Return ^+':: state := GetKeyState("CapsLock", "T") if state Send, ü else Send, Ü Return ^+[:: state := GetKeyState("CapsLock", "T") if state Send, ä else Send, Ä Return ^+]:: state := GetKeyState("CapsLock", "T") if state Send, å else Send, Å Return ^+\:: state := GetKeyState("CapsLock", "T") if state Send, ö else Send, Ö Return I made this simple script so I could use macros to type Swedish characters, but I feel like it's excessively complicated and ineffecient. How could I make this more efficient?
-
url=www.linustechtips.com ; F9:: run % "chrome.exe" ( winExist("ahk_class Chrome_WidgetWin_1") ? " --new-window " : " " ) url return ^F9:: run % "chrome.exe" ( winExist("ahk_class Chrome_WidgetWin_1") ? " --new-window " " --incognito " : " " ) url return The code works, more or less. If I press F9 it opens up Chrome; if I press CTRL+F9 it opens an incognito window. But If I don't have a chrome window already open, and press CTRL+F9, it will open a regular chrome window and I have to do it again before the incognito window opens. Any idea on why this happens?
-
Hi there. Noob to AHK here. Just found it yesterday. Found it super interesting, but I got problems. Issues: Apparently then statement from IfWinExist in the first one got activated even if I'm on else. I can press Pause button and it do the thing I said, outside then statement. After the first issue got resolved, how to tell the script (on IfMsgBox, Yes) to come back and listen to Hotkey that I set on the aforementioned then statement? (After WinWait passed.) Again, I'm super noob and kinda stuck here. Any suggestion for solutions will be helpful!
-
Hi guys I have an older HP wireless keyboard. It's really nice to type on and it works very well, my problem is that I want to use the media keys on it, but they don't work on Windows 10. Only the volume knob and mute button work. It has integrated music,browser,media skip,play/pause,disc drive open, email and more buttons. These are all really useful and convenient, but I can't get them to work. Do any of you know how to make these buttons work? Thanks for your help.
- 4 replies
-
- autohotkey
- macro
-
(and 4 more)
Tagged with:
-
I'd like to map the RB button to tab while I'm playing Stardew Valley. I can't find a way to do it, autohotkey can detect gamepad inputs but it can't output them. I'm using a Das Keyboard 4 professional and as far as I know there is no software remapping software (similar to razer synapse etc) available for it. Is there anyway to achieve this functionality? Either through AHK or other third party software (ideally with automatic game profiles). Thanks
- 5 replies
-
- autohotkey
- gamepad
-
(and 2 more)
Tagged with:
-
Hey! I was wondering if it's possible to make a script where it brings one specific application in focus every 12 min and then minimizes it instantly. So to summarize: wait 12 minutes bring app to focus minimize it (or make it re-focus last used app if possible?) So far i only found that minimizing it will make the previous app come in focus again.
-
Morning guys, I've been meaning to try and implement hotkeys for my work. I'm working in warehouse inventory and I'm looking at options to reduce the amount of movements needed to do task while logging in the work. What I have in my mind is the following. hotkey ctrl + Numpad 1 = (key press backspace, arrow key up, enter, F8) Due to lack of time I cant sit down to give it a try on my own and which is why I'm asking for help here. thanks for those willing to give this a go. if I'm missing any info needed let me know I'll try my best to reply on a short notice
- 3 replies
-
- autohotkey
- auto hot key
-
(and 1 more)
Tagged with:
-
Hello! I'm creating some shortcuts to help me edit un premiere pro. I'm using a streamdeck and autohotkey to do that, and I can't understand Taran's code to import a given file in the timeline. Here is he's code : #IfWinActive ahk_exe Adobe Premiere Pro.exe insertSFX(leSound) { ifWinNotActive ahk_exe Adobe Premiere Pro.exe goto sfxEnding ;keyShower(leSound, "insertSFX") if IsFunc("Keyshower") { Func := Func("Keyshower") RetVal := Func.Call(leSound, "insertSFX") } CoordMode, mouse, Screen CoordMode, pixel, Screen coordmode, Caret, screen BlockInput, mouse blockinput, MouseMove BlockInput, On SetKeyDelay, 0 ;for instant writing of text MouseGetPos, xpos, ypos send ^+x ;ctrl shift x -- shortcut in premiere for "remove in/out points. sleep 10 send ^+9 ;ctrl shift 6 - source assignment preset 4. (sets it to A3.) sleep 10 ; Send ^!+1 ;premiere shortcut to open the "project" panel, which is actually a bin. Only ONE bin is highlightable in this way. ; ;Send F11 ; sleep 100 ;msgbox, you in the panel now? send ^!+1 ;CTRL ALT SHIFT 1 -- ;shortcut for application>window>project (highlights a single bin. In my case, it's on my left monitor.) tooltip, waiting for premiere to select that bin.... ;msgbox, waiting for premiere to select that bin.... sleep 20 ;msgbox how about naow? ; Send ^b ;CTRL B -- set this in premiere's shortcuts panel to "select find box." Make sure there are NO OTHER conflicting shortcuts on this key, like "create new bin," which would stop it from working. ; send +{backspace} ;to delete anything that might be written in the bin, so that the caret coordinates are always accurate. ; msgbox, okay now what Send %leSound% ;types in the name of the sound effect you want - should do so instantaneously. tooltip, waiting for premiere to load...... send ^+9 ;source assignment preset 4, again. sleep 400 ;we are waiting for the search to complete.... ;sleep 400 ;we are still waiting for the search to complete.... MouseMove, -6000, 250, 0 ;moves the mouse to the expected location of the bin that becomes highlighted from the "project" keyboard shortcut command in Premiere. ;msgbox, wheres de mouse? ; MouseGetPos, lol, lel ; PixelGetColor, zecolor, lol, lel, alt slow rgb ; msgbox, %zecolor% MouseClick, left tooltip, CLICK!!! sleep 10 send ^+9 ;source assignment preset 4, again. sleep 5 Send ^b ;CTRL B -- set this in premiere's shortcuts panel to "select find box." sleep 10 Send +{backspace} ;deletes the search text so that the bin returns to normal view with all SFX visible. sleep 10 MouseMove, %xpos%, %ypos%, 0 ;move mouse back to original coordinates. sleep 20 tooltip, so did that work? ;msgbox, clicked, mouse should be back at original coordinates. ;send ^!+4 ;select program monitor sleep 10 ;send ^!+3 ;select timeline sleep 10 send ^+9 ;my shortcut for "assign source assignment preset 4" in Premiere. The preset has V3 and A4 selected as sources. I may end up only using F18, since it does not use the CTRL and SHIFT keys, which can cause problems sometimes. sleep 50 Send ^/ ;CTRL FORWARD SLASH -- SET TO "OVERWRITE" in premiere. Premiere's default shortcut for "overwrite" is a period. I use modifier keys for THIS, so that a period is never typed accidentally. sleep 30 ; Send mbutton ;this will MIDDLE CLICK to reselect whatever panel your cursor was hovering over before you engaged this function. send ^!+7 ;highlight effects panel sleep 30 send ^!+3 ;this is set in premiere to highlight/switch to the timeline. important so that you aren't still stuck in the bin. If this is used more than once, it will unfortunately cycle thorugh all available sequences... tooltip, BlockInput, off BlockInput, MouseMoveOff sfxEnding: } I just can't came up with something working. Can someone help me ? thanks
-
- macros
- autohotkey
-
(and 1 more)
Tagged with:
-
I followed Taran's tutorial about creating a secondary macro specific keyboard and for the most part it works, I can write a hotkey in autohotkey and it will work with the secondary keyboard when in google. For instance, I can type with the main keyboard and when I press q on the second keyboard it will bring up a message box and tell me that I pressed q and it wont affect my typing. My issue is that when I write a script to lets say, use the second keyboard's w button to press control alt t, it will work in other programs but when I try to use it in after effects it doesn't perform the action and just presses the w key. The link to the video is included at the end of this post; Edit: also included is a short video of my problem;
-
Recently I used on of Taran's scripts and adjusted it to fit my workflow. I use the numpad (as you can see in the code) as my 'macro pad' but the problem is that my Video Editing Program of Choice 'Hitfilm Epress' and OBS both have the same ahk_class. I found it on his github 2nd-keyboard-master.zip\2nd-keyboard-master\Taran's_Windows_Mods\I_do_not_use I would really appreciate i someone can help me A workaround I found 'For now' is to make a numpad button press a hotkey and setting the app to launch if that hothey is pressed (as you can see in the last few lines). Maybe @TaranLMG Here is all the code: NumpadEnd:: IfWinNotExist, ahk_class CabinetWClass Run, explorer.exe if WinActive("ahk_class CabinetWClass") Send ^{tab} else WinActivate ahk_class CabinetWClass Return NumpadDown:: IfWinNotExist, ahk_class Chrome_WidgetWin_1 Run, msedge.exe if WinActive("ahk_class Chrome_WidgetWin_1") Send ^{tab} else WinActivate ahk_class Chrome_WidgetWin_1 Return NumpadHome:: IfWinNotExist, ahk_class TaskManagerWindow Run, Taskmgr.exe WinActivate ahk_class TaskManagerWindow Return NumpadPgDn:: IfWinNotExist, ahk_class Qt5QWindowIcon Run, C:\Program Files\FXHOME\HitFilm Express WinActivate ahk_class Qt5QWindowIcon Return NumpadLeft:: IfWinNotExist, ahk_class Qt5QWindowIcon Run, C:\Program Files\FXHOME\HitFilm Express WinActivate ahk_class Qt5QWindowIcon Return PrintScreen::RButton NumpadHome::F13 NumpadRight::^F1 NumpadClear::^F2
-
I made a hot key which is XButton1 & WheelUp:: Send {Volume_Up}, it is giving a error of invalid hotkey after running it. and the invalid hotkey is coming because of the WheelUp as if I remove it the script works
-
- autohotkey
- mouse
-
(and 3 more)
Tagged with:
-
If you don't know already, Google keeps a record of when and where you've been if you have Google Maps open or if you use an Android phone (I don't think this is an issue on Iphones, I don't have one to test). Good thing is, you can delete it, bad thing is, you can only do so one date at a time (and each date takes 3 clicks to delete) so it takes ages to delete all of it by hand. I got a bit annoyed by this today and (after I couldn't find any good auto-clickers online that also move the mouse) I decided to make my own with AutoHotKey (btw, this was the first time I used AutoHotKey, so I'm sorry if the script is messy) Few things to do/note before you open the script: Once the script is started, you can not use the mouse. To stop the script hold down P (it is a little un-responsive, but it shouldn't take more than a second) If for some reason you can not stop the script, signing out of windows (with Ctrl + Alt + Del) also stops the script. The position of the buttons is hard-coded because I could not figure out how to use variables. If the script is clicking in the wrong places, you can either a) set your monitor resolution to 1080p and see if it works, or b) change the values inside the script. (check out the last section of this topic) Go to the Timeline and click on the newest date that has some location history (highlighted in blue) Hit Ctrl + G to start the script (it will delete that day and then move to the previous day) Sometimes the script will get out of sinc or Google will not delete a date (as far as I could figure out this would happen at random, with or without the script running). If this happens, hold down P, go back to the date that was missed and hit Ctrl + G again. (it might need to be deleted a few times) You can not recover the location data after it is deleted. After you are done, reload the page, click on the selected month, select "Month - all" and scroll through the timeline to check if you've deleted all of it. How to run the script: Install AutoHotKey Right click on the desktop, select New - AutoHotkey Script Right click on it and select Edit Paste the text in the 'spoiler' inside of it, save and then right click - Run (You may need to run it as administrator) As you can see, the script is very basic. I would've liked to add variables for the button positions and possibly even a color/image check to find the exact position of the buttons, but I didn't have a lot of time and this script works well enough, so whatever How it works: It checks if the key combination Ctrl + G is pressed and triggers the loop In the loop, it checks if the key P is pressed and if it is, it stops the loop It then moves the mouse towards the bin icon's position, clicks once, then moves slightly to the left and clicks again. This is because dates with more location data have a scrollbar and it moves the bin button to the left. (It also jitters the mouse before clicking because Google has an algorithm that checks the movement of the mouse before it presses that button, but it seems that adding two 'fake' movements in the vague direction of the button (even if their position values are hard-coded) is enough to trick it. (great work Google ;p)) It then waits a little bit and does the same for the confirmation dialogue, then clicks on the previous day button and loops back to the top. If the script is clicking in the wrong places here's what you need to do: Go to the Timeline and hover your cursor over the bin button. Hit Ctrl + F and take note of the values inside the dialogue box. Find the section of code that says ";Click on Bin Icon" Find "Click, 579, 352" (the first click command) and replace the first number with the X value from the dialogue box and the second number with the Y value. Do the same for the second click command, but this time subtract ~20 from the X value Now find the two MouseMove commands above the click commands and set their values to the first click's position, but this time add and subtract from both the X and the Y values a random number between 50 and -50 (eg. If your X value is 10 and your Y is 40, you would set the first move command to something like "MouseMove, 60, -10). Be pretty random, these values should not break the script. Go back to the Timeline and now click on the bin icon, and once the confirmation dialogue has appeared, hover your cursor over the "Delete Day" button, press Ctrl + F and paste those values inside ";Click on Confirm" just like you did at step 4 (note, this time there is only one click command and you don't need to subtract 20 from X.) Find the MouseMove commands of the ";Click on Confirm" section, hit Ctr + F and change them as in step 6 Go back to the Timeline and hover over the Previous Day button (to the left of the bin), hit Ctrl + F, and follow steps 4 & 6 (or 7 & 8), but inside the ";Click on Previous Day". Your script should now work
- 5 replies
-
- autohotkey
- script
-
(and 4 more)
Tagged with:
-
I posted on superuser: https://superuser.com/questions/1360545/what-exactly-do-i-need-to-add-into-this-autohotkey-script Sorry for the inconvenience
- 1 reply
-
- ahk
- autohotkey
- (and 4 more)
-
So I made a post here, describing the details: Putting a link bc it relates to another post there, so my as well. https://superuser.com/questions/1360529/what-exactly-do-i-need-to-do-to-this-autohotkey-script
- 3 replies
-
- autohotkey
- ahk
-
(and 1 more)
Tagged with:
-
Hi, I'd like to show people this idea to see if someone knows whether it is possible or how to do it. I have a SteelSeries 6gv2 keyboard, which has an Fn key to control a separate layer with media controls F1 through F6. It would be so cool to be able to map hotkeys using that Fn key + any other key on the keyboard, but i don't know how to do it. I was able to script different actions to the media controls with a simple script: Volume_Up::Send, {asdasdasdasd} Volume_Down::Send, {asdasdasdasd} Does anyone know if there's a way? Thanks in advance
-
- 6gv2
- steelseries
-
(and 4 more)
Tagged with:
-
Hi, my work is to photoshoot used equipment in our shop. When I am done with that, i need to make price tags for them. I photoshoot the product in lightroom using camera theatering and then export it, so the name is the actual EAN printed on the product. I want to be easier for me, so I wanted to make simultaneously price tags, as I am scanning the products EAN through the barcode scanner, because the price tags are made in another program the same way. I found AutoHotkey could help me, but i am a bit struggeling wit it. I end up having this, but for some reason, it did not work: ^j:: Send, ^C Send, !{TAB} Send, ^V Send, !{TAB} Return Have You any idea how to make this thing work? I just need it to copy, then alt+tab, then paste, the alt+tab again, when I scan something with the barcode scanner. Tahnk you very much for help!
- 2 replies
-
- autohotkey
- copy
-
(and 2 more)
Tagged with:
-
Hey, I'm currently trying to write a script to launch Internet Explorer as a different user, using variables from an inputbox as username and password. When running the script the GUI runs just fine, you can input your credentials. And they are successfully saved to the variables, however the RunAs command doesn't work at all. I'm not receiving any error messages at all, internet explorer just doesn't start. Anyone with some experience that can help out? See script below: #SingleInstance force Gui, New Gui, Add, Text,, Username Gui, Add, Edit, vUsername Gui, Add, Text,, Password Gui, Add, Edit, Password vPassword Gui, Add, Button, Default gOK, OK Gui, Show return OK: Gui, Submit ;MsgBox %Username% and %Password% return RunAs,%Username%,%Password% RunWait, iexplore.exe return
-
- autohotkey
- runas
-
(and 1 more)
Tagged with: