Nov 15, 2015 Replies: 1 This will display the current pid of the running application. Code: Copy Dim jo As JavaObject jo.InitializeStatic("java.lang.management.ManagementFactory") Dim pid As String = jo.RunMethodJO("getRuntimeMXBean",Null).RunMethod("getName",Null) Log("this pid : " & pid.SubString2(0,pid.IndexOf("@"))) Click to expand...
This will display the current pid of the running application. Code: Copy Dim jo As JavaObject jo.InitializeStatic("java.lang.management.ManagementFactory") Dim pid As String = jo.RunMethodJO("getRuntimeMXBean",Null).RunMethod("getName",Null) Log("this pid : " & pid.SubString2(0,pid.IndexOf("@")))
R Roycefer Well-Known Member Licensed User Longtime User Nov 16, 2015 #2 The jAWTRobot library will also provide this information.