Autohotkey ifwinactive not working
Autohotkey ifwinactive not working. There is a solution though. Mar 1, 2017 · Code: Select all #IfWinExist ahk_class WindowsForms10. Dec 17, 2021 · I'm trying to use IfWinActive on a specific app but it has no effect. The window is brought to the forefront, and doesn't respond to anything I (or the script) presses on the keyboard. But since you're saying Right click first then using alt+ctrl isn't working, it may not. Best option to solve the problem would be to remove the source of the behavior, but apparently closing other applications and using lexikos' kill-script does not solve it. Guest. By removing the ";" that command line . An easy way to retrieve the unique ID of the active window is with ActiveHwnd := WinExist("A"). 1 and older) and its commands and hotkeys #IfWinActive Fallout: New Vegas not working. g #IfWinActive, ahk_exe notepad. Nov 12, 2011 · Don't forget that 1. Driving me nuts. Send isn't working either. I alt+tab a lot, and sometimes after an alt+tab AHK does not see that StarCraft is active and the macro does not work. 2 posts • Page 1 of 1. Is there a way to check if one of these windows is active: `wsl. exe. Dec 26, 2016 · The #IfWin directives are only for creating context-sensitive hotkeys and hotstrings. exe, this will make the 'f1' key function in dota2. #IfWinActive. UnicodeClass. 1 and older) and its commands and hotkeys Nov 17, 2014 · Okay, so there's some unidentified reason why at work your physical 0 sends an artificial 0. !1:: Dec 9, 2020 · The path is correct. Jan 14, 2006 · Simple "IfWinActive" not working :( - posted in Ask for Help: Major Brain Fart gotta be. WinMove, A, , 2880,0,960, 1170 exit #ifWinActive #IfWinActive ahk_class Dialog. Such hotkeys perform a different action (or none at all) depending on the type of window that is active or exists. ago. #IfWinNotActive ahk_class Dialog. ifWinActive not working. In this video, we explore the various directives (# Apr 23, 2021 · That's my entire script: Code: Select all - Download - Toggle Line numbers. "#IfWinActive, BlackOpsMP. For example The Au3 Window Spy would show "Sandbox:DefaultBox:IEFrame" as class. NET. Your example would only work for Everything 1. I've been using AHK include statements for years without a problem, but now I'm stymied! mikeyww. Dec 15, 2011 · The script I have is below: SetTitleMatchMode 2. Put it like this and it will work: !Space:: IfWinActive, Top WinMinimize, base else { WinActivate, base sleep, 1000 ControlFocus, Edit1, Top } return Alt-tab hotkeys are not affected by #IfWin: they are in effect for all windows. Let's say my hotkey is Q and its supposed to activate the keys W+E. Just have a good look as Warframe. Escape::WinMinimize. . by evilC » Thu Jul 21, 2016 12:49 pm. But my script file also contains other code like #w::Run, mblctr. For example: #IfWinExist ahk_class Notepad. In other words, if WinActive or IfWinActive evaluates to true or IfWinNotActive evaluates to false, the will be updated. One little mistake and it doesn't work. Dec 8, 2007 · terminate IfWinActive condition - posted in Ask for Help: This is a simple question, but unable to find answer. Send {Backspace} Sleep 200 Send {Alt} fhu. ; SHIFT+CTRL+TAB. The game is Deus Ex Human Revolution The script is as follows: Numpad0:: Send, {F5} Sleep 100 return It works fine in my browser. ; Check if this script is already running (from a different location) and, if so, close the older process CheckProcess() {. I think you are right Somebody Helpful. Then you define your application specific hotkeys/hotstrings based on just a part of the windows title. If I run the . Here's my script: Code: Select all - Expand View - Download - Toggle Line numbers. x64. When I use both code in the autohotkey, only the code which comes first works and the second don't work. *Rbutton::Send {Shift down} *Rbutton up::Send {Shift up} In fact, *RButton::Send {Shift} might work alone. 1 and Code: Select all - Download - Toggle Line numbers. Could you try the script in safe mode? Dec 17, 2021 · Re: IfWinActive not working on specific app Post by cris2d2 » Tue Dec 28, 2021 7:58 am I have another problem regarding the code for this app: because it's a messenger app, when it receives a message it shows (1) on title bar before the name of the app, like this: (1) Messenger for Desktop and minimize by Esc doesn't work. Top Jul 3, 2020 · Both versions need SetTitleMatchMode, 2 at the top, which allows Visual to match anywhere in the title. Feb 23, 2020 · works as expected , however when i try the below code the message box does not appear. To test it, I load the below, then go to Chrome and do Ctrl-Shift-t (which will Sep 1, 2013 · In Keynote-NF, "Ctrl+\" will focus on Tree and "Tab" will focus on TextEditor. The software I want to control is fairly old and I want to replace the pan function to be similar to autocad (press and hold MMB). BTW, this syntax is invalid: Code: Select all - Download - Toggle Line numbers. (not at the same time) ie'. holding MMB and pan works as well. The effect I want, as you probably discovered, is to minimize a particular active window by pressing Esc key, if the window name is Messenger Sep 29, 2008 · #IfWinActive / #IfWinExist Creates context-sensitive hotkeys and hotstrings. Tab:: If WinActive("Page. htm - Vivaldi") MsgBox, activa. ; do something. Code: Select all SetTitleMatchMode, 2 #\:: IfWinActive, Visual Send, hello return Aug 15, 2010 · [solved] problem with #IfWinActive , ahk_id %active_id% - posted in Ask for Help: Hello, After compilation, when iam running many exe the hotkey are allowed to the first instance Not to the Active exe ??so i want to allow with the ahk_id %active_id% (retrieve after creation of gui)not with the title but its no good. #IfWinActive ahk_class Notepad. #SingleInstance Force. I create a function that can only run inside explorer. In the version with #IfWinActive, you have to put that line before the hotkey, not after. Try using a loop or SetTimer with IfWinActive: Loop. You guessed it! A workaround is to use window groups. Fancy quotes (aka curly quotes) are not regular quotes. Send, Some text. But I found myself wanting to change these to Alt+1 and Alt+2 - and so while it is not configurable in Keynote, this is how you can assign your own custom hotkeys via AutoHotkey: #IfWinActive ahk_class GFKeyNote10. :? SetTitleMatchMode, 2 up:: If WinActive, Notepad msgbox return Jan 14, 2006 · Simple "IfWinActive" not working :( - posted in Ask for Help: Major Brain Fart gotta be. Creates two hotkeys and one hotstring which only work when Notepad is active, and one hotkey which works for any window except Notepad. I've moved the #include statements from the top to the bottom of the main file, but the scripts are not getting activated. #n::WinActivate ; Activates the window found by #IfWin. Here is an example of my working script: #ifWinActive ahk_exe dota2. fb11c8_r9_ad1 ^a:: MsgBox test If State=50 State=Off else State=50 SetTimer SendKey, %State% Return SendKey: Send a Return ^s:: If State=50 State=Off else State=50 SetTimer SendKeys, %State% Return SendKeys: Send s Return ^d:: If State=50 State=Off else State=50 SetTimer SendKeyd, %State% Return SendKeyd: Send d Return ^w It worked (aka stopped working in VS Code), but what I don't understand is why, you said that I forgot to put ahk_exe before the exe name, but I didn't (unless I'm missing something blatantly obvious) Your original post. Jan 2, 2016 · Here is my suggestion: #If WinActive("ahk_class Notepad") ;if the window with the ahk_class "Notepad" is active. IfWinExist and WinActivate. But when I enter the game, it doesn't work. +^Tab::SendInput ^{PgUp} return. NET (Not Working) - posted in Ask for Help: As Title said, i am trying to create somehotkeys for Paint. Activating the pan function by MMB works. e. 1 and older) and its commands and hotkeys. {. Ive done this successfully hundreds of times, and not all the sudden it wont work:Its not recognizing that Notepad is open for some crazy reason. 5a requires a different #IfWinActive declaration, ahk_class EVERYTHING_ (1. Apr 28, 2009 · This command affects the behavior of all windowing commands, e. The groups are convenient to be defined in the auto-execute section. Jul 11, 2017 · This script does what I want, but it works everywhere and not just in the window I specify with #ifWinActive. {Enter} ;send some keyboard input. AutoHotKeys doesn't seem to be able to evaluate the expression correctly. So you'd have to replace that for an empty #if and add that check inside the corresponding code to execute your custom behavior or to default to Send 0. Bit confused on this. exe` or `ubuntu2004. ^!c::MsgBox You pressed Control+Alt+C in WordPad. This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. ) Code: Select all - Download - Toggle Line numbers. 4; FAQ; Logout; Register; #ifwinactive not working. Nov 23, 2006 · SetTitleMatchMode not working - posted in Ask for Help: hellothe below script is supposed to autosend enter when a specific window is activethe window must have ClassNN: OperaWindowClass1 and must contain *@ in its titleSetTitleMatchMode, 2 ControlSend, OperaWindowClass1, {ENTER}, *@ Returnhow ever it doesnt workany ideas?thanks Jan 2, 2016 · The problem is when you launch the game using modder launchers (FOMM, NMM, NVSE) the ahk stops working. A test with using the full title Untitled - Notepad confirms that the code +n::b does substute Shift-n for Shift-b. @will: The original code you posted maps keyboard TO mouse, not the other way around. 1 and older) Ask for Help (v1) #ifwinactive not working Get help with using AutoHotkey (v1. The code is very simple: Code: Select all - Download - Toggle Line numbers. 1 and older Jun 1, 2013 · second attempt matchmode 2 should match anywhere. 22 KB Oct 19, 2014 · Hi, I have this thing here and after taking it apart, I noticed that its not working anymore: #IfWinActive, SciTE4AutoHotkey ^+Tab::SendInput, +{F6} ;BROKEN ^Tab::SendInput, {F6} #IfWinActive Problem 1: The IfWinActive doesn't detect Scite. i just dont know why it does not work. 1 and older) and its commands and hotkeys AutoHotkey v1 Help; AutoHotkey v2 Help; Tutorials; Download - 2. Also, take note of ahk_class (look up ahk_class in the help file), which uses the type of window, rather than the title. 5. Since all non-zero numbers are seen as "true", the statement if WinActive(WinTitle) is true whenever WinTitle is active. ^!c::MsgBox You pressed Control+Alt+C in a window other than Notepad/WordPad. while( 1 = 1 ) {. Sleep, 500 SendInput, ! d ;highlight the address bar Sleep, 50 Send, It worked. WinMaximize ;maximize the active window. #IfWinActive ; endif. Any1 know a way to optimize the code and make this line work as intended? Thanks! Jan 17, 2014 · Get help with using AutoHotkey (v1. +n::b. Andress1 • 3 yr. Nov 24, 2016 · When I used the original name for the function "#IfWinActive" I just used "GTA:SA", but now it doesnt recognize it. #If with an expression is more versatile, but not really needed here (in AHK v2 alpha, it would be obligatory, though). fb11c8_r9_ad1 ^a:: MsgBox test If State=50 State=Off else State=50 SetTimer SendKey, %State% Return SendKey: Send a Return ^s:: If State=50 State=Off else State=50 SetTimer SendKeys, %State% Return SendKeys: Send s Return ^d:: If State=50 State=Off else State=50 SetTimer SendKeyd, %State% Return SendKeyd: Send d Return ^w 17. Not while Im looking at the inbox or sent mails folders for example. Apr 29, 2014 · Page 1 of 2 - GetKeyState not working consistently with MouseWheel - posted in Ask for Help: Hi, this is a script Im working on to help customize my 3ds max navigation scheme #InstallMouseHook #InstallKeybdHook #MaxThreadsPerHotkey 2000 #MaxHotkeysPerInterval 40000 *UseHook Space::^LAlt return ~*WheelUp:: GetKeyState, state, Alt if state = D Send {WheelUp} else MsgBox F6 return It works, but May 21, 2012 · If you pay attention the "base" window is never active, that's why the hotkey won't work unless it's not the active window. MouseClick, Left:: z. 2. Your second post. Here's some code I use that works. 4 which does not have an X in the Search bar. g. This script does what I want, but it works everywhere and not just in the window I specify with #ifWinActive. For example, in my Win 7 case, I can restrict hotkeys to explorer by specifying: #IfWinActive ahk_class Mar 13, 2014 · These have been working well for years, until I tried to make them context sensitive. MButton::Shift. The function WinActive () returns the of the active window if it matches the specified criteria. MouseClick, Right:: x. Though the turning tab into 8 spaces works, it works on every window. Any ideas? Alt-tab hotkeys are not affected by #IfWin: they are in effect for all windows. You can read more about it here. Ask gaming related questions (AHK v1. lexikos. exe, but in Anno1800. Nov 26, 2012 · Script not working in-game - posted in Gaming Questions: Well, my F5 key is broken and the game doesn't allow remapping the quick save key. Autohotkey comes with a program called Window Spy. exe could be used as well. Nov 17, 2010 · Ok so I'm using "#IfWinActive", my question is it possible to designate multiple programs for it to be active in. 2; FAQ; Logout; #IfWinActive numbers not working? Get help with using AutoHotkey (v1. (Press Esc to exit the script. Jun 1, 2020 · 5. Jul 26, 2017 · #IfWinActive ahk_exe excel. ^!a::MsgBox You pressed Ctrl-Alt-A while Notepad is active. Back to top. 1 and older) Ask for Help (v1) IfWinActive not working on specific app Topic is solved Get help with using AutoHotkey (v1. The title or the name of the game/window never changes, I also tried variations of #IfWinActive ahk_class Fallout: New Vegas, #IfWinActive Fallout: New Vegas ahk_class Fallout: New Vegas, #IfWinActive ("ahk_class Fallout New Vegas") - did Jun 21, 2013 · AutoHotKey is very finicky about the window title. Problem 2: Either its a lockdown or SendInput isn't working anymore! Woe. Return Value. Then the directives, you can organize them like if / elseif / endif : #IfWinActive ahk_group Games1 ; if. XButton2::SendInput {F8} XButton1::SendInput {Tab} #IfWinActive. May 29, 2014 · #IfWinActive, , Paint. Since all non-zero numbers are seen as "true", the statement if WinActive("WinTitle") is true Nov 17, 2014 · Your conditional #IfWinactive () directive causes it to become a hook key instead of a registered key. The Last Found Window is set by #IfWinActive/Exist (though not by #IfWin Not Active/ Not Exist). The directive #IfWinactive would be an alternative. You can use the Window title or class name, same as the old way. Aug 11, 2023 · Home Board index AutoHotkey (v1. I know that I can check if one of these is active with `#IfWinActive ahk_exe ubuntu2004. Oct 16, 2020 · #IfWinActive, ahk_class Notepad ::hello::Hello World #IfWinActive And ahk_class is used for convenience. by gregster » Sun Jun 21, 2020 4:23 am. Example: #IfWinActive, Excel ; Any window with Excel In other words, if IfWinActive evaluates to "true" or IfWinNotActive evaluates to "false", the will be updated. 1 and older) Ask for Help (v1) #IfWinActive not working Get help with using AutoHotkey (v1. in this example only Windows+W shortcut Jul 3, 2020 · In the version with #IfWinActive, you have to put that line before the hotkey, not after. RButton:: ;this hotkey is only enabled while the above statement is true. I've tried running as admin and it didn't help. Code execution never actually reaches a := 1, it's stopped when your first hotkey definition is met. But when I release MMB it wont end the pan Home Board index AutoHotkey (v1. Dec 4, 2019 · Run the script below, activate the window, then press the Tab key. I've never had a problem with #ifWinActive not working before, but I also don't typically use controllers or write scripts for them. Jun 1, 2013 · second attempt matchmode 2 should match anywhere. ahk scripts individually, they become active. return #If ; end of context-sensitive section. Ive tried switching Add New Post ‹ School — WordPress to Jul 9, 2007 · Joined: --. Sat Jan 02, 2016 3:12 am. exe" and I need to find the name that it could recognize for that function, but I don't know where to look. Obviously this activates it when Black Ops is running. Also, it's not an error, just a warning. They're completely different character sets. WinActivate ahk_exe chrome. I want to hold ctrl + alt and then type "s" for "Small (S)" to populate and ctrl + alt + "ss" and have "Extra Small (XS)" populate. I want to use this in chrome. I have this as part of a very long . You are looking for the IfWinActive without the little '#' sign in front. exe. If it does not, the function returns 0. Oct 8, 2012 · #IfWinActive StarCraft not working - posted in Ask for Help: Looks like this line is not working properly. Get help with using AutoHotkey (v1. Hidden windows are not detected unless has been turned on. Feb 24, 2012 · ifWinActive: new message in outlook - posted in Ask for Help: Hi, Im very new to AutoHotkey. Feb 19, 2007 · And i dont know how to add a variable into #IfWinActive i got %CurrentVersion% in my script. I create a hotkey that will only run if explorer is active/focused (#IfWinActive ahk_class CabinetWClass). 8. In the below example, either way will work. Window. #ifWinActive Messenger for Desktop. Window titles and text are case sensitive. At the start of your script place the command: SetTitleMatchMode, 2. #IfWinActive ahk_exe GameName. png (100%) - Paint. Mar 13, 2014 · These have been working well for years, until I tried to make them context sensitive. But it doesn't work with Sandboxie eindows. May 28, 2008 · The identifier must be by window title name (not ahk_group) The #IfWinActive line must not be repeated (The reason for this is that I've called ControlGetFocus for a variable that exists on all screens, and each screen has the same ahk_group, so in repeating a line the actions get carried out twice) My current code is: Home Board index AutoHotkey (v1. UnicodeClass1 Send {Alt down} else Send {Alt down} return #IfWinActive Other question: the #IfWinActive is correct to this command only work at this program? Nov 2, 2005 · toralf Moderators 4035 posts Last active: Aug 20 2014 04:23 PM Joined: 31 Jan 2005 Dear brotherS, have your tried this? $^s:: Send, ^s IfWinActive, AutoHotkey { TrayTip, Timed TrayTip, updated AutoHotkey script SetTimer, RemoveTrayTip, 6000 } return RemoveTrayTip: SetTimer, RemoveTrayTip, Off TrayTip Reload return *not tested* I have cleand up the code a bit, but it should do exactly what I Dec 28, 2021 · Hello everyone! AutoHotkey is not working in a specific game, when I use the command in any aplication, it is working perfectly. #IfWinActive ahk_group Games2 ; elseif. Dec 16, 2015 · Re: Undertale Key Reconfiguring. So, this is how it could be done: Code: Select all - Download - Toggle Line numbers. exe LALT & \::AltTab to add LALT + \ as Alt + Tab just in Excel; problem is, I don't know why it works despite the active Windows: in Excel, but also in all the others. If you want to make generic hotkey working for all programs using Scintilla, you must make a group of them #2 - Posted 09 July 2007 - 03:21 PM. AutoHotkey v1 Help; AutoHotkey v2 Help; Tutorials; Download - 2. Though window title and ahk_class are always different : >>>>>( Window Title & Class )<<<<< test. 1 and older) Ask for Help (v1) Gaming Help (v1) It is currently Fri Aug 11, 2023 5:13 am; All times are UTC; #ifwinactive not working. Sep 16, 2013 · IfWinActive not working [Simple] - posted in Ask for Help: Heres my code: ;Tab on WordPress IfWinActive, Add New Post ‹ School — WordPress { tab::send, {space 8} return } WordPress doesnt recognize tab as an indent, so I use the visually similar; 8 spaces. 5a). Right now Im using this one: #IfWinActive ahk_class ZBrush. Is there some kind of issue being caused by the WatchAxis or Persistent commands? Feb 11, 2008 · MButton up not working - posted in Ask for Help: Hi all,the script below is a part of my script to help me get along with some nasty deep menus. It works everywhere, but when I try to use it while playing, the Q is Q again, I alt tab and press Q, the Q activates W+E. IfWinActive not working on specific app Topic is solved. To create context-sensitive hotkeys, you need to use #If (Win) directives (with a # in front): Code: Select all - Download - Toggle Line numbers. I couldnt find a previous post on this … Apologies if I should just have looked harder!Help would be much appreciated. NET v3. #ifWinNotActive, ahk_exe dota2. The class could be prefixed with "Sandbox:DefaultBox:". i. Note- ";" is used to comment out code. Fine. Forum rules. capslock::n. I renamed the exe file to "vodka. exe, it will bring up the 'G' drive as if it does not recognize the Mar 16, 2023 · I am using the following script in Autohotkey v2. Alternatively e. Jan 17, 2015 · IfWinActive not Working :( - posted in Ask for Help: so i have this code but it still send key stroke while #IfWinActive, Core Int Online is not active why!! Until today, this script worked perfectly. What if I wanted to make it active for ANY of the Call of Duty games or any mode? May 12, 2015 · Code: Select all - Download - Toggle Line numbers. ------------I want a key to work only when writing a new email in Outlook 2010. exe". Or of course, just a normal #IfWinActive, Untitled - Notepad would work as well, but only when you're editing a document named Dec 9, 2020 · The path is correct. #IfWinActive Notepad. #IfWinActive TL %CurrentVersion% but seems that IfWinActive dont support variables. In practice this does not work. GroupAdd, Group, ahk_class Photoshop. Hello, I can't figure how to make it work properly Sep 29, 2018 · by roysubs » Fri Oct 19, 2018 9:46 am. In a topic I just saw, somebody hinted that you cannot use #IfWinActive ahk_class on a control, only on the class of a (main) window. Sep 1, 2013 · How to do a "IfWinActive" with "ClassNN" info? - posted in Ask for Help: Hello there: Im trying to do something like that: #IfWinActive ahk_class GFKeyNote10. The prefix can be variable. This function returns the (as hexadecimal integer) of the active window if it matches the specified criteria, or 0 if it does not. [Solved] #ifWinActive not working in compiled script. Mar 28, 2015 · I am assigning the expression to a variable and then testing for ifWinActive and the variable. 22 KB Home Board index AutoHotkey (v1. I've tried different WinTitles like the full title, the id, and as you see here a partial which should work. exe`. If I didn't have the symlink i would use #IfWinActive, GTA:SA but now it doesn't work. ; This hotkey will have no effect if pressed in other windows (and it will "pass through"). If that doesn't do it, you could try this little function that I use: Code: Select all - Download - Toggle Line numbers. If WinActive("ahk_class WINDOWSCLIENT") {. I know that:ahk_class = rctrl This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. So let's try some stuff to narrow it down. 0. 3. Nov 19, 2013 · The older command IfWinActive is likely deprecated to gradually prepare people for AutoHotkey V2, where the syntax is done the newer way of WinActive (). 11 I tried to use 2nd argument of the function IfWinActive, but nothing happens. #IfWinActive, Inbox - Mozilla Thunderbird ;this is the whole window title in just the inbox. app. Due to how forgiving AHK is, it doesn't actually matter if you don't declare the variable before use. #IfWinActive ahk_exe Warcraft III. SetTitleMatchMode, 2. Jun 21, 2020 · Re: ifWinActive not working properly Topic is solved. UnicodeClass Tab:: IfClassNN, TTreeNT. !c::MsgBox You pressed Alt+C in Notepad. #if WinActive("ahk_id 0x10542") ; following hotkeys will be context-sensitive ~LButton & k:: KeyWait, k. exe is defined in both groups. I think you are using IfWinactive incorrectly. But now looks like: it works only if i run the script as admin and it works at the beginning, but after a while (maybe 30 secs or maybe 2 mins later) its not working anymore. return. Apr 6, 2014 · One thing that might work for you could be. #Include creofunctions. ; Hotkeys. f1::run, G: However, when I try to add multiple games, say for example, Anno1800. You can use it to discover the title of the active window. Mar 16, 2023 · I am using the following script in Autohotkey v2. NOTE: ahk_class is not an option as the class is different on every machine for the target programme TeXnicCenter. esc::WinMinimize. You're declaring the variable a outside of the auto-execute section. ahk. Cannot retrieve contributors at this time 403 lines (346 sloc) 8. ahk script: #IfWinActive, ahk_class IE3_CLASS !p:: Send {Alt}cbs RETURN This was done so that !p works only on the window IE3_CLASS Any code following this is dependent on the condition #IfWinActive, ahk_class IE3_CLASS I do not want this to be the Oct 19, 2014 · Hi, I have this thing here and after taking it apart, I noticed that its not working anymore: #IfWinActive, SciTE4AutoHotkey ^+Tab::SendInput, +{F6} ;BROKEN ^Tab::SendInput, {F6} #IfWinActive Problem 1: The IfWinActive doesn't detect Scite. Its work properly when there is no other code in the script file. when I open an email, (an ebay message in the example below) the window title changes to something like the below (obviously will vary depending on the email subject) RE: Message from Aug 4, 2015 · 1) #IfWinActive is not working, in this way - the script works in the game, but it also continues to work when in a different window, like Notepad++ or a browser. But it's not working even when run as admin. GroupAdd, Group, ahk_class (Enter the Class Name For Manga Studio here - use Window Spy to get it) #IfWinActive ahk_group Group ~F20:: MsgBox, You Pressed F20 return. :? SetTitleMatchMode, 2 up:: If WinActive, Notepad msgbox return The #If directives in AutoHotkey allows users to create creates context-sensitive hotkeys and hotstrings. any help appreciated. fh dw rb fr yi xf fg fj at tp