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测试过,这样是可以的
不过任务管理器弹出还是会强制置顶 to LS
可以通过API来循环置顶 不知道这样的代码有何应用意义...
页:
1
[2]