Thanks man i love you :) it works to get process list but i modified gui a bit
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 387, 187, 293, 233)
$lstBTN = GUICtrlCreateButton("Detect running windows", 8, 8, 145, 25)
$Button2 = GUICtrlCreateButton("Start bot", 160, 8, 105, 25)
$Button3 = GUICtrlCreateButton("Toggle pause", 272, 8, 105, 25)
$procLST = GUICtrlCreateList("", 8, 40, 145, 136)
;$exeTXT = GUICtrlCreateInput("game.exe", 16, 168, 137, 21)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $lstBTN
GUICtrlSetData($procLST, '')
$proc = ProcessList("game.exe")
For $i = 1 To UBound($proc) - 1
$node = $proc[$i][0] & ' - PID: ' & $proc[$i][1]
GUICtrlSetData($procLST, $node)
Next
EndSwitch
WEnd
Now can you help when i click "Detect running windows" i get list, now how to make it when i chose window i want to start and press start button to get focus on chosen window and activate it ? My last wish :)