 |
|
 |
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Can Someone help me please ?
Here is the answer to 4):
Hide START button
Option Explicit
Dim hTaskBar As Long ' TaskBar window handle
Dim hStart As Long ' START button window handle
Private Const SW_NORMAL = 1
Private Const SW_HIDE = 0
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, _
ByVal hWnd2 As Long, ByVal lpsz1 As String,
ByVal lpsz2 As String) As Long
Private Declare Function ShowWindow Lib "user32" ( _
ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Sub Form_Load()
' Retrieve TaskBar window handle
' (searches top-level windows, not child windows)
hTaskBar = FindWindow("Shell_TrayWnd", vbNullString)
' Retrieve Start button's window handle
' (searches child windows)
hStart = FindWindowEx(hTaskBar, ByVal 0&, _
"BUTTON", vbNullString)
' Hide Start Button
ShowWindow hStart, SW_HIDE
End Sub
Private Sub Form_Unload(Cancel As Integer)
' Show the start button
ShowWindow hStart, SW_NORMAL
End Sub |
www.allapi.com
[Edited by vbgen on 30-07-2003 at 12:31 AM GMT]
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
28-07-2003 at 12:56 AM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1616
|
Re: Help on Building a "Yahoo! 5.5 Booter"
Without me searching in depth offhand... I think most of the questions have been answered somewhere in the forum in the past:
quote:
1) do you know how can send some text to the other window (like yahoo! bombers)?
Search the board
quote:
2) suppose you have a new DLL file and you don't have any information about it. now how can you extarct all subs and function of it?
Contact the manufacturer, you need permission to use many dll's other than the standard Microsoft ones.
quote:
3) do you know how editors can find a letter or a word from a text file (like notepad) ?
Instr (easiest), or open the file and check each character bit by bit.
quote:
4) do you know any API function that can HIDE "Start Menu" and "Notify Tray Icons " ?
(Answer provided in thread)
quote:
5) how did you find out that Taskbar window name is "Sell_trayWnd" ?
Microsoft's Webpage/help files
quote:
6) How can find out that mouse is on witch Window (API Spy)?
May be of help (take out space between / and Generating): http://www.vbaccelerator.com/home/VB/Code/Libraries/Subclassing/ Generating_MouseLeave_Events_for_a_Window/article.asp
quote:
7) how can write a software that can open IE and run to a link or just execute a link like "ymsgr:SendIM?Afshin_Z"
Private Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal _
lpOperation As String, ByVal lpFile As String, ByVal _
lpParameters As String, ByVal lpDirectory As String, ByVal _
nShowCmd As Long) As Long
Const SW_SHOWNORMAL = 1
Private Sub Form_Load()
ShellExecute Me.hwnd, vbNullString, "ymsgr:SendIM?Afshin_Z", _
vbNullString, "", SW_SHOWNORMAL
End Sub
|
quote:
8) can anybody teach me "PostMessage" API procedure?
There's a LOT to the PostMessage... Search online. Depending on what you're doing, depends on how/what you pass.
(ex:http://www.andreavb.com/forum/viewtopic.php?TopicID=1046&page=0#3185)
quote:
9) how can find window handle knowing a PART of its caption
Search the board, answer's here somewhere (maybe even on www.andreavb.com)
[Edited by JLRodgers on 29-07-2003 at 02:35 PM GMT]
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
29-07-2003 at 08:26 PM |
|
|
|
|
 |
 |