116154801 发表于 2010-7-21 00:02:08

[已解决]标题在任务条中隐藏问题。

本帖最后由 116154801 于 2010-7-21 00:48 编辑





自己研究了一天了,能力有限了,恳请各位帮帮忙啦。先谢谢各位了,

解决方法:#include <WinAPI.au3>

$GWL_HWNDPARENT = -8
$_TxtTitle = "一流游戏变速器"
$_Program = "Program Manager"
;Run("notepad.exe")
WinWait($_TxtTitle)
$HwndP = WinGetHandle($_TxtTitle)
$HwndC = WinGetHandle($_Program)
MsgBox(0, "", "隐藏")
_WinAPI_SetWindowLong($HwndP, $GWL_HWNDPARENT, $HwndC)
MsgBox(0, "", "显示")
_WinAPI_SetWindowLong($HwndP, $GWL_HWNDPARENT, 0)
Exit已经解决了,谢谢 bing614 提供的帮助
http://www.autoitx.com/forum.php?mod=viewthread&tid=1410&highlight=%D2%FE%B2%D8

thesnow 发表于 2010-7-21 00:17:34

设置父窗口为一个有效的窗口句柄,例如:桌面

116154801 发表于 2010-7-21 00:32:06

回复 2# thesnow


    太高深了,我不理解捏。哎

116154801 发表于 2010-7-21 00:43:28

$Run=Run("notepad.exe")
WinWait("无标题 - 记事本")
MsgBox(0,"","注意任务栏")
_SetParent("无标题 - 记事本", "Program Manager")
Func _SetParent($TitleP, $TitleC)
    If WinExists($TitleP) Then
      If WinExists($TitleC) Then
            $HwndP = WinGetHandle($TitleP)
            $HwndC = WinGetHandle($TitleC)
            $user32 = DllOpen("user32.dll")
            DllCall($user32, "str", "SetParent", "HWnd", $HwndP, "HWnd", $HwndC)
            Return 1
      Else
            Return -1
      EndIf
    Else
      Return -1
    EndIf
EndFunc这个可以隐藏一些的软件,可是就没办法隐藏一流游戏变速器,各位帮帮忙啦。

116154801 发表于 2010-7-21 00:46:05

#include <WinAPI.au3>

$GWL_HWNDPARENT = -8
$_TxtTitle = "一流游戏变速器"
$_Program = "Program Manager"
;Run("notepad.exe")
WinWait($_TxtTitle)
$HwndP = WinGetHandle($_TxtTitle)
$HwndC = WinGetHandle($_Program)
MsgBox(0, "", "隐藏")
_WinAPI_SetWindowLong($HwndP, $GWL_HWNDPARENT, $HwndC)
MsgBox(0, "", "显示")
_WinAPI_SetWindowLong($HwndP, $GWL_HWNDPARENT, 0)
Exit已经解决了,谢谢 bing614 提供的帮助
http://www.autoitx.com/forum.php?mod=viewthread&tid=1410&highlight=%D2%FE%B2%D8

qq82015930 发表于 2010-7-21 14:27:15

呵呵~!! 这个好玩
页: [1]
查看完整版本: [已解决]标题在任务条中隐藏问题。