Vb6.0 Codes needed

Vigintennalis Membrum
Vicennium
Joined
Dec 19, 2004
Messages
232
Reaction score
0
hey i sued VB 6.0 long long long ago..
forgot all codes im looking for these codes:
To make an popup message (something like msg it whas)
To make CTRL+ALT+DEL not useable
And Youre Mouse Or Start disspears when starting it

i wanne make smething to my dad adn i dont wnat him to CTRL alt del or something to get it away :) so he needs to enter ect all time :)
thx guys you guys pwn :):thumbup: :thumbup:

Greetings mewhywhy
 
A "code"?

Don't you mean script?

There are ways around everything.

I do not feel like this is information that should be given out this easily without more detail.

A program like this could be used to **** up someone's computer.
 
Visual Basic isn't a "scripting" language, so source code or code would be the correct terminology to use.

For "popup" boxes, use MsgBox:
Code:
MsgBox "Message text", vbOkOnly + vbExclaimation, "Message Title"
If you want, you can "hide" the Task Manager. You can do this by using FindWindow to get a window handle of the Task Manager, and then use ShowWindow (with the correct flags) to keep the window hidden. I'd prefer doing that than just killing it each and every time they opened it.

I don't see any reason to hide the mouse or start button, besides some malicious fun...
 
'try this mewhywhy
'for disabling CTRL+ALT+DELETE...
'but this works only in Windows 98...
'put 2 command buttons namely Command1 and Command2 on a Form
'copy and paste this in the code window
'then run the program

'code starts here

Private Declare Function SystemParametersInfo Lib "user32" _
Alias "SystemParametersInfoA" (ByVal uAction As Long, _
ByVal uParam As Long, lpvParam As Any, _
ByVal fuWinIni As Long) As Long
Private Declare Function SetWindowsHookEx Lib "user32" _
Alias "SetWindowsHookExA" (ByVal idHook As Long, _
ByVal lpfn As Long, ByVal hmod As Long, ByVal _
dwThreadId As Long) As Long

Private Const SPI_SCREENSAVERRUNNING = 97
'The following is for the idHook argument
Private Const WH_KEYBOARD = 2
Private Const WH_MOUSE = 7
'''''''''''''''''''''''''''''''''''''''''
'Parameters
'idHook
'Specifies the type of hook procedure to be installed.
'This parameter can be one of the following values:
'WH_KEYBOARD
'Installs a hook procedure that monitors
'keystroke messages. For more information,
'see the KeyboardProc hook procedure.
'WH_MOUSE
'Installs a hook procedure that monitors
'mouse messages. For more information, see
'the MouseProc hook procedure.
'lpfn
'Pointer to the hook procedure. If the dwThreadId
'parameter is zero or specifies the identifier of a
'thread created by a different process, the lpfn
'parameter must point to a hook procedure in a
'dynamic-link library (DLL). Otherwise, lpfn can
'point to a hook procedure in the code associated
'with the current process.
'hMod
'Handle to the DLL containing the hook procedure
'pointed to by the lpfn parameter. The hMod
'parameter must be set to NULL if the dwThreadId
'parameter specifies a thread created by the current
'process and if the hook procedure is within the
'code associated with the current process.
'dwThreadId
'Specifies the identifier of the thread with which
'the hook procedure is to be associated. If this
'parameter is zero, the hook procedure is associated
'with all existing threads running in the same
'desktop as the calling thread.

Private Sub Command1_Click()
Dim ret As Integer
Dim pOld As Boolean
ret = SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, pOld, 0)
End Sub

Private Sub Form_Load()
Command1.Caption = "Disabled"
Command2.Caption = "Enabled"
End Sub

Private Sub Command2_Click()
Dim ret As Integer
Dim pOld As Boolean
ret = SystemParametersInfo(SPI_SCREENSAVERRUNNING, False, pOld, 0)
End Sub

Private Sub Form_Unload(Cancel As Integer)
'Re-enable Ctrl+Alt+Del and Alt+Tab before the program terminates
Command2_Click
End Sub
 
junel said:
Mr.X can you give me a sample of that...
Ok, presuming u have windows xp..
[I had this on my pc, credits go to the site who made it-- if anyone has link tell me, ill add credits]
ive: HKEY_CURRENT_USER
Key: Software\Microsoft\Windows\CurrentVersion\Policies\System
Name: DisableTaskMgr
Type: REG_DWORD
Value: 1=Enablethis key, that is DISABLE TaskManager
Value: 0=Disablethis key, that is Don't Disable, Enable TaskManager

As part of the enhanced management available in Windows 2000 and Windows XP, rather than risking a registry change, as an administrator you can enable or disable Windows 2000 Pro or Windows XP Pro's TaskManager using Group Policy Editor. This can be applied to the local policy. Note: if you are trying to override your organizations group policy, you can't. As soon as you re-authenticate to the domain, the domain or OU Group Policy will rewrite the registry setting. But if the TaskManager was accidently disabled or you need to control this item for a set of standalone boxes this is for you:

* Click Start
* Click Run
* Enter gpedit.msc in the Open box and click OK
* In the Group Policy settings window
o Select User Configuration
o Select Administrative Templates
o Select System
o Select Ctrl+Alt+Delete options
o Select Remove Task Manager
o Double-click the Remove Task Manager option

And as I mentioned above, since the policy is Remove Task Manager, by disabling the policy, you are enabling the Task Manager.

Got XP Home - use the registry edit.
 
Back