Roly Posted May 19, 2010 Share Posted May 19, 2010 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. 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) Link to comment Share on other sites More sharing options...
Roly Posted May 19, 2010 Author Share Posted May 19, 2010 Are you there, JohnOne or Jon Please help! Link to comment Share on other sites More sharing options...
Roly Posted May 20, 2010 Author Share Posted May 20, 2010 Are you there? Anybody Link to comment Share on other sites More sharing options...
ResNullius Posted May 21, 2010 Share Posted May 21, 2010 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() 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