Having a hard time finding out how to do this, Please help
First of all, can someone provide me an example of the line of code that copies the program into windows startup, how to play a song from your computer on the servers speakers(like you click the browse button and locate the song/sound file) you want to play, and send them the message that you type in the text box in the program. (ie the browse button on imageshack.us and photobucket.com)
Also, how do you add the browse button to your project (for locating files ie the sound player feature) , and how do you make it work?
Thanks alot guys
Re: Having a hard time finding out how to do this, Please help
Re: Having a hard time finding out how to do this, Please help
you can browse and search using a dialog box, check it out in VBBooks Online.
You can use vb to copy a program into the startup directory, or you can write it into the registry.
Public Sub MyAddToStartUp()
'THIS CODE MAKES YOUR APPLICATION RUN WHEN THE MACHINE IS BOOTED.
'RUN WHEN YOU WANT TO, SUCH AS FIRST TIME THE USER LOADS YOUR
'APPLICATION
Dim hregkey As Long
Dim subkey As String
Dim stringbuffer As String
Dim retval
subkey = "Software\Microsoft\Windows\CurrentVersion\Run"
retval = RegOpenKeyEx(HKEY_CURRENT_USER, subkey, 0, KEY_WRITE, hregkey)
If retval <> 0 Then
Debug.Print "Can't open the subkey"
Exit Sub
End If
stringbuffer = App.Path & "\" & App.EXEName & ".exe /W" & vbNullChar
retval = RegSetValueEx(hregkey, "PhotoAlbum", 0, REG_SZ, _
ByVal stringbuffer, Len(stringbuffer))
RegCloseKey hregkey
End Sub
Re: Having a hard time finding out how to do this, Please help
Quote:
Originally Posted by Uninova
how to play a song from your computer on the servers speakers
Assuming 1) that there's a sound card in the server and 2) there's someone there to hear it. What kind of server? What situation? (Web servers, email servers, usenet servers, file servers, etc., usually don't have anyone close enough to hear anything coming from the speakers.)
Quote:
and send them the message that you type in the text box in the program.
'Them' who?
Re: Having a hard time finding out how to do this, Please help
Quote:
Originally Posted by Al42
Assuming 1) that there's a sound card in the server and 2) there's someone there to hear it. What kind of server? What situation? (Web servers, email servers, usenet servers, file servers, etc., usually don't have anyone close enough to hear anything coming from the speakers.)'Them' who?
Im making a little remote access trojan to try and expand on my knowledge of malacious material. By them I mean the person who has the server of their hardrive.
Re: Having a hard time finding out how to do this, Please help
This is not a valid subject for VBForums - see our Acceptable Use Policy (link at the bottom of the page) for the site rules.
This thread is now closed.