fork download
  1. QQ:=GetBrowersPID()
  2. StringSplit, QQArray, QQ, %A_Space%
  3. ; msgbox, %QQ%
  4. ; msgbox, %QQArray1% %QQArray2% %QQArray3% %QQArray4% %QQArray5% %QQArray6%
  5. GetBrowersPID(){
  6. CMD_LINE = "C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE"
  7. strProcessName := "iexplore.exe"
  8. for process in ComObjGet("winmgmts:").ExecQuery("Select * from Win32_Process WHERE Name = '" strProcessName "'"){
  9. LIST := A_INDEX
  10. CMD_LIST%A_INDEX% := process.CommandLine
  11. PID_LIST%A_INDEX% := process.ProcessID
  12. }
  13. PIDArray := ""
  14. loop, %LIST% {
  15. CMD := CMD_LIST%A_INDEX%
  16. PID := PID_LIST%A_INDEX%
  17. If (InStr(CMD, CMD_LINE)) {
  18. PIDArray .= PID A_Space
  19. }
  20. }
  21. Return %PIDArray%
  22. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
QQ:=GetBrowersPID()
^
prog.c:1:3: error: expected ';' after top level declarator
QQ:=GetBrowersPID()
  ^
  ;
prog.c:1:4: error: expected identifier or '('
QQ:=GetBrowersPID()
   ^
prog.c:3:3: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
; msgbox, %QQ%
  ^
prog.c:3:11: error: expected identifier or '('
; msgbox, %QQ%
          ^
prog.c:3:10: error: expected ';' after top level declarator
; msgbox, %QQ%
         ^
         ;
prog.c:4:3: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
; msgbox, %QQArray1% %QQArray2% %QQArray3% %QQArray4% %QQArray5% %QQArray6%
  ^
prog.c:4:11: error: expected identifier or '('
; msgbox, %QQArray1% %QQArray2% %QQArray3% %QQArray4% %QQArray5% %QQArray6%
          ^
prog.c:4:10: error: expected ';' after top level declarator
; msgbox, %QQArray1% %QQArray2% %QQArray3% %QQArray4% %QQArray5% %QQArray6%
         ^
         ;
3 warnings and 6 errors generated.
stdout
Standard output is empty