Sign in to follow this  
Followers 0
L3G3NdKillEr

winminimize

8 posts in this topic

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=----=========================>

Share this post


Link to post
Share on other sites



Did you try using WinSetState for the game window only?

Share this post


Link to post
Share on other sites

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=----=========================>

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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=----=========================>

Share this post


Link to post
Share on other sites

[q]huh...,

how u use autoit window info in game screen. [/q]

Use Alt + Tab

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0