Post: Programming a script code for fifa ultimate team..
04-16-2011, 10:16 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({});

The following user groaned Sexter for this awful post:

CodingNation
04-16-2011, 11:57 PM #11
Sexter
< ^ > < ^ >
Originally posted by oToxicity View Post
You would need to somehow get it to recognise certain shapes and colours for it too read the text


Ohhhhhh okay Smile so its possible, just hard to do..
04-16-2011, 11:58 PM #12
oToxicity
I’m too L33T
Originally posted by imDEXTER View Post
Ohhhhhh okay Smile so its possible, just hard to do..


Yes, It would be a lot easier if the text was straight on the web page not in an image
04-17-2011, 12:22 AM #13
IVThaKiller
Gym leader
This might relate to what you are trying to achieve (VB.NET):

[ame=https://www.youtube.com/watch?v=XoA_GLbwOnQ&feature=player_embedded]YouTube - [VB .NET] Gunblood clicks[/ame]

Source:

You must login or register to view this content.

    Imports System.Threading
Public Class Form1

'handles mouse cursor position
Private Declare Sub SetCursorPos Lib "User32" (ByVal x As Integer, ByVal y As Integer)

'mouse click events
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4
Private Const MOUSEEVENTF_RIGHTDOWN = &H8
Private Const MOUSEEVENTF_RIGHTUP = &H10

Private Declare Sub mouse_event Lib "User32" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer)

Dim t1 As Thread

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TopMost = True 'make form on top of all windows
Me.CheckForIllegalCrossThreadCalls = False

'start the timer
TimerInt.Start()

End Sub

'sub called from timer
Private Sub mousepos()
xpos.Text = "X: " & MousePosition.X 'get mouse x co-ordinate point
ypos.Text = "Y: " & MousePosition.Y 'get mouse y co-ordinate point
End Sub

Private Sub btnClick_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClick.Click
t1 = New System.Threading.Thread(AddressOf clickit)
t1.Start() 'start the sub routing
End Sub

Private Sub clickit()
Dim xloc, yloc, bxloc, byloc As Integer 'variable to store mouse positions

xloc = txtx.Text 'get x-loc for head
yloc = txty.Text 'get y-loc for head
bxloc = bpx.Text 'get x-lo for barrel
byloc = bpy.Text 'get y-lo for barrel

'move mouse to gun barrel
Windows.Forms.Cursor.Position = New Point(bxloc, byloc)

'wait for countdown [vary tune to your choice] in ms
System.Threading.Thread.Sleep(1889)

'move mouse to the opponents head
Windows.Forms.Cursor.Position = New Point(xloc, yloc)

'click two time - 1 to focus the window, next to shoot
For i = 0 To 2
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
Next

End Sub

'start timer
Private Sub TimerInt_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimerInt.Tick
mousepos()
End Sub

End Class
04-17-2011, 12:31 AM #14
oToxicity
I’m too L33T
Originally posted by IVThaKiller View Post
This might relate to what you are trying to achieve (VB.NET):

You must login or register to view this content.

Source:

You must login or register to view this content.

    Imports System.Threading
Public Class Form1

'handles mouse cursor position
Private Declare Sub SetCursorPos Lib "User32" (ByVal x As Integer, ByVal y As Integer)

'mouse click events
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4
Private Const MOUSEEVENTF_RIGHTDOWN = &H8
Private Const MOUSEEVENTF_RIGHTUP = &H10

Private Declare Sub mouse_event Lib "User32" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer)

Dim t1 As Thread

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TopMost = True 'make form on top of all windows
Me.CheckForIllegalCrossThreadCalls = False

'start the timer
TimerInt.Start()

End Sub

'sub called from timer
Private Sub mousepos()
xpos.Text = "X: " & MousePosition.X 'get mouse x co-ordinate point
ypos.Text = "Y: " & MousePosition.Y 'get mouse y co-ordinate point
End Sub

