Search found 5 matches
- 18 Feb 2023, 15:17
- Forum: Ask for Help (v1)
- Topic: Windows Key + Arrow hotkey still launches start menu
- Replies: 1
- Views: 210
Windows Key + Arrow hotkey still launches start menu
Hi all, I'm trying to make an equivalent of the Mac app Rectangle on Windows for window management. I use ctrl+win+<key> for all the hotkeys. Here's what I've got so far: ^#u::WinMove, A, , -6, 0, 1292, 706 ^#i::WinMove, A, , 1274, 0, 1292, 706 ^#j::WinMove, A, , -6, 700, 1292, 706 ^#k::WinMove, A, ...
- 03 Jan 2021, 00:07
- Forum: Gaming Help (v1)
- Topic: Setting Gui x/y coordinates with window hook
- Replies: 7
- Views: 2149
Re: Setting Gui x/y coordinates with window hook
Hi, I figured it out! In the function that moves the gui with the window - OnLocationChangeMonitor() - it always forces it to the same coordinates as the application window: WinGetPos, _x, _y,,, % ownerAhkId WinMove, % ownedAhkId,, % _x, % _y ; set the position of the window owned by owner That was ...
- 02 Jan 2021, 17:04
- Forum: Gaming Help (v1)
- Topic: Setting Gui x/y coordinates with window hook
- Replies: 7
- Views: 2149
Re: Setting Gui x/y coordinates with window hook
The GUI coordinates are absolute, but it's easy to add the offset as follows. WinGetPos, x, y,,, Ignition Casino - Poker Lobby guiX := x + 100, guiY := y + 100 GUI, Show, w75 h50 x%guiX% y%guiY% Hi, Thanks for responding. I added (slash replaced) this to my script at the "Gui, Show" line, but I'm s...
- 02 Jan 2021, 03:28
- Forum: Gaming Help (v1)
- Topic: Setting Gui x/y coordinates with window hook
- Replies: 7
- Views: 2149
Re: Setting Gui x/y coordinates with window hook
Hi, have you looked at CoordMode https://www.autohotkey.com/docs/commands/CoordMode.htm Hopefully, it will help you. Hey, Thanks for the response. I tried adding both CoordMode, ToolTip, Window and then CoordMode, Pixel, Window after SetWinDelay = -1, but neither had any effect. Also tried placing ...
- 01 Jan 2021, 23:52
- Forum: Gaming Help (v1)
- Topic: Setting Gui x/y coordinates with window hook
- Replies: 7
- Views: 2149
Setting Gui x/y coordinates with window hook
Hi, I play poker, and I'm trying to create a very basic gui that attaches to my poker client window and covers up my account balance with a solid box. I'm using the code from this post. #NoEnv #SingleInstance force SetWorkingDir % A_ScriptDir SendMode, Input if not A_IsAdmin Run *RunAs "%A_ScriptFul...