Adblock breaks this site

SMRDll - Autoing Functions - BETA

Discussion in 'Programming General' started by Govind, Nov 4, 2007.

  1. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    SMRDll - Autoing Functions - BETA

    http://www.uploadyour.info/download.php?filename=smrdll18597.dll

    Rename it to SMRDll.dll after downloading it and copy it to your \Microsoft Visual Studio\VB98\ folder (or wherever you store your VB6 projects.

    This is the exports.def file:
    Code:
    EXPORTS
        RandSleep @1 
        ;Private Declare Sub RandSleep Lib "SMRDll.dll" (ByVal min as Long, ByVal max as Long)
        ;Sleeps for a random millisecond time between min and max
        SendKeysEx @2 
        ;Private Declare Sub SendKeysEx Lib "SMRDll.dll" (ByVal keys as String, ByVal times as Long, ByVal ms_wait as Long)
        ; Sends keys for the amount of times specified and sleeps for ms_wait milliseconds between each run
        Random @3 
        ;Private Declare Function Random (ByVal min as Long, ByVal max as Long) As Long 
        ;Returns a random Long between min and max
        CoinToss @4
        ;Private Declare Function CoinToss Lib "SMRDll.dll" () As Long
        ;Returns either 1 or 0 randomly
        FindColor @5 ;BETA FUNCTION - NOT GUARANTEED TO WORK 100%
        ;Private Declare Function FindColor Lib "SMRDLL.dll" (ByVal RGBColor as Long, ByVal screenheight as Long, ByVal screenwidth as Long) As Long
        ;Searches for the specified color within the specified screenheight/width.  A better working function will be included in a later release
        ;Returns 1 if the color is found and moves the mouse to the pixel where the color is first found, and returns 0 and does not move the mouse if the color is not found.
    
    Please test this and tell me how it goes, and suggest improvements :)
     
  2. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant
    SMRDll - Autoing Functions - BETA

    Mind posting how to actually use this in projects for noobs like Blupig?
     
  3. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    SMRDll - Autoing Functions - BETA

    Read the comments in the exports.def file - the function declaration and what they do is described there. If you don't know how to declare DLL functions then I can explain it further.
     
  4. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant
    SMRDll - Autoing Functions - BETA

    Alright, got it...Kinda tired when I asked that ;3
     
  5. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    SMRDll - Autoing Functions - BETA

    Code:
     ;Private Declare Function FindColor Lib "SMRDLL.dll" (ByVal RGBColor as Long, ByVal screenheight as Long, ByVal screenwidth as Long) As Long
    Just thought I'd mention you might want to rethink naming your first variable in this function. The reason for that being that a long color is in the "Hex" format and not in the "RGB" format which consists of 3 numbers corresponding to the amounts of Red, Green, and Blue respectively.

    This has no effect on the function itself but I am pointing it out as it could easily cause confusion. Nice stuff anyway.:)
     
  6. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    SMRDll - Autoing Functions - BETA

    Thanks, I'll probably fix the naming conventions later.
     
  7. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant
    SMRDll - Autoing Functions - BETA

    What functions are you expecting in newer versions (if you make them ;o)?
     
  8. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    SMRDll - Autoing Functions - BETA

    Whatever is suggested when I have time.
     
< [SOURCE] Simple Find Pixel Color [/SOURCE] | basic sendkeys function >


 
 
Adblock breaks this site