Search found 54 matches

by mshafer1
15 Apr 2021, 10:31
Forum: Ask for Help (v1)
Topic: Command line
Replies: 5
Views: 649

Re: Command line

If the problem is with the py library, I'ld suggest trying python-barcode: https://pypi.org/project/python-barcode/
I've successfully used to to generate Code 13 and Code 128 barcodes
by mshafer1
09 Apr 2021, 08:33
Forum: Ich brauche Hilfe
Topic: Fenstertitel ermitteln bei Rechtsklick - Geht das?
Replies: 3
Views: 668

Re: Fenstertitel ermitteln bei Rechtsklick - Geht das?

Try this:

Code: Select all

RButton::
identify()
return

identify()
{
	WinGetTitle, Title, A
	WinGet, Exe, ProcessName
	MsgBox, The active window is`nTitle: "%Title%"`nProcess: "%Exe%"
}
by mshafer1
04 Jan 2021, 18:55
Forum: Gaming Scripts (v1)
Topic: AHK binding left joy AND dpad to wasd (and buttons to keys)
Replies: 0
Views: 2131

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...
by mshafer1
17 Dec 2020, 20:32
Forum: Ask for Help (v1)
Topic: Copy, Switch Tabs, paste, switch tabs, repeat
Replies: 3
Views: 323

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...
by mshafer1
10 Dec 2020, 11:14
Forum: Ask for Help (v1)
Topic: IfWinExist can't find a window on a different desktop on Windows 10
Replies: 6
Views: 4783

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,...
by mshafer1
09 Sep 2020, 09:21
Forum: Scripts and Functions (v1)
Topic: Script Share: don't accidently flip/rotate monitors
Replies: 0
Views: 408

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 (v1)
Topic: Switching layout while certain keys are pressed
Replies: 3
Views: 2576

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 (v1)
Topic: Distinction Between an Open Folder and the Desktop/Taskbar
Replies: 2
Views: 1331

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 (v1)
Topic: Switching layout while certain keys are pressed
Replies: 3
Views: 2576

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 (v1)
Topic: Help for OBS Studio script
Replies: 4
Views: 5347

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 (v1)
Topic: Question About Mousewheel
Replies: 1
Views: 556

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 (v1)
Topic: need help finding editing program
Replies: 6
Views: 2001

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 (v1)
Topic: need help finding editing program
Replies: 6
Views: 2001

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 (v1)
Topic: mode activation like vim
Replies: 1
Views: 258

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 (v1)
Topic: Limit (or filter) Alt+Tab windows switcher to show specific windows only
Replies: 3
Views: 619

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 (v1)
Topic: Issues automatically pulling window to front when it apppears
Replies: 3
Views: 410

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: 5672

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: 5672

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).

Go to advanced search