level 8
lele1894
楼主
RunApp "notepad.exe"
Delay 1000
Hwnd = Plugin.Window.Find(0, "无标题 - 记事本")
Call Plugin.Window.SetClientSize(Hwnd, 200, 200)
Call Plugin.Window.Top(Hwnd, 0)
弹球速度 = 10
宽度 = Plugin.GetSysInfo.GetScreenResolutionX
高度 = Plugin.GetSysInfo.GetScreenResolutionY
Do
If 往左弹 then
窗口横坐标 = 窗口横坐标 -弹球速度
Else
窗口横坐标 = 窗口横坐标 +弹球速度
End If
If 往上弹 Then
窗口纵坐标 = 窗口纵坐标 -弹球速度
Else
窗口纵坐标 = 窗口纵坐标 +弹球速度
End If
If 窗口纵坐标 + 200 > 高度 Then
往上弹 = True
ElseIf 窗口横坐标 + 200 >宽度 Then
往左弹 = True
ElseIf 窗口横坐标 < 0 Then
往左弹 = False
ElseIf 窗口纵坐标 <0 Then
往上弹 = False
End If
Call Plugin.Window.Move(Hwnd, 窗口横坐标, 窗口纵坐标)
Delay 50
Loop
2015年03月21日 10点03分
1
Delay 1000
Hwnd = Plugin.Window.Find(0, "无标题 - 记事本")
Call Plugin.Window.SetClientSize(Hwnd, 200, 200)
Call Plugin.Window.Top(Hwnd, 0)
弹球速度 = 10
宽度 = Plugin.GetSysInfo.GetScreenResolutionX
高度 = Plugin.GetSysInfo.GetScreenResolutionY
Do
If 往左弹 then
窗口横坐标 = 窗口横坐标 -弹球速度
Else
窗口横坐标 = 窗口横坐标 +弹球速度
End If
If 往上弹 Then
窗口纵坐标 = 窗口纵坐标 -弹球速度
Else
窗口纵坐标 = 窗口纵坐标 +弹球速度
End If
If 窗口纵坐标 + 200 > 高度 Then
往上弹 = True
ElseIf 窗口横坐标 + 200 >宽度 Then
往左弹 = True
ElseIf 窗口横坐标 < 0 Then
往左弹 = False
ElseIf 窗口纵坐标 <0 Then
往上弹 = False
End If
Call Plugin.Window.Move(Hwnd, 窗口横坐标, 窗口纵坐标)
Delay 50
Loop