朱雅琼 发表于 2010-8-3 08:28:03

怎么才能让窗口在运行全屏游戏时置顶

怎么才能让窗口在运行CS,穿越火线之类的全屏游戏时,置顶,也就是可能在游戏上面显示。。

我试过了。。winsetontop 和 _WinAPI_SetWindowPos($Form1, -1, 0, 0, 0, 0, 3)都没用

3mile 发表于 2010-8-3 09:39:38

纯3D游戏时应该调用DX来置顶吧。
纯属猜测,未经深思。

yarsye 发表于 2010-8-3 09:46:15

全屏时置顶?这个真没试过

xyold1 发表于 2010-8-3 11:07:41

以前看电影将窗口置顶,再开CS,电影能在游戏上显示

menfan1 发表于 2010-8-3 13:51:04

_WinAPI_SetWindowPos这个没用就不知道啦呵呵

tryhi 发表于 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?mod=viewthread&tid=17261&highlight=%B3%AC%BC%B6%D6%C3%B6%A5由akmm88所写
页: [1]
查看完整版本: 怎么才能让窗口在运行全屏游戏时置顶