Search found 52 matches
- 04 Jan 2021, 18:55
- Forum: Gaming
- Topic: AHK binding left joy AND dpad to wasd (and buttons to keys)
- Replies: 0
- Views: 73
AHK binding left joy AND dpad to wasd (and buttons to keys)
My friend asked me about using controllers with Among Us. I was surprised to not be able to find an existing mapping script, so I wound up writing one. Maps left joy and dpad to wasd - also added some button to key binding for the keyboard shortcuts in Among Us. (two versions as she uses xbox contro...
- 17 Dec 2020, 20:32
- Forum: Ask For Help
- Topic: Copy, Switch Tabs, paste, switch tabs, repeat
- Replies: 3
- Views: 77
Re: Copy, Switch Tabs, paste, switch tabs, repeat
Here's a straight translation of your steps, I would suggest debugging by setting the loops to 1 and putting in a "Return" to terminate early and slowly move it down as you see that each step is working properly Month := 12 Day := 17 Year := 2020 ^0:: Loop, 2 { Send, ^c ; Copy (from Excel) Sleep, 50...
- 10 Dec 2020, 11:14
- Forum: Bug Reports
- Topic: IfWinExist can't find a window on a different desktop on Windows 10
- Replies: 5
- Views: 2489
Re: IfWinExist can't find a window on a different desktop on Windows 10
I came here to post this bug. For me, adding DetectHiddenWindows, On does not fix the problem for: ;; Firefox #!f:: if WinExist("ahk_exe firefox.exe") WinActivate else Run "D:\PortableApps(NS)\apps\firefox\current\firefox.exe" Return When DetectHiddenWindows, On is added at the start of the script,...
- 09 Sep 2020, 09:21
- Forum: Scripts and Functions
- Topic: Script Share: don't accidently flip/rotate monitors
- Replies: 0
- Views: 131
Script Share: don't accidently flip/rotate monitors
(Context/Background) During the stay at home, I've been using Windows Remote desktop in full screen a lot more. I also use Windows 10's virtual desktop to run a few apps locally (like my music), I would often CTRL + ALT + Home (^!Home) to escape the key capture then CTRL + Win + Right (^#Right) to s...
- 06 Aug 2020, 13:11
- Forum: Ask For Help
- Topic: Switching layout while certain keys are pressed
- Replies: 3
- Views: 1806
Re: Switching layout while certain keys are pressed
Another option is to manually code the whole thing - https://autohotkey.com/board/topic/7462-qwerty-remapped-as-dvorak/ Maybe make keyboard shortcuts to start and stop that script?? (You could use Hotkey , but that would be a lot of hotkeys to turn on and off - so at minimum I would suggest code-gen...
- 06 Aug 2020, 13:07
- Forum: Ask For Help
- Topic: Distinction Between an Open Folder and the Desktop/Taskbar
- Replies: 2
- Views: 1116
Re: Distinction Between an Open Folder and the Desktop/Taskbar
If I understand correctly, you want to check if the active "window" (or process) is a window of Explorer (open to some folder), or just the desktop - both of which are from the Explorer.EXE process. I've found the the ahk class (as in WinGetClass ) to be effective. If desktop is active: this equals ...
- 05 Aug 2020, 08:03
- Forum: Ask For Help
- Topic: Switching layout while certain keys are pressed
- Replies: 3
- Views: 1806
Re: Switching layout while certain keys are pressed
actually, Win10 has this builtin as well: https://www.windowscentral.com/how-change-your-keyboard-layout-windows-10 Win + Space but also looks like https://www.autohotkey.com/boards/viewtopic.php?f=6&t=18519 has a library where you can call SetDefaultKeyboard , for example: https://www.autohotkey.co...
- 03 Aug 2020, 20:29
- Forum: Ask For Help
- Topic: Help for OBS Studio script
- Replies: 4
- Views: 2382
Re: Help for OBS Studio script
you can use ControlSend to specify the target process/window of a key press. Your requested script my look something like this (untested) Note: I'm running the 64 bit version of OBS, so for me, the process name is obs64.exe, but you can verify this using the Window Spy ( https://amourspirit.github.i...
- 28 Jul 2020, 12:11
- Forum: Ask For Help
- Topic: Set hotkey to open certain file Topic is solved
- Replies: 2
- Views: 654
- 28 Jul 2020, 10:04
- Forum: Ask For Help
- Topic: Question About Mousewheel
- Replies: 1
- Views: 366
Re: Question About Mousewheel
MouseClick, Left ; click in currrent pos - see MouseClick
Send, {WheelDown} ; scroll down one section/click/tick see Wheel
Send, {WheelDown 5} ; scroll down 5 sections/clicks/ticks
Send, {WheelDown} ; scroll down one section/click/tick see Wheel
Send, {WheelDown 5} ; scroll down 5 sections/clicks/ticks
- 17 Jun 2020, 09:00
- Forum: Ask For Help
- Topic: need help finding editing program
- Replies: 6
- Views: 1698
Re: need help finding editing program
Otherwise, if you want to put hotkeys into your script to launch an editor and re-load the code, it might look something like this (untested) ^RButton:: ; run Notepad passing this script to edit Run, notepad %A_ScriptFullPath% Return ^+RButton:: ; Tell Windows to run this script (causes a reload) Ru...
- 17 Jun 2020, 08:55
- Forum: Ask For Help
- Topic: need help finding editing program
- Replies: 6
- Views: 1698
Re: need help finding editing program
I think what you're asking for is a script manager - I've seen a couple come across the forums, try doing a search.
One example:
https://autohotkey.com/board/topic/64156-script-manager/
One example:
https://autohotkey.com/board/topic/64156-script-manager/
- 03 Jun 2020, 09:49
- Forum: Ask For Help
- Topic: mode activation like vim
- Replies: 1
- Views: 104
Re: mode activation like vim
Check out Suspend command Also for the number of times, you might find Loop helpful. Something like this (untested): ; toggle active or not on Win + p #p:: Suspend, Toggle if (A_IsSuspended) TrayTip, {Tool Name}, not active, 10, 1 else TrayTip, {Tool Name}, Activated, 10, 1 return ; . = Win + CTRL +...
- 02 Jun 2020, 12:05
- Forum: Ask For Help
- Topic: Limit (or filter) Alt+Tab windows switcher to show specific windows only
- Replies: 3
- Views: 203
Re: Limit (or filter) Alt+Tab windows switcher to show specific windows only
With AHK, it's pretty easy to REPLACE the alt-tab behavior with your own, this example looks at the current windows exe, and activates the next window that has the same exe (toggle through Chrome windows for example): (I normally run it use using alt + backtick ( !SC029:: ), but this should give you...
- 01 Jun 2020, 20:16
- Forum: Ask For Help
- Topic: Issues automatically pulling window to front when it apppears
- Replies: 3
- Views: 187
Re: Issues automatically pulling window to front when it apppears
(just a couple of thoughts/immediate reaction) this part could/should be at the top of the script rather than in the loop as it only needs to run once (maybe, maybe improve loop speed?? not likely, but cleaner code anyways) DetectHiddenWindows, On SetTitleMatchMode RegEx SetTitleMatchMode, slow Is t...
- 24 May 2020, 16:04
- Forum: Editors
- Topic: AHK Gen.com - looking for beta testers for new features
- Replies: 5
- Views: 1208
Re: AHK Gen.com - looking for beta testers for new features
Round 2: new features pushed.
Re-ordering entries now supported!
Re-ordering entries now supported!
- 24 May 2020, 15:57
- Forum: Editors
- Topic: AHK Gen.com - looking for beta testers for new features
- Replies: 5
- Views: 1208
Re: AHK Gen.com - looking for beta testers for new features
@hasantr
Have you checked out the site? Was it clear how to use it? (If not, I'ld love to get on a video call with you and have you walk me through where you're getting stuck).
Yes, but it would help if you post (or message) specific questions.Can you explain a little?
Have you checked out the site? Was it clear how to use it? (If not, I'ld love to get on a video call with you and have you walk me through where you're getting stuck).
- 16 May 2020, 11:53
- Forum: Editors
- Topic: AHK Gen.com - looking for beta testers for new features
- Replies: 5
- Views: 1208
Re: AHK Gen.com - looking for beta testers for new features
Beta version is available at http://preview.ahkgen.com
- 15 May 2020, 19:22
- Forum: Editors
- Topic: AHK Gen.com - looking for beta testers for new features
- Replies: 5
- Views: 1208
AHK Gen.com - looking for beta testers for new features
Hey all, I've been working on some new updates to ahkgen.com - while some of it includes a lot of new automated testing, due to the level of refactoring to enable this testing and new features in the near future I would like to really hammer these changes before pushing them to the server. So, would...
- 07 May 2020, 08:44
- Forum: Ask For Help
- Topic: Disable the hotkey when no window is active Topic is solved
- Replies: 19
- Views: 911
Re: Disable the hotkey when no window is active Topic is solved
Unfotunately, from AHK's perspective there's never a case of "no active window" - however you can detect if the desktop is the "active window" by checking for "ahk_exe Explorer.exe ahk_class WorkerW" So, your script would change to be something like (untested): ^Backspace:: IfNotWinActive, ahk_exe E...