Sign in to follow this  
Followers 0
Roly

[Help] Choose which program PID will be used...

4 posts in this topic

I try to create a combo to choose what PID will be used before the program starts. But when I click the Run button, it seems like frozen. :idea:

Please help!

$TheList = GUICtrlCreateCombo("", 150, 160, 70)
$ListPro = ProcessList("program.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 Program is not Workin!!!")
EndIf

$ProgramID = _MemoryOpen($ProccessID)

The following code is working fine but for all windows:

$ProccessID = ProcessExists("program.exe")
$ProgramID = _MemoryOpen($ProccessID)

Share this post


Link to post
Share on other sites



Are you there, JohnOne or Jon :idea:

Please help!

Share this post


Link to post
Share on other sites

Are you there?

Anybody :idea:

Share this post


Link to post
Share on other sites

Roly,

Is the code you posted your entire code?

If it is, you'll never see your combo because you need a parent GUI to display it in, see GuiCreate()

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