Hi all.
i m working on a tool and i need list all processes infos, like this image
i already found on the forum this
https://www.b4x.com/android/forum/threads/windows-taskmanager-running-processes.35390/#post-208179
this already list the processes, but only the name.
1 - Its possible get this infos in B4J?
2 - how can i get the same infos like the image above?
Window Text, Window Class, File Name and Process Id
Update 1
i found this code, with this i can found the .exe name and the window title name, but no the class name
the question now its only, how can i get the class name?
i found this
https://autohotkey.com/board/topic/30323-wingetall-get-all-windows-titleclasspidprocess-name/
but i dont know what language and how convert to b4j
Many Thx
i m working on a tool and i need list all processes infos, like this image
i already found on the forum this
https://www.b4x.com/android/forum/threads/windows-taskmanager-running-processes.35390/#post-208179
this already list the processes, but only the name.
1 - Its possible get this infos in B4J?
2 - how can i get the same infos like the image above?
Window Text, Window Class, File Name and Process Id
Update 1
i found this code, with this i can found the .exe name and the window title name, but no the class name
B4X:
#Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 400
#End Region
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.Show
Dim js As Shell
js.Initialize("js", "tasklist.exe", Array As String("/v"))
js.Run(60000)
End Sub
Sub js_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
If Success Then
Log(StdOut)
Dim m As Matcher = Regex.Matcher("ww - B4J", StdOut)
Dim count As Int
Do While m.Find
Log(m.Match)
count = count + 1
Loop
Log("Count = " & count)
Else
Log(LastException)
End If
End Sub
the question now its only, how can i get the class name?
i found this
https://autohotkey.com/board/topic/30323-wingetall-get-all-windows-titleclasspidprocess-name/
but i dont know what language and how convert to b4j
Many Thx
Last edited: