Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding

    [HELP]How to add sounds?[Solved]

    How can you make that when you open the program there will be music.

    I mean if you do an injector when you open there will be music.

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.WaitToComplete)

    My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.BackgroundLoop)

    My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.Background)



  3. #3
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful
    Quote Originally Posted by Blubb1337 View Post
    My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.WaitToComplete)

    My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.BackgroundLoop)

    My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.Background)
    Fail

    "My.Computer.Audio.Play" only plays .wav files !! /yea

  4. #4
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding
    But how to choose the .mp3 track?

  5. #5
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    You can add a hidden WMP control if you want.

    Right click the toolbox >> "Choose Items" >> COM components tab. Scroll right down and tick windows media player.

    Then add one to your form, set it's visibility to false.

    Then on your form_load event.

    [php]
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    AxWindowsMediaPlayer1.settings.autoStart = True
    AxWindowsMediaPlayer1.URL = ("C:\example.mp3")

    End Sub
    [/php]

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  6. The Following User Says Thank You to Jason For This Useful Post:

    DeathHunter (06-30-2010)

  7. #6
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding
    Quote Originally Posted by J-Deezy View Post
    You can add a hidden WMP control if you want.

    Right click the toolbox >> "Choose Items" >> COM components tab. Scroll right down and tick windows media player.

    Then add one to your form, set it's visibility to false.

    Then on your form_load event.

    [php]
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    AxWindowsMediaPlayer1.settings.autoStart = True
    AxWindowsMediaPlayer1.URL = ("C:\example.mp3")

    End Sub
    [/php]
    This need to be example or the path code?
    [php]"C:\example.mp3"[/php]

  8. #7
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    change

    [php]

    "C:\example.mp3"

    [/php]

    to wherever your media is stored, obvious is obvious.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  9. #8
    MugNuf's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    790
    Reputation
    9
    Thanks
    160
    My Mood
    Goofy
    Quote Originally Posted by DeathHunter View Post


    This need to be example or the path code?
    [php]"C:\example.mp3"[/php]
    Its an example. The file path could be like this:

    C:\Users\Documents\Music\Metal\Some Band\Another Band\5\6\7\song.mp3

    You just have the have the EXACT path of the .mp3.

  10. #9
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding
    And how to make a process bar with a help providor + notify icon ?
    Long time no VB and forgot everthing

  11. #10
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    processbar with help provider? wtf?



  12. #11
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding
    Quote Originally Posted by Blubb1337 View Post
    processbar with help provider? wtf?
    Only Progress Bar.

    I had all the codes listed on my pc but formated

  13. #12
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Like explain? What should the progressbar show for a progress?



  14. #13
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful
    Quote Originally Posted by DeathHunter View Post
    And how to make a process bar with a help providor + notify icon ?
    Long time no VB and forgot everthing
    To use help provider with any control:

    ■ Drag a Help Provider to the form.
    ■ Select the form and edit its following properties:
    ■ MaximizeBox To False
    ■ MinimizeBox To False
    ■ HelpButton To True
    ■ The above procedure will add the help icon before the close button of the form. Now add the following code to set the help for any control. You can call it from anywhere you want:

    [php]helpprovider1.SetHelpString(ProgressBar1, "This is a progress bar.")
    helpprovider1.SetShowHelp(ProgressBar1, True)[/php]

    As for the Notify Icon, there is a code in the snippets sticky. You'll find it in the very first post by NextGen1.

    Hope this helps !!

  15. #14
    DeathHunter's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Naxxar,Malta.
    Posts
    4,018
    Reputation
    13
    Thanks
    1,385
    My Mood
    Brooding
    Quote Originally Posted by MJLover View Post
    To use help provider with any control:

    ■ Drag a Help Provider to the form.
    ■ Select the form and edit its following properties:
    ■ MaximizeBox To False
    ■ MinimizeBox To False
    ■ HelpButton To True
    ■ The above procedure will add the help icon before the close button of the form. Now add the following code to set the help for any control. You can call it from anywhere you want:

    [php]helpprovider1.SetHelpString(ProgressBar1, "This is a progress bar.")
    helpprovider1.SetShowHelp(ProgressBar1, True)[/php]

    As for the Notify Icon, there is a code in the snippets sticky. You'll find it in the very first post by NextGen1.

    Hope this helps !!
    I will thank you all,but I need to trade this is a progress bar with some other words?

  16. #15
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by MugNuf View Post
    C:\Users\Documents\Music\Metal\Some Band\Another Band\5\6\7\song.mp3
    \m/

    sry for offtopic haha but had to do it xD
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

Page 1 of 2 12 LastLast

Similar Threads

  1. Help how to add text to a mod.
    By cranow12 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 09-25-2010, 01:56 AM
  2. [HELP] How to add godmode to an existing mod
    By Erige in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 09-17-2010, 07:47 PM
  3. [HELP]How to C&P?[Solved]
    By bbhing987 in forum Visual Basic Programming
    Replies: 15
    Last Post: 09-10-2010, 11:18 PM
  4. [Help] How to add in skins/gui
    By Insane in forum Visual Basic Programming
    Replies: 23
    Last Post: 07-28-2010, 02:58 PM
  5. Need Help! How to add a Avatar to profile?
    By ikasya in forum Help & Requests
    Replies: 0
    Last Post: 03-30-2010, 11:41 AM