Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
AnswerRe: Server Time Pin
Curtis Schlak.28-Nov-05 3:13
Curtis Schlak.28-Nov-05 3:13 
Questionproblem facing in windows service Pin
raheeli27-Nov-05 17:44
raheeli27-Nov-05 17:44 
AnswerRe: problem facing in windows service Pin
S. Senthil Kumar27-Nov-05 19:21
S. Senthil Kumar27-Nov-05 19:21 
QuestionStatic function Pin
dinh van hai27-Nov-05 17:33
dinh van hai27-Nov-05 17:33 
AnswerRe: Static function Pin
S. Senthil Kumar27-Nov-05 20:00
S. Senthil Kumar27-Nov-05 20:00 
AnswerRe: Static function Pin
dinh van hai27-Nov-05 20:14
dinh van hai27-Nov-05 20:14 
AnswerRe: Static function Pin
Guffa27-Nov-05 21:38
Guffa27-Nov-05 21:38 
QuestionGetProcessesByName - other way? Pin
FreewareFire27-Nov-05 12:49
FreewareFire27-Nov-05 12:49 
Hi together!

I'm currently searching a way to get a Process by it's window title, not by it's classname...

in following code, the GameName would be, e.g. "sol" (means Processname of game "Solitär")
<br />
static ProcessMemoryReaderLib.ProcessMemoryReader pReader;<br />
        static Process[] myProcesses;<br />
<br />
        public static void InitRWCode(string GameName)<br />
        {<br />
            pReader = new ProcessMemoryReaderLib.ProcessMemoryReader();<br />
            myProcesses = Process.GetProcessesByName(GameName);<br />
        }<br />


that's the code i'm currently using...

but i'm looking for something like that:

in this case GameName would be "Solitär" instead of "sol"

<br />
static ProcessMemoryReaderLib.ProcessMemoryReader pReader;<br />
        static Process[] myProcesses;<br />
<br />
        public static void InitRWCode(string GameName)<br />
        {<br />
            pReader = new ProcessMemoryReaderLib.ProcessMemoryReader();<br />
            myProcesses = Process.GetProcessesByWindowTitle(GameName);<br />
        }<br />


Has someone an idea Confused | :confused:

I've already tried the GetWindowThreadProcessId together with the FindWindow, but it returns the wrong ID...

Thx for any suggestions!!!

Greets Ralf

FreewareFire
AnswerRe: GetProcessesByName - other way? Pin
S. Senthil Kumar27-Nov-05 19:56
S. Senthil Kumar27-Nov-05 19:56 
GeneralRe: GetProcessesByName - other way? Pin
FreewareFire28-Nov-05 0:38
FreewareFire28-Nov-05 0:38 
QuestionToolbar Color Pin
fredspv27-Nov-05 12:07
fredspv27-Nov-05 12:07 
QuestionC# DisplayComposeForm for Smartphone Pin
bklynjava127-Nov-05 11:10
bklynjava127-Nov-05 11:10 
QuestionIndexOutOfRangeException with SgmlReader Pin
Liunardu27-Nov-05 8:18
Liunardu27-Nov-05 8:18 
Questioneh, 1 last mouse question... Pin
Sam 200627-Nov-05 8:12
Sam 200627-Nov-05 8:12 
AnswerRe: eh, 1 last mouse question... Pin
Curtis Schlak.27-Nov-05 8:43
Curtis Schlak.27-Nov-05 8:43 
GeneralRe: eh, 1 last mouse question... Pin
Sam 200627-Nov-05 12:40
Sam 200627-Nov-05 12:40 
GeneralRe: eh, 1 last mouse question... Pin
Curtis Schlak.27-Nov-05 13:58
Curtis Schlak.27-Nov-05 13:58 
Questionfrom DataSet to GridView Pin
tray_gator27-Nov-05 4:53
tray_gator27-Nov-05 4:53 
AnswerRe: from DataSet to GridView Pin
Curtis Schlak.27-Nov-05 5:07
Curtis Schlak.27-Nov-05 5:07 
GeneralRe: from DataSet to GridView Pin
tray_gator27-Nov-05 6:10
tray_gator27-Nov-05 6:10 
GeneralRe: from DataSet to GridView Pin
Curtis Schlak.27-Nov-05 7:38
Curtis Schlak.27-Nov-05 7:38 
GeneralRe: from DataSet to GridView Pin
tray_gator27-Nov-05 9:12
tray_gator27-Nov-05 9:12 
GeneralRe: from DataSet to GridView Pin
Curtis Schlak.27-Nov-05 9:23
Curtis Schlak.27-Nov-05 9:23 
Questionanother mouse question (events) Pin
Sam 200627-Nov-05 2:44
Sam 200627-Nov-05 2:44 
AnswerRe: another mouse question (events) Pin
Stanciu Vlad27-Nov-05 5:34
Stanciu Vlad27-Nov-05 5:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.