Search found 49 matches

by mshafer1
09 Sep 2020, 09:21
Forum: Scripts and Functions
Topic: Script Share: don't accidently flip/rotate monitors
Replies: 0
Views: 84

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...
by mshafer1
06 Aug 2020, 13:11
Forum: Ask For Help
Topic: Switching layout while certain keys are pressed
Replies: 3
Views: 1709

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...
by mshafer1
06 Aug 2020, 13:07
Forum: Ask For Help
Topic: Distinction Between an Open Folder and the Desktop/Taskbar
Replies: 2
Views: 1065

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 ...
by mshafer1
05 Aug 2020, 08:03
Forum: Ask For Help
Topic: Switching layout while certain keys are pressed
Replies: 3
Views: 1709

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...
by mshafer1
03 Aug 2020, 20:29
Forum: Ask For Help
Topic: Help for OBS Studio script
Replies: 4
Views: 2043

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...
by mshafer1
28 Jul 2020, 10:04
Forum: Ask For Help
Topic: Question About Mousewheel
Replies: 1
Views: 344

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
by mshafer1
17 Jun 2020, 09:00
Forum: Ask For Help
Topic: need help finding editing program
Replies: 6
Views: 1651

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...
by mshafer1
17 Jun 2020, 08:55
Forum: Ask For Help
Topic: need help finding editing program
Replies: 6
Views: 1651

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/
by mshafer1
03 Jun 2020, 09:49
Forum: Ask For Help
Topic: mode activation like vim
Replies: 1
Views: 82

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 +...
by mshafer1
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: 162

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...
by mshafer1
01 Jun 2020, 20:16
Forum: Ask For Help
Topic: Issues automatically pulling window to front when it apppears
Replies: 3
Views: 158

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...
by mshafer1
24 May 2020, 16:04
Forum: Editors
Topic: AHK Gen.com - looking for beta testers for new features
Replies: 5
Views: 934

Re: AHK Gen.com - looking for beta testers for new features

Round 2: new features pushed.

Re-ordering entries now supported!
by mshafer1
24 May 2020, 15:57
Forum: Editors
Topic: AHK Gen.com - looking for beta testers for new features
Replies: 5
Views: 934

Re: AHK Gen.com - looking for beta testers for new features

@hasantr
Can you explain a little?
Yes, but it would help if you post (or message) specific questions.
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).
by mshafer1
15 May 2020, 19:22
Forum: Editors
Topic: AHK Gen.com - looking for beta testers for new features
Replies: 5
Views: 934

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...
by mshafer1
07 May 2020, 08:44
Forum: Ask For Help
Topic: Disable the hotkey when no window is active Topic is solved
Replies: 19
Views: 814

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...
by mshafer1
07 Jan 2020, 19:56
Forum: Ask For Help
Topic: Need some help with a simply ahk
Replies: 1
Views: 249

Re: Need some help with a simply ahk

To right click, call `MouseClick` with `right` as an argument: ( MouseClick ) MouseClick, Right Or, Send , Send, {RButton} To move, use MouseMove : MouseMove, 10, -10,,R (the R makes it relative even if CoordMode isn't set). For looping till a key is pressed, checkout this previous thread: https://a...
by mshafer1
23 Dec 2019, 10:57
Forum: Gaming
Topic: I need a script that would send something from the clipboard Topic is solved
Replies: 2
Views: 484

Re: I need a script that would send something from the clipboard Topic is solved

Sending from the clipboard is fairly simple: Send, ^v ; type control v to use standard paste Send, %CLIPBOARD% ; type the contents of the clipboard out For making it wind up in the chat region, consider triggering this off of a hot string or key that you press/type when the cursor is in the window, ...
by mshafer1
17 Dec 2019, 22:20
Forum: Ask For Help
Topic: I need help improving an AHK.
Replies: 2
Views: 383

Re: I need help improving an AHK.

A) post in these questions under "Ask for Help" (as opposed to "Tutorials") B): > CTRL + I = loop ASDW till released Check out: https://autohotkey.com/board/topic/72012-solved-loop-while-pressed-only/ In theory, this should work (untested) ^i:: while GetKeyState("Ctrl","P") { Send, A Send, S Send, D...

Go to advanced search