Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 03:07

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Auto Click Macro (Help)

Discussion on Auto Click Macro (Help) within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2019
Posts: 74
Received Thanks: 3
Unhappy Auto Click Macro (Help)

edited



InclerFR is offline  
Old 05/14/2019, 08:54   #2

 
elite*gold: 4
The Black Market: 156/0/0
Join Date: Feb 2008
Posts: 3,675
Received Thanks: 1,232
Maybe use pixel search or with image to get the location?


Else is offline  
Old 05/16/2019, 10:48   #3
 
elite*gold: 100
Join Date: Mar 2006
Posts: 1,715
Received Thanks: 357
What language are you planning to use to create this macro?
killzone is offline  
Old 07/04/2019, 03:40   #4
 
elite*gold: 0
Join Date: Jan 2019
Posts: 74
Received Thanks: 3
Quote:
Originally Posted by killzone View Post
What language are you planning to use to create this macro?
Hi, pref VB


InclerFR is offline  
Old 07/16/2019, 19:36   #5
 
elite*gold: 0
Join Date: Jun 2012
Posts: 13
Received Thanks: 10


This might give you some ideas. It doesn't automatically detect any colors, but it allows you to set up custom coordinates for the clicker to go through.
Myddo is offline  
Old 07/17/2019, 22:15   #6
 
elite*gold: 0
Join Date: Apr 2017
Posts: 3
Received Thanks: 1

now you can search for vb.net screenshot and vb.net bmp get pixel color. adding r + g + b if its equal to your number click left coordinates else right coordinates
kiges is offline  
Thanks
1 User
Old 07/17/2019, 22:34   #7
 
elite*gold: 9
Join Date: Nov 2011
Posts: 28
Received Thanks: 15
For the main part of the script, it does seem to be entirely location-based (dealing with inventory items). Slowing down the video it clicks the first slot as a constant and then clicks the second slot (and then each repetition it adds a certain specific amount to the horizontal value to move across). When it reaches the end of the row it moves down one row and repeats the above not excluding the first slot this time.

As for the Ok and Cancel button changing between two, it does seem to be some form of get pixels. I'm not clued up on VB i'm afraid, and i think trying to include sikuli into vb for one button press is a little OTT. I remember seeing in a tutorial for python there was a function where you supply an image and then a variable is made based on numeric value of all the individual pixels of the image, and then using that to find it on the screen. I was wondering if there's similar for VB at all?

I did bump into: while googling for VB solutions, is it of any help at all? Sorry, VB goes over my head i'm afraid.
Dusty Rose is offline  
Old 08/07/2019, 18:12   #8
 
elite*gold: 0
Join Date: Jan 2019
Posts: 74
Received Thanks: 3
I can't do this guys. I'm looking for someone to do
InclerFR is offline  
Old 08/10/2019, 02:19   #9
 
elite*gold: 0
Join Date: Aug 2019
Posts: 8
Received Thanks: 18
simple as that:
1) Import some stuff
Code:
Imports System.Runtime.InteropServices
2) u need to import the mouse event from the user32.dll to handle the click
Code:
<DllImport("user32.dll")>
    Private Sub mouse_event(dwFlags As UInteger, dx As Integer, dy As Integer, dwData As UInteger, dwExtraInfo As Integer)
    End Sub
3) declare the function to set the mouse Position
Code:
Declare Function SetCursorPos Lib "user32" (ByVal X As Integer, ByVal Y As Integer) As Integer
4) declare the mouse key adresses to handle the click
Code:
    Private Const MOUSEEVENTF_LEFTDOWN = &H2
    Private Const MOUSEEVENTF_LEFTUP = &H4
    Private Const MOUSEEVENTF_MIDDLEDOWN = &H20
    Private Const MOUSEEVENTF_MIDDLEUP = &H40
    Private Const MOUSEEVENTF_MOVE = &H1
    Private Const MOUSEEVENTF_RIGHTDOWN = &H8
    Private Const MOUSEEVENTF_RIGHTUP = &H10
5.1) move the mouse
Code:
    Public Sub MoveMouse(ByVal xMove As Integer, ByVal yMove As Integer)
        mouse_event(MOUSEEVENTF_MOVE, xMove, yMove, 0, 0) '[move the mouse by xMove and yMove pixels]
    End Sub
5.2) set mouse position
Code:
SetCursorPos(X, Y) 'X=X coord | Y = Y coord [Set the exact position]
6) perform the click
Code:
    Public Sub LClick()
        mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0) ' Down
        System.Threading.Thread.Sleep(10)
        mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)   ' Up
    End Sub
And your done, HF


0x33c is offline  
Reply



« picturebox size neu setzen peer Label.text | [HELP] Listview wird nicht angezeigt -.- »

Similar Threads
RF ONLINE , AUTO CLICK , AUTO LOOT , AUTO SKILL
07/26/2018 - RF Online - 10 Replies
http://i1200.photobucket.com/albums/bb333/AMDoverd rive/VIP2_zpse2abf703.png Auto X ( RF ONLINE AUTO LOOT ) Auto Skill ( RF ONLINE AUTO SKILL AND BUFF ) Auto X + SKL ( RF ONLINE AUTO SKILL AND BUFF + LOOT ) Auto Click ( RF ONLINE AUTO CLICK ) Advanced BD ( Auto Skill RF ONLINE AUTO SKILL AND BUFF FAST RESPOND MODE ) Advanced + X ( Auto Skill RF ONLINE AUTO SKILL AND BUFF + LOOT FAST RESPOND MODE )
Like map click macro. Box Collect Macro with MacroRecorder?
05/25/2015 - DarkOrbit - 0 Replies
#closerequest
click click click!!!!!!!!!!!
09/07/2007 - Off Topic - 14 Replies
if you reeeeaaaallyyy >are< bored (or if you are annoyed that you have to work on a saturday or smthing :D) Click for Germany - Click Click Click - ClickClickClick.com - Click game here you go ^^ nebenbei, japan hat ca. 500 mill klicks mehr als deutschland!!!!!



All times are GMT +2. The time now is 03:07.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2020 elitepvpers All Rights Reserved.