板 1- 前 次 新 レス
スクリプト投稿スレ
[56]#2:05/01/19 14:28 ID:9gBWK9zY
sub_GetDesktopPositon:
{
SysGet, Monitor, Monitor
WinGetPos, x,y,w,h, ahk_class Shell_TrayWnd
DesktopLeft = %MonitorLeft%
DesktopRight = %MonitorRight%
DesktopTop = %MonitorTop%
DesktopBottom = %MonitorBottom%
If h >= %MonitorBottom% ;右or左
{
If x <= %MonitorLeft% ;左
{
DesktopLeft = %w%
DesktopLeft += %x%
}
Else ;右
{
DesktopRight = %x%
}
}
Else if y <= %MonitorTop% ;上
{
DesktopTop = %h%
DesktopTop += %y%
}
Else ;下
{
DesktopBottom = %y%
}
return
}
#1と書いたんでトリップになっちまったよorz
前 次