C# select process... need help...

Discussion in 'Programming General' started by Spikey69, Feb 26, 2007.

C# select process... need help...
  1. Unread #1 - Feb 26, 2007 at 7:46 PM
  2. Spikey69
    Referrals:
    0

    Spikey69 Guest

    C# select process... need help...

    Hey guys!
    I made a real conveniant autotalker-tool.
    It has presets with your favorite text, It's always on top, transparant so it doesn't block your view, it can add your name or nick at the end of the text, it can type in different speeds, it leave a RANDOM number of ms between every letter so it looks extremely human, it adds a RANDOM number of "!"'s at the end of each sentence, hell it even makes typo's and corrects them...
    It totally kicks ass except for one detail...
    I'm having trouble selecting the runescape process before sending the keystrokes to it... :'(
    I could easely avoid this problem by sending an ALT+TAB before starting to autotype, like a human might do... but it's a bit arbitrary...
    Anyone has with more experience out there that could help me out??? Maybe call all open processes in an array then put focus on the correct process??
     
  3. Unread #2 - Mar 14, 2007 at 3:09 AM
  4. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    C# select process... need help...

    Maybe you should start the RS process itself within the C# app,

    Code:
    Process rs = new process;
    rs.startinfo.run = "iexplore";
    rs.startinfo.args = "http://www.runescape.com/whatever";
    rs.start();
    then try to select it from there?

    Not sure if that helps but try it.
     
< Paper, Scissors, Rock -- Small problem, but still works | Microsoft Visual C#, C++, Basic Express Editions [All Free!] >

Users viewing this thread
1 guest


 
 
Adblock breaks this site