Post: How to create a script/program for something?
04-16-2011, 09:29 PM #1
Sexter
< ^ > < ^ >
(adsbygoogle = window.adsbygoogle || []).push({}); Basically i have no knowledge what so ever of programming :'(

What i want to do is create a programme that when a certain button is pressed will move the mouse to a certain destination and click, then move to another and click again?

If that makes sense^


And i take it this would be more complicated.. But could i make the programme recognise pictures/text and do a command after recognising them?
(I want to use it for fifa ultimate team)

<3
(adsbygoogle = window.adsbygoogle || []).push({});
04-17-2011, 07:52 PM #2
Hawk
Former Staff
Originally posted by imDEXTER View Post
Basically i have no knowledge what so ever of programming :'(

What i want to do is create a programme that when a certain button is pressed will move the mouse to a certain destination and click, then move to another and click again?

If that makes sense^


And i take it this would be more complicated.. But could i make the programme recognise pictures/text and do a command after recognising them?
(I want to use it for fifa ultimate team)

<3


the simplest way i know to do this would be to program it with java language, and color code it so that the mouse will click on a color, and once that color is chosen, it will randomly select another color for it to choose. The best example of this would be old RS & other MMORPG's bots that were color coded. Only problem is you have no control of your mouse
04-17-2011, 08:06 PM #3
Sexter
< ^ > < ^ >
Originally posted by megusta
the simplest way i know to do this would be to program it with java language, and color code it so that the mouse will click on a color, and once that color is chosen, it will randomly select another color for it to choose. The best example of this would be old RS & other MMORPG's bots that were color coded. Only problem is you have no control of your mouse


Yeah that would be okay because i'd use it when im away from laptop or whateverSmile

So how hard would it be to make? :(
04-17-2011, 08:08 PM #4
Hawk
Former Staff
Originally posted by imDEXTER View Post
Yeah that would be okay because i'd use it when im away from laptop or whateverSmile

So how hard would it be to make? :(


shouldnt be very hard, all you need is a basic knowledge of java, or even c++ would be a bit harder)

What you would need to know how to code:

  • How to get it to use your mouse
  • how to make it recognize colors
  • how to randomise what colors it clicks
  • how to stop it from, well, stopping
  • and to make sure whatever you are useing it for doesnt realize its a bot
  • error correction
  • etc.
04-17-2011, 08:11 PM #5
Sexter
< ^ > < ^ >
Originally posted by megusta
shouldnt be very hard, all you need is a basic knowledge of java, or even c++ would be a bit harder)

What you would need to know how to code:

  • How to get it to use your mouse
  • how to make it recognize colors
  • how to randomise what colors it clicks
  • how to stop it from, well, stopping
  • and to make sure whatever you are useing it for doesnt realize its a bot
  • error correction
  • etc.


Oh no they wont mind it being a bot:'Winky Winky aha!
Its fifa ultimate team, they'd never suspect it!
04-17-2011, 08:56 PM #6
<Jimbo>
</Jimbo>
In Visual Basic, you could use something like...
APIs:
    
Declare Function SetCursorPos Lib "user32" Alias "SetCursorPos" (ByVal x As Long, ByVal y As Long)

As Long
SetCursorPos NewXPos, NewYPos


Note that the X and Y values are in pixels and not twips, which is the VB default. Make use of <b>Screen.TwipsPerPixelX</b> and <b>Screen.TwipsPerPixelY</b> to ensure that you have the proper conversion amount

Alternately:
    ' Simulate moving the mouse to the center of the
' PictureBox and clicking.
Private Sub cmdClick_Click()
Const NUM_MOVES = 3000
Dim pt As POINTAPI
Dim cur_x As Single
Dim cur_y As Single
Dim dest_x As Single
Dim dest_y As Single
Dim dx As Single
Dim dy As Single
Dim i As Integer

' Things are easier working in pixels.
ScaleMode = vbPixels
picClicker.ScaleMode = vbPixels

' mouse_event moves in a coordinate system where
' (0, 0) is in the upper left corner and
' (65535,65535) is in the lower right corner.

' Get the current mouse coordinates and convert
' them into this new system.
GetCursorPos pt
cur_x = pt.X * 65535 / ScaleX(Screen.Width, vbTwips, _
vbPixels)
cur_y = pt.Y * 65535 / ScaleY(Screen.Height, vbTwips, _
vbPixels)

' Convert the coordinates of the center of the
' picClicker PictureBox into this new system.
pt.X = picClicker.ScaleWidth / 2
pt.Y = picClicker.ScaleHeight / 2
ClientToScreen picClicker.hwnd, pt
dest_x = pt.X * 65535 / ScaleX(Screen.Width, vbTwips, _
vbPixels)
dest_y = pt.Y * 65535 / ScaleY(Screen.Height, vbTwips, _
vbPixels)

' Move the mouse.
dx = (dest_x - cur_x) / NUM_MOVES
dy = (dest_y - cur_y) / NUM_MOVES
For i = 1 To NUM_MOVES - 1
cur_x = cur_x + dx
cur_y = cur_y + dy
mouse_event _
MOUSEEVENTF_ABSOLUTE + _
MOUSEEVENTF_MOVE, _
cur_x, cur_y, 0, 0
DoEvents
Next i

' Move the mouse to its final destination and click it.
mouse_event _
MOUSEEVENTF_ABSOLUTE + _
MOUSEEVENTF_MOVE + _
MOUSEEVENTF_LEFTDOWN + _
MOUSEEVENTF_LEFTUP, _
dest_x, dest_y, 0, 0
End Sub


However I have no idea how to make it move to a certain color pixel :confused:
04-17-2011, 09:06 PM #7
Ameht!
Dark Knight
Originally posted by bankies97 View Post
hopefully someone can answer!


people like you piss me the **** off. Just to get your post count up. Wtf really? Threads are opened for help not for dumb ass children raising their post. /facepalm. Get a life kid for fuq sakes


and to thread maker you would need to start off with microsoft visual basic for learning programming.
04-18-2011, 07:21 AM #8
Neymar
I dunno what to say anymore?
Originally posted by psameht View Post
people like you piss me the **** off. Just to get your post count up. Wtf really? Threads are opened for help not for dumb ass children raising their post. /facepalm. Get a life kid for fuq sakes


and to thread maker you would need to start off with microsoft visual basic for learning programming.


The reason I was saying that was not to get my post count up. I am a regular poster on the FIFA forum on this site and I'm hoping someone knows how to do.
04-18-2011, 04:55 PM #9
Ameht!
Dark Knight
Originally posted by bankies97 View Post
The reason I was saying that was not to get my post count up. I am a regular poster on the FIFA forum on this site and I'm hoping someone knows how to do.


he's asking a question, u didnt give him an answer. No

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo