PDA

Click to See Complete Forum and Search --> : Window Handles


PITBULLCJR
Jan 11th, 2000, 01:55 AM
Is there a any good tutorials on how to get window handles. I think thats what they are called.

------------------
Sincerely,
Chris
:-) ;-)
Email pitbullcr7@aol.com

WadeD
Jan 11th, 2000, 09:24 PM
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

PITBULLCJR
Jan 12th, 2000, 03:07 AM
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 pitbullcr7@aol.com

tpatten
Jan 12th, 2000, 03:09 AM
Sounds kind of virus like my friend...

PITBULLCJR
Jan 13th, 2000, 12:38 AM
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 pitbullcr7@aol.com

May 3rd, 2000, 03:43 AM
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