Results 1 to 11 of 11

Thread: How can I send messages to other apps?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    How can I send messages to other apps?

    Let's say I want to hide a process or I want to change it's window mode (normal, minimized, etc)... How can I do this?
    I've been searching for it but I couldnt find anything so far.


  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    I was trying to do something similar. I could'nt find a way to do it in .NET, so I had to use the API.
    Dont gain the world and lose your soul

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by DevGrp
    I was trying to do something similar. I could'nt find a way to do it in .NET, so I had to use the API.
    But there HAS to be a way!!!!!!!!

  4. #4

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    anyone?

  5. #5
    Member Aerials's Avatar
    Join Date
    Jul 2002
    Location
    Chile
    Posts
    50
    u mean like those msn addons and sc hacks?

  6. #6

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Aerials
    u mean like those msn addons and sc hacks?
    well dunno exactly....never used any of them
    Well let's say I want to hide an app/minimize it or whatever... I need to send a message to it.... I could do it in vb6 with some APIs but I'de like to aviod APIs if possible

  7. #7
    Member
    Join Date
    Jul 2002
    Posts
    49
    Do you mean to change the window state of a program you wrote or someone elses?

  8. #8

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Matt02
    Do you mean to change the window state of a program you wrote or someone elses?
    someone elses

  9. #9
    Member
    Join Date
    Jul 2002
    Posts
    49
    I've been looking and it seems you could process the windows message stack to send and recieve messages in .net, problem is I don't know how you could determine the handle of other windows in .net. So I think you are going to have to use api calls.

  10. #10

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Matt02
    I've been looking and it seems you could process the windows message stack to send and recieve messages in .net, problem is I don't know how you could determine the handle of other windows in .net. So I think you are going to have to use api calls.
    REALLY!? how?! tell me!!!!!!! PLZ!

    I'm using processes and I can get the handle of it with Process.Handle ()....tell me how you do it
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  11. #11
    Member
    Join Date
    Jul 2002
    Posts
    49

    Unhappy

    Sorry about that, I was wrong. You can process the windows message stack to recieve messages, but it looks like microsoft dosen't want you to be able to send messages to the message stack using .net since its a little bit of a security risk.
    Oh well, looks like you have to use the sendmessage api call.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width