SMRDll - Autoing Functions - BETA

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

SMRDll - Autoing Functions - BETA
  1. Unread #1 - Nov 4, 2007 at 11:49 AM
  2. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    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 :)
     
  3. Unread #2 - Nov 4, 2007 at 1:47 PM
  4. Blupig
    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

    Blupig BEEF TOILET
    $5 USD Donor

    SMRDll - Autoing Functions - BETA

    Mind posting how to actually use this in projects for noobs like Blupig?
     
  5. Unread #3 - Nov 4, 2007 at 2:02 PM
  6. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    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.
     
  7. Unread #4 - Nov 6, 2007 at 3:26 PM
  8. Blupig
    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

    Blupig BEEF TOILET
    $5 USD Donor

    SMRDll - Autoing Functions - BETA

    Alright, got it...Kinda tired when I asked that ;3
     
  9. Unread #5 - Nov 7, 2007 at 4:41 PM
  10. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    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.:)
     
  11. Unread #6 - Nov 8, 2007 at 12:20 PM
  12. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    SMRDll - Autoing Functions - BETA

    Thanks, I'll probably fix the naming conventions later.
     
  13. Unread #7 - Nov 8, 2007 at 12:51 PM
  14. Blupig
    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

    Blupig BEEF TOILET
    $5 USD Donor

    SMRDll - Autoing Functions - BETA

    What functions are you expecting in newer versions (if you make them ;o)?
     
  15. Unread #8 - Nov 8, 2007 at 2:48 PM
  16. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    SMRDll - Autoing Functions - BETA

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

Users viewing this thread
1 guest


 
 
Adblock breaks this site