Results 1 to 13 of 13
  1. #1
    Katie_Perry's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    3,082
    Reputation
    31
    Thanks
    175
    My Mood
    Sneaky

    [REQUEST] Minibot Code[s]

    Allright lads and lasses. Just want a simple code for a very simple project of mine. I could not ask for more.

    So what i want it to do is:

    Button 1 -> Start and (as a bot) press F5 every one minute or so.
    Button 2 (Below button 1) -> Change time whether pressing F5 every minute or hour.
    Button 3 -> Stop Bot.

    And i how to get the time next on the toolbar. Example:
    [IMG]https://i998.photobucke*****m/albums/af105/yip_manxD/fgjtgyk.jpg?t=1280835731[/IMG]

    Thank You

  2. #2
    qddW$#%^jtyjtyj's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    721
    Reputation
    7
    Thanks
    148
    My Mood
    Mellow
    You know that 1 second is 1000 milliseconds so

    60000 millliseconds = 1 minute

    Then refresh time

  3. #3
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    [php]#Region "Press Key"

    Declare Sub keybd_event Lib "user32.dll" ( _
    ByVal bVk As Byte, _
    ByVal bScan As Byte, _
    ByVal dwFlags As Long, _
    ByVal dwExtraInfo As Long)

    Private Sub pk(ByVal vk As Int32) 'press key
    keybd_event(vk, 0&, 0&, 0&)
    keybd_event(vk, 0&, KEYEVENTF_KEYUP, 0&)
    End Sub

    #End Region
    [/php]

    [php]pk(keys.f5)[/php]

    You can sure use Sendkeys.Send(), but the function above is also working in DirectXGames...

    And about the interval(minute/hour), read the post above.



  4. #4
    Katie_Perry's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    3,082
    Reputation
    31
    Thanks
    175
    My Mood
    Sneaky
    Im really lost

  5. #5
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Basically you just have to copy & paste what I have posted into a timer_tick event. Enable that timer on button click. If you don't know how to, learn the basics. Basic tutorial ~#2 - Accesssing properties...



  6. #6
    Katie_Perry's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    3,082
    Reputation
    31
    Thanks
    175
    My Mood
    Sneaky
    Though are those does for the buttons ?

  7. #7
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    What? I please you to learn the VERY basic tutorials.



  8. #8
    Lonely Tedy Bear's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Location
    Utah,Salt Lake Posts: 5,371 ►►►►Lonely-Tedy◄◄◄◄
    Posts
    1,541
    Reputation
    -151
    Thanks
    321
    My Mood
    Lonely
    Quote Originally Posted by Yuerno View Post
    Though are those does for the buttons ?
    huh ? do you originally speak English or not , also so you wanting to press s key by clicking a button ? your post was kinda hard to understand

  9. #9
    TheRealOne's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Portugal
    Posts
    36
    Reputation
    15
    Thanks
    7
    My Mood
    Cold
    hi, in blubbs's code, I got an error...
    it says that KEYEVENTF_KEYUP is not declared...
    Learning VB and C


    Objectives:
    1 Post
    2 Posts
    10 Posts
    50 Posts
    100 Posts
    Making a Tuturial
    Make a tool (and releasing it)
    Making my own set of tools (and release it)
    [IMG]https://i111.photobucke*****m/albums/n121/golmor/learntoprogram-1.png[/IMG]

  10. #10
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    pk(keys.space) i guess.....



  11. #11
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by TheRealOne View Post
    hi, in blubbs's code, I got an error...
    it says that KEYEVENTF_KEYUP is not declared...
    Make sure you declared the Const KEYEVENTF_KEYUP =.=

    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)

  12. #12
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    That's because Blubb forgot to declare it

    Here's his code with the Keyup pointer declared:

    Code:
    #Region "Press Key" 
        Const KEYEVENTF_KEYUP = &H2
        Declare Sub keybd_event Lib "user32.dll" ( _ 
       ByVal bVk As Byte, _ 
       ByVal bScan As Byte, _ 
       ByVal dwFlags As Long, _ 
       ByVal dwExtraInfo As Long) 
    
    Private Sub pk(ByVal vk As Int32) 'press key 
            keybd_event(vk, 0&, 0&, 0&) 
            keybd_event(vk, 0&, KEYEVENTF_KEYUP, 0&) 
        End Sub 
    
    #End Region

  13. #13
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    No need to declare it.

    You can use keys.<- intellisense nao....
    Last edited by Blubb1337; 08-07-2010 at 09:36 AM.



  14. The Following User Says Thank You to Blubb1337 For This Useful Post:

    Lonely Tedy Bear (08-07-2010)

Similar Threads

  1. [REQUEST]Source Code For "Remember Me" in a checkbox
    By Dreamer in forum Visual Basic Programming
    Replies: 5
    Last Post: 11-28-2009, 03:22 AM
  2. [Request] Source Code DLL Injector (Text) - VB 2008 Codes
    By deocute in forum Visual Basic Programming
    Replies: 1
    Last Post: 10-21-2009, 12:16 AM
  3. [Request] Source Code For AFK Bot 4 CA
    By JIGS4W in forum Visual Basic Programming
    Replies: 2
    Last Post: 10-06-2009, 08:33 AM
  4. [Request] WallHack Code
    By boncha in forum C++/C Programming
    Replies: 3
    Last Post: 09-30-2009, 07:56 AM
  5. Request: Hotkey code C++
    By shibity in forum Hack Requests
    Replies: 0
    Last Post: 10-17-2008, 09:58 PM