• Visit Rebornbuddy
  • Need to know swtor PIDs assosiated with current buddywing

    Discussion in 'Community Developer Forum' started by alexruler, Feb 12, 2014.

    1. alexruler

      alexruler New Member

      Joined:
      Jan 2, 2014
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      0
      For mount at the moment is using PostMessage(...) for example in Walter's or Joe's code. I thnink they are assuming that there is only a single swtor, because they send vk_key to ALL swtor PIDs.
      I try to find out to which 2 swtor PIDs is associated curently buddewing. I found 2 classes ProcessSelector and SelectorProcess, but i donkt know the objects.

      Any help would be nice.

      Thx in advance.

      Alex
       
    2. walter

      walter Active Member

      Joined:
      Jun 25, 2012
      Messages:
      1,112
      Likes Received:
      10
      Trophy Points:
      38
      I don't have an answer now but lets see if I can figure/get you one.

      Walter
       
    3. alexruler

      alexruler New Member

      Joined:
      Jan 2, 2014
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      0
      Thx Walter for attention,
      it is not so important now.
      I found so "quick and durty" solution:
      with dependence of character name and swtor window name. I know the name of swtor isboxer window and i know characters names. In code i check the character name and search for appropriate swtor window , then get PID.

      Mfg Alexander
       
    4. Rostol

      Rostol Member

      Joined:
      Jul 19, 2014
      Messages:
      95
      Likes Received:
      1
      Trophy Points:
      8
      This is how its done on Joe's

      Code:
       foreach (Process proc in Process.GetProcesses()) if (proc.ProcessName.Contains("swtor") && proc.MainWindowTitle.Contains("Star Wars"))
                      if (proc.PrivateMemorySize64 > TorMem)
                      {
      
                          SWTORPID = proc.Id;       // <--- PID HERE ! 
                          TorMem = (int)proc.NonpagedSystemMemorySize64;
                          SWTORHWnd = proc.MainWindowHandle;
                      }
      
      i have nothing to do with this code, just copy/pasted here. I just knew where it was because Joe's kept resetting the processor affinity to a combination that gave me lag.

      Edit: i know this is a question from a few months ago, i just dont like unanswered questions that can be useful to a newcomer (like me :) )
       
      Last edited: Aug 1, 2014

    Share This Page