Sign in to follow this  
Followers 0
Roly

Choose game windows before run

3 posts in this topic

I tried to help user to choose proccess before run the program. When I run the button, the program seems like freeze :idea:

Please help!

$TheList = GUICtrlCreateCombo("", 150, 160, 70)
$ListPro = ProcessList("game.exe")
$TheAOL = ""
$ProccessID = ""

If $ListPro[0][0] > 0 Then
    For $i = 1 to $ListPro[0][0] + 1
        If $i = $ListPro[0][0] + 1 Then
            ExitLoop
        Else
            $TheAOL &= $ListPro[$i][1] & "|"
            $i = $i + 1
        EndIf
    Next
    GUICtrlSetData($TheList, $ListPro, '')
    $ProccessID = GUICtrlRead(-1)
    Else
        MsgBox(0, "Warning!", "The Game is not Workin!!!")
EndIf

$GameID = _MemoryOpen($ProccessID)

If I use this, it work but for all the windows of game.exe:

$ProccessID = ProcessExists("game.exe")
$GameID = _MemoryOpen($ProccessID)

Share this post


Link to post
Share on other sites



You shouldn't expect too much replies as described by THIS topic.

Share this post


Link to post
Share on other sites

Thanks for reply. I just think not show the game name is ok.

I'm new here, sorry about that and I'll try other way!

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