Jump to content

How to copy taskmgr.exe to Gui


Recommended Posts

$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
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...