Thread: Help

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed

    Help

    how do i put a VBS in VB?
    any help(not spam) would be appreciated.

  2. #2
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    Quote Originally Posted by mnpeep View Post
    how do i put a VBS in VB?
    any help(not spam) would be appreciated.
    Well what exactly are you wanting the program to do?

  3. #3
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed
    well like take a VBS and put it in vb like:
    Code:
    do
    x=msgbox("23sfdhkjsadhfk",4,"sadfdfa")
    loop
    im not saying this easy code to replcate but to keep all of it and C&P to VB lik lolland did.

  4. #4
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    Quote Originally Posted by mnpeep View Post
    well like take a VBS and put it in vb like:
    Code:
    do
    x=msgbox("23sfdhkjsadhfk",4,"sadfdfa")
    loop
    im not saying this easy code to replcate but to keep all of it and C&P to VB lik lolland did.
    Easy:

    Make a timer, make it enabled = true
    then here is the code for it:
    Code:
    Msgbox("Message here", MsgboxStyle.Critical, "Title here")

  5. #5
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed
    no,no not a replication, i want the real deal.

  6. #6
    deathninjak0's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    1,510
    Reputation
    12
    Thanks
    294
    My Mood
    Cool
    Is this thread suppose to be in the help thread?

  7. #7
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    Quote Originally Posted by deathninjak0 View Post
    Is this thread suppose to be in the help thread?
    It doesn't really matter, that thread is only if they want to, but if I see too many help threads being posted, I will make it a rule to put it in the help thread I made

  8. #8
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed
    ok, how about a more complex code?
    Code:
    Set WMP=CreateObject("WMPlayer.OCX.7" )
    Set CDROMs=WMP.cdromCollection
    if CDROMs.Count >= 1 then
    For i = 0 to CDROMs.Count - 1
    CDROMs.Item(i).Eject
    Next
    End If

  9. #9
    Iamazn1's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    407
    Reputation
    12
    Thanks
    50
    Code:
       Dim times As Integer
            For times = 0 To 10
                MessageBox.Show("Text", "Title", MessageBoxButtons.OK, MessageBoxIcon.Warning)
            Next

  10. #10
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed
    umm the other code i just typed? FYI it opens your CD drive

  11. #11
    Iamazn1's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    407
    Reputation
    12
    Thanks
    50
    Quote Originally Posted by mnpeep View Post
    umm the other code i just typed? FYI it opens your CD drive
    Find out yourself. Im not gonna help someone create a Spamming CD drive opener.

  12. #12
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed
    im just saying, not to replicate, i kno VBS, i just want it C&P into VB with the came outcome.

  13. #13
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    What do you mean by VBS?
    Visual Basic Script?

  14. #14
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed
    yep thats it

  15. #15
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    you want to spam open + close cd drive in VB?

    here :P

    add this to top of code right after public class form1

    Code:
     Private setTrayStatus As Long
    
    
    
        Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Integer, ByVal hwndCallback As Integer) As Integer

    then to open the CD drive

    Code:
      setTrayStatus = mciSendString("Set CDAudio Door Open", Nothing, 0, 0)
    to close

    Code:
    setTrayStatus = mciSendString("Set CDAudio Door Closed", Nothing, 0, 0)
    if you want it to spam this then put the open code in a timer, then the close code in another timer. the timer intervals need to be different.
    Example: like timer 1 interval at 5 seconds, and timer 2 interval at 10 seconds.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help Request] Combat arms Vid help
    By djw111 in forum Combat Arms Help
    Replies: 4
    Last Post: 12-24-2011, 05:06 PM
  2. [Help Request] AFK Bot [help]
    By fet in forum Combat Arms Help
    Replies: 7
    Last Post: 04-28-2011, 03:17 AM
  3. [Help Request] Injector Admin help
    By asdfgas in forum Combat Arms Help
    Replies: 4
    Last Post: 04-27-2011, 06:12 PM
  4. [Help Request] Ajuda / Help
    By - Battery' in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 04-22-2011, 07:15 PM
  5. [Help Request] Help my!
    By Windowns7 in forum Combat Arms BR Coding Help
    Replies: 2
    Last Post: 04-18-2011, 01:41 PM