First release

This commit is contained in:
João Paiva
2013-02-22 09:56:59 +00:00
parent aa6de40d84
commit 46effeb352
89 changed files with 13236 additions and 1 deletions

BIN
Plugins/.DS_Store vendored Normal file

Binary file not shown.

9
Plugins/CloseWindow.ahk Normal file
View File

@@ -0,0 +1,9 @@
;CloseWindow
;By jgpaiva
;date: January 2007
;Function: Close the active window
#NoTrayIcon
WinClose,A
return

View 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
}

View 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

View File

@@ -0,0 +1,3 @@
#notrayicon
WinMinimize,A
return

View File

@@ -0,0 +1,4 @@
CoordMode,Mouse,Screen
MouseGetPos, xpos, ypos
Msgbox, The cursor is at X%xpos% Y%ypos%
return

View 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

View 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