Search found 9 matches
- 28 May 2023, 06:25
- Forum: Ask for Help (v2)
- Topic: If WinActive works not as intended on AHK v2
- Replies: 2
- Views: 947
If WinActive works not as intended on AHK v2
I have a script that disables several hotkeys and Windows button when a game is launched. The script was created on AHK v1, but now I have AHK v2 installed and tried to convert v1 script to v2. How it used to look like: v1 GroupAdd, GameActive, ahk_exe DetroitBecomeHuman.EXE GroupAdd, GameActive, ah...
- 28 Nov 2022, 08:58
- Forum: Ask for Help (v1)
- Topic: If WinActive Send script not working Topic is solved
- Replies: 4
- Views: 418
Re: If WinActive Send script not working Topic is solved
It works perfectly. Don't know how to thank you. And didn't thought that combinig these scripts would be so complicated...Rohwedder wrote: Then (untested):
Thank you so much.
- 27 Nov 2022, 20:28
- Forum: Ask for Help (v1)
- Topic: If WinActive Send script not working Topic is solved
- Replies: 4
- Views: 418
Re: If WinActive Send script not working Topic is solved
Hallo, your script checks exactly once if a window of steam.exe is active, sends if so (Alt+Shift+0) , and then exits. Perhaps: WinWaitActive, ahk_exe steam.exe Send !+0 Vielen Dank, it works. By the way I have a little additional question. I have two another scripts (with one of them you've helped...
- 25 Nov 2022, 02:16
- Forum: Ask for Help (v1)
- Topic: If WinActive Send script not working Topic is solved
- Replies: 4
- Views: 418
If WinActive Send script not working Topic is solved
I tried to make a very simple script that triggers a hotkey (Alt+Shift+0) for changing the keyboard layout to the specific language when a particular app is active. According to WinActive and Send I did this: if WinActive("ahk_exe steam.exe") Send !+0 That's it. But it doesn't work. It simple doesn'...
- 26 Oct 2022, 13:28
- Forum: Ask for Help (v1)
- Topic: Set a Specific Window Size Relatively to the Screen Resolution Topic is solved
- Replies: 4
- Views: 1077
Re: Set a Specific Window Size Relatively to the Screen Resolution Topic is solved
Hallo, try: #Persistent GroupAdd, ResizedWin, ahk_exe telegram.EXE GroupAdd, ResizedWin, ahk_exe Discord.EXE GroupAdd, ResizedWin, ahk_exe WhatsApp.EXE GroupAdd, ResizedWin, ahk_exe Notepad.EXE Loop { WinWait ahk_group ResizedWin WinMove, , , , , 1417*A_ScreenWidth//2560, 915*A_ScreenHeight//1600 W...
- 26 Oct 2022, 08:14
- Forum: Ask for Help (v1)
- Topic: Set a Specific Window Size Relatively to the Screen Resolution Topic is solved
- Replies: 4
- Views: 1077
Set a Specific Window Size Relatively to the Screen Resolution Topic is solved
I created a script that automatically sets the window size for certain apps. I put it in Startup so it works independetly. I needed this because I have a laptop with 2560x1600 screen resolution and I use it for work. But when I’m at home, I connect it to my Full HD monitor. The problem is that some ...
- 21 Oct 2021, 10:23
- Forum: Ask for Help (v1)
- Topic: Ctrl + Z & Ctrl + Y in German and Russian layouts become a mess after a reboot
- Replies: 5
- Views: 638
Re: Ctrl + Z & Ctrl + Y in German and Russian layouts become a mess after a reboot
in autostart-folder , script should begin with : SetWorkingDir , %A_ScriptDir% ;- Ensures a consistent starting directory. I´m sorry but I did´t quite understand what you mean. Why should I put it in the script if it´s located not in the Autostart folder? In Autostart folder locates a shortcut whic...
- 21 Oct 2021, 10:20
- Forum: Ask for Help (v1)
- Topic: Ctrl + Z & Ctrl + Y in German and Russian layouts become a mess after a reboot
- Replies: 5
- Views: 638
Re: Ctrl + Z & Ctrl + Y in German and Russian layouts become a mess after a reboot
Click the word "Reload" in your posted script. As noted there, this command takes no parameters. Reload : Replaces the currently running instance of the script with a new one. In other words, Reload does not load a different script; it reloads the same script. You could try running a new script tha...
- 20 Oct 2021, 07:28
- Forum: Ask for Help (v1)
- Topic: Ctrl + Z & Ctrl + Y in German and Russian layouts become a mess after a reboot
- Replies: 5
- Views: 638
Ctrl + Z & Ctrl + Y in German and Russian layouts become a mess after a reboot
I often use two layouts: Russian and German. When I use Russian layout, the Undo shortcut is Ctrl + Z (relatively to English layout), and Redo is Ctrl + Y. But German layout switches Z and Y, so it´s QWERTZ, not QWERTY. Hence in German layout shortcuts Undo and Redo are the same, but since Z and Y s...