Jump to content

Choose game windows before run

Recommended Posts

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
            $TheAOL &= $ListPro[$i][1] & "|"
            $i = $i + 1
    GUICtrlSetData($TheList, $ListPro, '')
    $ProccessID = GUICtrlRead(-1)
        MsgBox(0, "Warning!", "The Game is not Workin!!!")

$GameID = _MemoryOpen($ProccessID)

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

$ProccessID = ProcessExists("game.exe")
$GameID = _MemoryOpen($ProccessID)
Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...