找回密码
 加入
搜索
楼主: qq4045728

GUICreate 失去激活问题。

[复制链接]
发表于 2009-7-21 19:08:26 | 显示全部楼层
WinActivate('autoit cn')
WinSetOnTop('autoit cn','',1)
WinActivate('UltraISO')
WinSetOnTop('UltraISO','',1)
_SetParent('autoit cn', 'UltraISO')
Func _SetParent($TitleP, $TitleC)
    If WinExists($TitleP) Then
        If WinExists($TitleC) Then
            $HwndP = WinGetHandle($TitleP)
            $HwndC = WinGetHandle($TitleC)
                        DllCall("user32.dll", "str", "SetParent", "HWnd", $HwndP, "HWnd", $HwndC)
            Return 1
        Else
            Return -1
        EndIf
    Else
        Return -1
    EndIf
EndFunc
测试过,这样是可以的
不过任务管理器弹出还是会强制置顶
发表于 2009-7-21 20:58:03 | 显示全部楼层
to LS
可以通过API来循环置顶
发表于 2009-7-21 21:20:57 | 显示全部楼层
不知道这样的代码有何应用意义...
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-6 11:24 , Processed in 0.065900 second(s), 13 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表