Private Sub btnClick_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClick.Click
t1 = New System.Threading.Thread(AddressOf clickit)
t1.Start() 'start the sub routing
End Sub

Private Sub clickit()
Dim xloc, yloc, bxloc, byloc As Integer 'variable to store mouse positions

xloc = txtx.Text 'get x-loc for head
yloc = txty.Text 'get y-loc for head
bxloc = bpx.Text 'get x-lo for barrel
byloc = bpy.Text 'get y-lo for barrel

'move mouse to gun barrel
Windows.Forms.Cursor.Position = New Point(bxloc, byloc)

'wait for countdown [vary tune to your choice] in ms
System.Threading.Thread.Sleep(1889)

'move mouse to the opponents head
Windows.Forms.Cursor.Position = New Point(xloc, yloc)

'click two time - 1 to focus the window, next to shoot
For i = 0 To 2
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
Next

End Sub

'start timer
Private Sub TimerInt_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimerInt.Tick
mousepos()
End Sub

End Class


That programm looks like it works sweeeeet
04-17-2011, 11:39 AM #15
Sexter
< ^ > < ^ >
Originally posted by IVThaKiller View Post
This might relate to what you are trying to achieve (VB.NET):

You must login or register to view this content.

Source:

You must login or register to view this content.

    Imports System.Threading
Public Class Form1

'handles mouse cursor position
Private Declare Sub SetCursorPos Lib "User32" (ByVal x As Integer, ByVal y As Integer)

'mouse click events
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4
Private Const MOUSEEVENTF_RIGHTDOWN = &H8
Private Const MOUSEEVENTF_RIGHTUP = &H10

Private Declare Sub mouse_event Lib "User32" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer)

Dim t1 As Thread

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TopMost = True 'make form on top of all windows
Me.CheckForIllegalCrossThreadCalls = False

'start the timer
TimerInt.Start()

End Sub

'sub called from timer
Private Sub mousepos()
xpos.Text = "X: " & MousePosition.X 'get mouse x co-ordinate point
ypos.Text = "Y: " & MousePosition.Y 'get mouse y co-ordinate point
End Sub

Private Sub btnClick_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClick.Click
t1 = New System.Threading.Thread(AddressOf clickit)
t1.Start() 'start the sub routing
End Sub

Private Sub clickit()
Dim xloc, yloc, bxloc, byloc As Integer 'variable to store mouse positions

xloc = txtx.Text 'get x-loc for head
yloc = txty.Text 'get y-loc for head
bxloc = bpx.Text 'get x-lo for barrel
byloc = bpy.Text 'get y-lo for barrel

'move mouse to gun barrel
Windows.Forms.Cursor.Position = New Point(bxloc, byloc)

'wait for countdown [vary tune to your choice] in ms
System.Threading.Thread.Sleep(1889)

'move mouse to the opponents head
Windows.Forms.Cursor.Position = New Point(xloc, yloc)

'click two time - 1 to focus the window, next to shoot
For i = 0 To 2
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
Next

End Sub

'start timer
Private Sub TimerInt_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimerInt.Tick
mousepos()
End Sub

End Class


Holy shhh. Thats sweet, but i'd need it to be more advanced, is that possible with that program
?
04-17-2011, 01:49 PM #16
IVThaKiller
Gym leader
Originally posted by imDEXTER View Post
Holy shhh. Thats sweet, but i'd need it to be more advanced, is that possible with that program
?


Like position save? Yeah, it is possible.

The following user thanked IVThaKiller for this useful post:

tempScript
04-17-2011, 02:10 PM #17
Sexter
< ^ > < ^ >
Originally posted by IVThaKiller View Post
Like position save? Yeah, it is possible.


I have no idea what a positive save is :$

If i made a quick like picture of what i wanted the program to look like, then showed you the commands i need when a buttons selected etc, would you be able to say what would be best to make it with?
05-12-2011, 05:34 AM #18
wow bro i hope you make this program i will want itSmile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo