L3G3NdKillEr Posted October 6, 2007 Share Posted October 6, 2007 winminimizeall() can hide all windows and game but it can't restore game with this Winminimizeallundo() but restore other windows. i want if winminimize then in my next func it can restore win. CODE#include <GUIConstants.au3> HotKeySet("3", "Khurram") WinMinimizeAll() $pid = ProcessExists("importanta.exe") if $pid then Processclose($pid) EndIf $Minutes = 1; will wait 1 minutes Local $10Count = 0, $begin = TimerInit() While $Minutes > $10Count $dif = TimerDiff($begin) $dif2 = StringLeft($dif, StringInStr($dif, ".") -1) $Count = int($dif/2000) Sleep(1000) SoundPlay(@WindowsDir & "\media\chord.wav") $10Count = Int($Count / 10) SplashTextOn("..", $10Count & "..CONTINUED:" & $Count, 600, 70, 90, 350, 1, "Comic Sans Ms",40 ,10) if $10count = 1 Then If ProcessExists("CT3.exe") Then ProcessClose("CT3.exe") EndIf If ProcessExists("CRAZY.exe") Then ProcessClose("CRAZY.exe") EndIf If ProcessExists("motogp.exe") Then ProcessClose("motogp.exe") EndIf If ProcessExists("prism3d.exe") Then ProcessClose("prism3d.exe") EndIf If ProcessExists("gta_sa.exe") Then ProcessClose("gta_sa.exe") EndIf If ProcessExists("KillSwitch.exe") Then ProcessClose("KillSwitch.exe") EndIf If ProcessExists("ROCKMANX8.exe") Then ProcessClose("ROCKMANX8.exe") EndIf If ProcessExists("NFSC.exe") Then ProcessClose("NFSC.exe") EndIf If ProcessExists("Hod2.exe") Then ProcessClose("Hod2.exe") EndIf If ProcessExists("At Worlds End.exe") Then ProcessClose("At Worlds End.exe") EndIf If ProcessExists("TMNTGame.exe") Then ProcessClose("TMNTGame.exe") EndIf If ProcessExists("speed2demo.exe") Then ProcessClose("speed2demo.exe") EndIf EndIf Sleep(20) WEnd Run("importanta.exe") Func khurram() WinMinimizeAllUndo() run("p1.exe") EndFunc ==> Exit i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================> Link to comment Share on other sites More sharing options...
Nahuel Posted October 6, 2007 Share Posted October 6, 2007 Did you try using WinSetState for the game window only? Link to comment Share on other sites More sharing options...
L3G3NdKillEr Posted October 7, 2007 Author Share Posted October 7, 2007 i understand wat i the main problem. game title cannot match means if the title of game is motogp so it can't detecet motogp. i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================> Link to comment Share on other sites More sharing options...
sandin Posted October 7, 2007 Share Posted October 7, 2007 (edited) use WinSetState() as Nahuel suggested, but for matching put Opt("WinTitleMatchMode", 2) in the beginning of the script, so it'll recognize any window that contains "motogp" in it's title, so it should recognize and minimize/restore it. Edited October 7, 2007 by sandin Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
i542 Posted October 7, 2007 Share Posted October 7, 2007 use WinSetState() as Nahuel suggested, but for matching put Opt("WinTitleMatchMode", 2) in the beginning of the script, so it'll recognize any window that contains "motogp" in it's title, so it should recognize and minimize/restore it.Even better idea is to use AutoIt Window Info Tool I can do signature me. Link to comment Share on other sites More sharing options...
L3G3NdKillEr Posted October 7, 2007 Author Share Posted October 7, 2007 huh..., how u use autoit window info in game screen. i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================> Link to comment Share on other sites More sharing options...
BrettF Posted October 7, 2007 Share Posted October 7, 2007 huh...,how u use autoit window info in game screen. Who knows... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
rasim Posted October 7, 2007 Share Posted October 7, 2007 [q]huh..., how u use autoit window info in game screen. [/q] Use Alt + Tab Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now