自动热键在全屏游戏上创建一个窗口



如何使用自动热键脚本在全屏应用程序上创建窗口?任何窗口(如果可能),或者至少是脚本创建的窗口。

Andrius,

一个似乎适用于许多全屏游戏的是以下内容:

SoundBeep 1000 , 1000 ; Alert the users
SplashTextOn, 300, 30, Homework, Start your homework NOW!
WinMove, Homework,, 0,0 ; Move the alert screen away from the center
Sleep, 4000 ; wait 4 seconds
SplashTextOff ; remove the text
Return

如果你想让这个互动,你可以使用这样的东西:

!Esc::
SplashTextOn, 250,200,Power Options,S = Sleep`n`rR = Reboot`n`rP = Power down`n`rW = Wait`n`rEsc = keep working`n`r`n`rPC will automatically go to sleep after 10 seconds if no key is pressed!
SetTimer, GoToSleep, Off
Input, CI_KeyVar, I L1 T10
SplashTextOff
if ErrorLevel = Timeout
{
Run C:WindowsSystem32rundll32.exe powrprof.dll`,SetSuspendState 0`,1`,0
return
}
if (CI_KeyVar = "q")
{
  Return
}
if (CI_KeyVar = "s")
{
  Run C:WindowsSystem32rundll32.exe powrprof.dll`,SetSuspendState 0`,1`,0
  Return
}
if (CI_KeyVar = "r")
{
  run, Shutdown.exe /r /t 1 ; Reboot PC
  Return
}
if (CI_KeyVar = "p")
{
  run, Shutdown.exe /s /t 0 ; Shutdown PC
  Return
}
if (CI_KeyVar = "w")
{
SleepTime+=1
inputbox, Sleeptime, Minutes,,,400,110,,,,,%Sleeptime%
Sleeptimer+=%Sleeptime%
MySleeptimer:=Sleeptimer * 60000 ; 60`000 = 1 minute
if MySleeptimer = 0
{
  Return
}
TrayTip, Count Down,`n`nSleeping in %Sleeptimer% minutes`n`nPress Alt + Esc to cancel,10,1
SetTimer, GoToSleep, %Mysleeptimer%
}
Return
GoToSleep:
SetTimer, GoToSleep, Off
TrayTip, Sleep, Started
Sleep, 1000
run C:WindowsSystem32rundll32.exe powrprof.dll`,SetSuspendState 0`,1`,0
return

成功

如果SplashTextOn或SplashImage不起作用,或者Wicked在这里的特定游戏的子-父设置,或者库GPF都不起作用。编辑:我设法为任何全屏应用程序(而不仅仅是一个特定的游戏)获得了上面的子-父方法,如下所示,但Gui仍然有问题:

WinGet, WinHND, ID, A   ;Get Handle of current fullscreen app
Gui,Vol:+0x40000000 -0x80000000 +Owner%WinHND%  ;MAke fullscreen app own our gui

相关内容

  • 没有找到相关文章

最新更新