Results 1 to 13 of 13
  1. #1
    Withoutwings's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    The netherlands
    Posts
    118
    Reputation
    10
    Thanks
    15
    My Mood
    Angelic

    [Help]Sending text to a program, without having it on the foreground via hotkey

    Hey guys, hope you can help me out, I'm busy making a Bindtool which let's you bind a key and sends the text in a textbox to a program. But I'm stuck at the part where it let's you send the text in the textbox to the program with a hotkey, so I hope someone here could help me out.. Please let me know quick (: and thanks in advance since you're spending your time for me :'D

    Crushing all in it's path, 'cause I do not think we're invincible.

  2. #2
    willrulz188's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Ohio?
    Posts
    1,786
    Reputation
    35
    Thanks
    231
    My Mood
    Amazed
    you mean like sendkeys?

    if so google (how to make a spammer in vb.net)
    Question ALL statements! ?
    You're in denial that you're in denial. ?
    [img]https://i360.photobucke*****m/albums/oo45/blood188/Untitled-3.jpg?t=1284590977[/img]

  3. #3
    Withoutwings's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    The netherlands
    Posts
    118
    Reputation
    10
    Thanks
    15
    My Mood
    Angelic
    Quote Originally Posted by willrulz188 View Post
    you mean like sendkeys?

    if so google (how to make a spammer in vb.net)
    No not like a spammer. I need it to let it send it to the process which is chosen, and then send it from where-ever the user is. (not having to select the chosen program and use the hotkey)

    Crushing all in it's path, 'cause I do not think we're invincible.

  4. #4
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    This is what you need:

    pinvoke.net: SendMessage (user32)

    This API is used to communicate between different objects / windows. GL.

  5. #5
    StRaXD's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Under your bed...
    Posts
    218
    Reputation
    17
    Thanks
    21
    My Mood
    Amazed
    Something like :



    Credits for the picture to Nathan...

  6. #6
    Withoutwings's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    The netherlands
    Posts
    118
    Reputation
    10
    Thanks
    15
    My Mood
    Angelic
    Quote Originally Posted by Hassan View Post
    This is what you need:

    pinvoke.net: SendMessage (user32)

    This API is used to communicate between different objects / windows. GL.
    thank you.

    Edit: Still not figured out ):

    Edit2:Yes like that. Could you help me?
    Last edited by Jason; 02-22-2011 at 04:29 PM.

    Crushing all in it's path, 'cause I do not think we're invincible.

  7. #7
    RedCell's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    I've mad something like this Bf a while ago.
    Get Like Me!

  8. #8
    Withoutwings's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    The netherlands
    Posts
    118
    Reputation
    10
    Thanks
    15
    My Mood
    Angelic
    Quote Originally Posted by RedCell View Post
    I've mad something like this Bf a while ago.
    well, help me then?

    Crushing all in it's path, 'cause I do not think we're invincible.

  9. #9
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    With SendMessage I'm pretty sure you've got to access the handle of the textarea in your desired project, I know when I made a simple one for notepad, you get the main window handle, then find the handle of the "edit" area, then set the text. You'd need to figure out the new processes "edit" area (where the text is written) and then get its handle to send the message.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  10. The Following User Says Thank You to Jason For This Useful Post:

    Withoutwings (02-23-2011)

  11. #10
    Withoutwings's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    The netherlands
    Posts
    118
    Reputation
    10
    Thanks
    15
    My Mood
    Angelic
    Ok, so in my program I can only make this work for one or other known programs which I know the "edit" area from?(In my program I let the user select the .exe he/she wants and I want to send the text from textbox1 to that program)

  12. #11
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by Withoutwings View Post
    Ok, so in my program I can only make this work for one or other known programs which I know the "edit" area from?(In my program I let the user select the .exe he/she wants and I want to send the text from textbox1 to that program)
    Well, you can loop through the controls of each process. But I am not really sure if you can get their type just by their Handle. So, till then you gotta hard code it.

  13. The Following User Says Thank You to Hassan For This Useful Post:

    Withoutwings (02-23-2011)

  14. #12
    Withoutwings's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    The netherlands
    Posts
    118
    Reputation
    10
    Thanks
    15
    My Mood
    Angelic
    Ok well thanks, and also Jason 'f course (:

    /requesting close.

    Crushing all in it's path, 'cause I do not think we're invincible.

  15. #13
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Closed by request.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)