mirror of
https://github.com/jgpaiva/GridMove.git
synced 2025-09-04 04:12:29 +01:00
First release
This commit is contained in:
BIN
Plugins/.DS_Store
vendored
Normal file
BIN
Plugins/.DS_Store
vendored
Normal file
Binary file not shown.
9
Plugins/CloseWindow.ahk
Normal file
9
Plugins/CloseWindow.ahk
Normal file
@@ -0,0 +1,9 @@
|
||||
;CloseWindow
|
||||
;By jgpaiva
|
||||
;date: January 2007
|
||||
;Function: Close the active window
|
||||
|
||||
#NoTrayIcon
|
||||
|
||||
WinClose,A
|
||||
return
|
36
Plugins/MaximizeWindow.ahk
Normal file
36
Plugins/MaximizeWindow.ahk
Normal file
@@ -0,0 +1,36 @@
|
||||
;MaximizeWindow
|
||||
;By jgpaiva
|
||||
;January 2006
|
||||
;Function: Maximizes windows on the screen where the mouse is
|
||||
SetWinDelay,-1
|
||||
|
||||
#notrayicon
|
||||
CoordMode,Mouse,Screen
|
||||
MouseGetPos,MouseX,MouseY
|
||||
WinGetPos,WinX,WinY,WinW,WinH,A
|
||||
MouseMonitor := GetMonitorNumber(MouseX,MouseY)
|
||||
If (MouseMonitor = "Error")
|
||||
{
|
||||
msgbox,error retreiving monitor number
|
||||
exitapp
|
||||
}
|
||||
SysGet,Monitor,Monitor,%MouseMonitor%
|
||||
;MsgBox,Mouse Position: %MouseX% %MouseY%`nMouse Monitor: %mousemonitor%`nMoving to %Winx% %winy%
|
||||
WinRestore,A
|
||||
WinMove,A,,%MonitorLeft%,%MonitorTop%,%WinW%,%WinH%
|
||||
WinMaximize,A
|
||||
exitapp
|
||||
|
||||
|
||||
GetMonitorNumber(X, Y)
|
||||
{
|
||||
SysGet,monitorcount,MonitorCount
|
||||
Loop,%monitorcount%
|
||||
{
|
||||
SysGet,monitor,Monitor,%A_Index%
|
||||
If (X <= MonitorRight AND X >= MonitorLeft
|
||||
AND Y >= monitorTop AND Y <= monitorBottom)
|
||||
return, %a_index%
|
||||
}
|
||||
return error
|
||||
}
|
17
Plugins/MaximizeWindow_OtherScreen.ahk
Normal file
17
Plugins/MaximizeWindow_OtherScreen.ahk
Normal file
@@ -0,0 +1,17 @@
|
||||
;MaximizeWindow
|
||||
;By jgpaiva
|
||||
;January 2006
|
||||
;Function: Maximizes windows on the screen where the mouse is
|
||||
SetWinDelay,-1
|
||||
|
||||
#notrayicon
|
||||
|
||||
monitor = %1%
|
||||
|
||||
SysGet,Monitor,Monitor,%Monitor%
|
||||
|
||||
WinRestore,A
|
||||
|
||||
WinMove,A,,%MonitorLeft%,%MonitorTop%,%WinW%,%WinH%
|
||||
WinMaximize,A
|
||||
exitapp
|
3
Plugins/MinimizeWindow.ahk
Normal file
3
Plugins/MinimizeWindow.ahk
Normal file
@@ -0,0 +1,3 @@
|
||||
#notrayicon
|
||||
WinMinimize,A
|
||||
return
|
4
Plugins/MousePosition.ahk
Normal file
4
Plugins/MousePosition.ahk
Normal file
@@ -0,0 +1,4 @@
|
||||
CoordMode,Mouse,Screen
|
||||
MouseGetPos, xpos, ypos
|
||||
Msgbox, The cursor is at X%xpos% Y%ypos%
|
||||
return
|
31
Plugins/WindowPositions.ahk
Normal file
31
Plugins/WindowPositions.ahk
Normal file
@@ -0,0 +1,31 @@
|
||||
#notrayicon
|
||||
If 0 != 1
|
||||
return
|
||||
if 1 = store
|
||||
{
|
||||
WinGetClass,WindowClass,A
|
||||
WinGetPos,WindowLeft,WindowTop,WindowWidth,WindowHeight,A
|
||||
IfNotExist,%a_scriptname%.ini
|
||||
FileAppend,,%a_scriptname%.ini
|
||||
IniWrite,%WindowLeft%,%A_ScriptName%.ini,%WindowClass%,WindowLeft
|
||||
IniWrite,%WindowTop%,%A_ScriptName%.ini,%WindowClass%,WindowTop
|
||||
IniWrite,%WindowWidth%,%A_ScriptName%.ini,%WindowClass%,WindowWidth
|
||||
IniWrite,%WindowHeight%,%A_ScriptName%.ini,%WindowClass%,WindowHeight
|
||||
}
|
||||
else if 1 = load
|
||||
{
|
||||
WinGetClass,WindowClass,A
|
||||
WinGetPos,WindowLeft,WindowTop,WindowWidth,WindowHeight,A
|
||||
IniRead,WindowLeft ,%A_ScriptName%.ini,%WindowClass%,WindowLeft,Error
|
||||
IniRead,WindowTop ,%A_ScriptName%.ini,%WindowClass%,WindowTop,Error
|
||||
IniRead,WindowWidth ,%A_ScriptName%.ini,%WindowClass%,WindowWidth,Error
|
||||
IniRead,WindowHeight,%A_ScriptName%.ini,%WindowClass%,WindowHeight,Error
|
||||
if (WindowLeft = "error" OR WindowTop = "error"
|
||||
OR WindowWidth = "error" OR WindowHeight = "error")
|
||||
{
|
||||
msgbox,window not yet stored: %WindowClass%
|
||||
return
|
||||
}
|
||||
WinMove,ahk_class %WindowClass%,,WindowLeft,WindowTop,WindowWidth,WindowHeight
|
||||
}
|
||||
return
|
25
Plugins/WindowPositions.exe.ini
Normal file
25
Plugins/WindowPositions.exe.ini
Normal file
@@ -0,0 +1,25 @@
|
||||
[dopus.lister]
|
||||
WindowLeft=640
|
||||
WindowTop=0
|
||||
WindowWidth=640
|
||||
WindowHeight=770
|
||||
[#32770]
|
||||
WindowLeft=365
|
||||
WindowTop=185
|
||||
WindowWidth=550
|
||||
WindowHeight=400
|
||||
[Vim]
|
||||
WindowLeft=0
|
||||
WindowTop=0
|
||||
WindowWidth=640
|
||||
WindowHeight=464
|
||||
[mIRC]
|
||||
WindowLeft=853
|
||||
WindowTop=464
|
||||
WindowWidth=426
|
||||
WindowHeight=309
|
||||
[IMWindowClass]
|
||||
WindowLeft=2320
|
||||
WindowTop=414
|
||||
WindowWidth=640
|
||||
WindowHeight=426
|
Reference in New Issue
Block a user