Results 1 to 6 of 6

Thread: Window Handles

  1. #1

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    Is there a any good tutorials on how to get window handles. I think thats what they are called.

    ------------------
    Sincerely,
    Chris
    :-) ;-)
    Email [email protected]

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363

    Post

    Chris,

    I've picked up a lot on handles from searching the forum (a search above on 'window handle' returned 75 items) and from posting specific questions.

    Hope that helps. If there's something specific you need to know now, let us know.

    Regards,
    Wade

  3. #3

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    I wanted to make a program that read all the windows that were open and changed the name of all the programs in the title bar. But I know how to change the title bar name I just don't know how to get all the ones that are open so I figured maybe I would find it in a tutorial. Well thanks

    ------------------
    Sincerely,
    Chris
    :-) ;-)
    Email [email protected]

  4. #4
    Member
    Join Date
    Nov 1999
    Location
    Dover, NH
    Posts
    54

    Post

    Sounds kind of virus like my friend...

  5. #5

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    Nope not a Virus it is for those stupid programs that pay you for being on the internet explorer and my friend does them and he was wondering if I could make him a program that changed the name of the title bars of everything to internet explorer so that he could go play a game or something while being conected to the net and still get paid for it. Well thanks anyway

    ------------------
    Sincerely,
    Chris
    :-) ;-)
    Email [email protected]

  6. #6
    Guest
    That's easy to do. Changes the handle of every caption. This is good for those pay programs. Here's the code:

    'Declarations

    Private Declare Function SetWindowText Lib "user32" _
    Alias "SetWindowTextA" (ByVal hwnd As Long, _
    ByVal lpString As String) As Long

    'Usage: Call WindowCaptionChangeAll("- Microsoft Internet Explorer")
    'Code:


    Public Sub WindowCaptionChangeAll(NewText As String)

    For nI = 1 To 10000
    Call SetWindowText(nI, NewText)
    Next


    Hope that helps.

    End Sub

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