3个回答
2014-01-22
展开全部
Private Declare Function SetWindowPos Lib "user32" _
(ByVal Hwnd As Long, _
ByVal hWndInsertAfter As Long, _
ByVal x As Long, _
ByVal y As Long, _
ByVal cx As Long, _
ByVal cy As Long, _
ByVal wFlags As Long) As Long '为窗口指定一个新位置和状态
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As Any, _
ByVal lpWindowName As String) As Long
Private Sub Command1_Click()
Const SWP_NOSIZE = &H1 '忽略cx,cy
Const SWP_NOZORDER = &H4 '忽略hWndInsertAfter
Dim mHwnd&
mHwnd& = FindWindow(0&, "无标题.txt - 记事本")
SetWindowPos mHwnd&, 0, 100, 100, 0, 0, SWP_NOZORDER Or SWP_NOSIZE
End Sub
(ByVal Hwnd As Long, _
ByVal hWndInsertAfter As Long, _
ByVal x As Long, _
ByVal y As Long, _
ByVal cx As Long, _
ByVal cy As Long, _
ByVal wFlags As Long) As Long '为窗口指定一个新位置和状态
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As Any, _
ByVal lpWindowName As String) As Long
Private Sub Command1_Click()
Const SWP_NOSIZE = &H1 '忽略cx,cy
Const SWP_NOZORDER = &H4 '忽略hWndInsertAfter
Dim mHwnd&
mHwnd& = FindWindow(0&, "无标题.txt - 记事本")
SetWindowPos mHwnd&, 0, 100, 100, 0, 0, SWP_NOZORDER Or SWP_NOSIZE
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
百事牛
2024-10-22 广告
2024-10-22 广告
百事牛是共享提供商,我们提供可靠有效的服务,适当合理的授权费有利于的继续更新优化。同样的事情,同样的方法,百事牛团队十年磨一剑,始终至聚焦在密码恢复领域,深耕于此,我们已研制出有别于其他公司的算法和运算模式, 百事牛的暴力模式加入了分布式点...
点击进入详情页
本回答由百事牛提供
2014-01-22
展开全部
用move方法!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2014-01-22
展开全部
VBSCall FindColorEx(0,0,1279,1023,"2e646d",1,1,x,y)
If x>=0 and y>=0
MoveToS x,y
MoveRS 0,-10
LeftDownS 1
MoveToS 172,17
LeftUpS 1
Else
EndIf
If x>=0 and y>=0
MoveToS x,y
MoveRS 0,-10
LeftDownS 1
MoveToS 172,17
LeftUpS 1
Else
EndIf
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询