Jump to content
Sign in to follow this  

How to copy taskmgr.exe to Gui

Recommended Posts


OK.. i want to se all process that are running on my computer from my GUI ... how to do this?

Share this post

Link to post
Share on other sites

$Combo1 = GUICtrlCreateCombo("", 32, 32, 161, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL, $WS_VSCROLL))
$l = ProcessList()
for $i = 1 to $l[0][0]
    if StringInStr($l[$i][0],".exe") Then GUICtrlSetData(-1, $l[$i][0])

This is to put the processes into a ComboBox. The GUI isn't created in this snippet - you will have to do that on your own. Also, you can easily replace the ComboBox with another GUI control (like a ListBox)

Edit: also note that, if you want the information to update when a process closes or a new one is created, you will have to code that separately.

Edited by improbability_paradox

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.