找回密码
 加入
搜索
查看: 2878|回复: 5

[系统综合] 怎么才能让窗口在运行全屏游戏时置顶

  [复制链接]
发表于 2010-8-3 08:28:03 | 显示全部楼层 |阅读模式
怎么才能让窗口在运行CS,穿越火线之类的全屏游戏时,置顶,也就是可能在游戏上面显示。。

我试过了。。winsetontop 和 _WinAPI_SetWindowPos($Form1, -1, 0, 0, 0, 0, 3)  都没用
发表于 2010-8-3 09:39:38 | 显示全部楼层
纯3D游戏时应该调用DX来置顶吧。
纯属猜测,未经深思。
发表于 2010-8-3 09:46:15 | 显示全部楼层
全屏时置顶?这个真没试过
发表于 2010-8-3 11:07:41 | 显示全部楼层
以前看电影将窗口置顶,再开CS,电影能在游戏上显示
发表于 2010-8-3 13:51:04 | 显示全部楼层
_WinAPI_SetWindowPos这个没用就不知道啦呵呵
发表于 2010-8-3 15:39:36 | 显示全部楼层
#cs ----------------------------------------------------------------------------

AutoIt Version: 3.3.6.1
Author:         myName

Script Function:
        Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
#Include <WinAPI.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("我就是这么犀利,谁能挡住我?还有谁?", 623,200, 192, 114)
GUISetState(@SW_SHOW)

While 1
        $hw=_WinAPI_GetForegroundWindow()
                If $hw<>$Form1 Then
                        _WinAPI_SetWindowPos($hw, -2, 0, 0, 0, 0, 3)
                    
                EndIf
                _WinAPI_SetWindowPos($Form1, -1, 0, 0, 0, 0, 3)
                $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd
原文出自sanmoking 的http://www.autoitx.com/forum.php ... C%BC%B6%D6%C3%B6%A5由akmm88所写
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-22 01:42 , Processed in 0.078713 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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