Window resize and placement

Posts 1–3 of 3 · Page 1 of 1
Window resize and placement
Hi folks,

since almost everyone here is using AutoHotKey I have written a little script which supports me in starting my fishing sessions.
I have 4 or sometimes 6 clients open which fishing simultaneously.

With this script the placement and resizing (for 7's Fishing Bot auto drop of boots) has been solved with [Alt]-[Ctrl]-[1] to [Alt]-[Ctrl]-[6] and based on a resolution of 1920x1080

Code:
 ----------------------------------------------------------------------------------
|          |                       |                         |                     |
|          |                       |                         |                     |
|          |                       |                         |                     |
|          |   [Alt]-[Ctrl]-[5]    |    [Alt]-[Ctrl]-[1]     |   [Alt]-[Ctrl]-[2]  |
|          |                       |                         |                     |
|          |                       |                         |                     |
|          |                       |                         |                     |
|           ----------------------- ------------------------- ---------------------
|          |                       |                         |                     |
|          |                       |                         |                     |
|          |                       |                         |                     |
|          |   [Alt]-[Ctrl]-[6]    |    [Alt]-[Ctrl]-[3]     |  [Alt]-[Ctrl]-[4]   |
|          |                       |                         |                     |
|          |                       |                         |                     |
|          |                       |                         |                     |
|           ----------------------- ------------------------- ---------------------
|                                                                                  |
|                                                                                  |
|                                                                                  |
 ----------------------------------------------------------------------------------
The script itself is very trivial.
But i have nothing similar found here.
Code:
!^1::
	WinMove,A,,768,0,576,432
	return

!^2::
	WinMove,A,,1344,0,576,432
	return

!^3::
	WinMove,A,,768,432,576,432
	return

!^4::
	WinMove,A,,1344,432,576,432
	return

!^5::
	WinMove,A,,192,0,576,432
	return

!^6::
	WinMove,A,,192,432,576,432
	return
Have fun!
Hi i made some improvements i hope you don't mind it, i like your script its very simple and easy to use ^^

Code:
/*
Script name: Window resize and placement
Made by:  hwd 
Date: 30/08/2015
Link:
http://www.mpgh.net/forum/showthread.php?t=1017950


! = ALT Key
^ = CTRL Key

For example:
!^1 = ALT and CTRL  Down + 1 key to move and rename the Active Trove window


Winmove Help link:
http://ahkscript.org/docs/commands/WinMove.htm
Parameters:
WinMove, WinTitle, WinText, X, Y [, Width, Height, ExcludeTitle, ExcludeText]

WinSetTitle Help link:
http://ahkscript.org/docs/commands/WinSetTitle.htm#WinSetTitle
Parameters:
WinSetTitle, WinTitle, WinText, NewTitle [, ExcludeTitle, ExcludeText]

How do use this script or any other Autohtokey script:
1) Download Autohotkey (http://ahkscript.org/download/ahk-install.exe)
2) Install Autohotkey 64 or 32 Bits.
3) Copy the Code.
4) Paste it in to notepad or any other text editor you use
5) Save it as "Window resize and placement"
6) Double click at "Window resize and placement.ahk"
7) Now its running, you should see a small icon with a "H" on it in the corner of the Taskbar/Startbar.

*/

#SingleInstance, Force

!^1::Trove_Mover("768","0","576","432","Trove 1")
!^2::Trove_Mover("1344","0","576","432","Fisher")
!^3::Trove_Mover("768","432","576","432","Mama Luigi")
!^4::Trove_Mover("1344","432","576","432","Fisher 90000")
!^5::Trove_Mover("192","0","576","432","sexy")
!^6::Trove_Mover("192","0","576","432","Im a bot")

Trove_Mover(A,B,C,D,Nam){
WinMove,A,,%A%,%B%,%C%,%D%
WinSetTitle,A,,%Nam%
}
return
Good job, a x8 x10 version would be really nice.
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?