|
You last visited: Today at 00:03
Advertisement
Issue with clicking
Discussion on Issue with clicking within the AutoIt forum part of the Coders Den category.
05/02/2015, 20:37
|
#1
|
elite*gold: 0
Join Date: Nov 2010
Posts: 33
Received Thanks: 4
|
Issue with clicking
I have an issue with my AutoIT script for a private dark orbit server and it is that the bot clicks either on top left corner of my browser or on one of my opened tab windows
#RequireAdmin
Global $pause = False
Global $count = 0
ProcessSetPriority("script name.exe",4)
HotKeySet("{ESC}", "_quit")
HotKeySet("{F1}", "_Pause")
Opt("MouseCoordMode", 1)
$Timer = TimerInit()
While 1
If $pause = False Then
$Box = PixelSearch(80,85,1745,1050,0xFFFFDD)
If IsArray($Box) Then
MouseMove($Box[0],$Box[1],0)
MouseClick("left")
Sleep(1750)
$count = $count + 1
Else
MouseMove(Random(337,105,1), Random(586,970,1), 0)
MouseClick("left")
Sleep(2000)
EndIf
Else
sleep(150)
EndIf
WEnd
Func _quit()
$Diff = TimerDiff($Timer)
$Diff = $Diff / 1000
MsgBox(0,"Boxes Collected","You collected ~ " & $count & " BonusBoxes " & @CRLF & "in ~ " & $Diff & " Seconds")
Exit
EndFunc
Func _Pause()
If $pause = True Then
$pause = False
ElseIf $pause = False Then
$pause = True
EndIf
EndFunc
Thats my script and i have found the top left and top bottom right coordinates in game as it follows here -
MouseMove(Random(337,105,1), Random(586,970,1), 0)
but it clicks on the top left browser not on coordinates which i have set by autoit window info..
Any suggestions?
|
|
|
05/02/2015, 21:26
|
#2
|
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
|
Quote:
Originally Posted by spud-killa
I have an issue with my AutoIT script for a private dark orbit server and it is that the bot clicks either on top left corner of my browser or on one of my opened tab windows
#RequireAdmin
Global $pause = False
Global $count = 0
ProcessSetPriority("script name.exe",4)
HotKeySet("{ESC}", "_quit")
HotKeySet("{F1}", "_Pause")
Opt("MouseCoordMode", 1)
$Timer = TimerInit()
While 1
If $pause = False Then
$Box = PixelSearch(80,85,1745,1050,0xFFFFDD)
If IsArray($Box) Then
MouseMove($Box[0],$Box[1],0)
MouseClick("left")
Sleep(1750)
$count = $count + 1
Else
MouseMove(Random(337,105,1), Random(586,970,1), 0)
MouseClick("left")
Sleep(2000)
EndIf
Else
sleep(150)
EndIf
WEnd
Func _quit()
$Diff = TimerDiff($Timer)
$Diff = $Diff / 1000
MsgBox(0,"Boxes Collected","You collected ~ " & $count & " BonusBoxes " & @CRLF & "in ~ " & $Diff & " Seconds")
Exit
EndFunc
Func _Pause()
If $pause = True Then
$pause = False
ElseIf $pause = False Then
$pause = True
EndIf
EndFunc
Thats my script and i have found the top left and top bottom right coordinates in game as it follows here -
MouseMove(Random(337,105,1), Random(586,970,1), 0)
but it clicks on the top left browser not on coordinates which i have set by autoit window info..
Any suggestions? 
|
Random(337,105) will always return 0 because you mixed up the parameters. The first number must be the minimum and the second the maximum --> Random(105,337)
|
|
|
05/02/2015, 22:09
|
#3
|
elite*gold: 0
Join Date: Nov 2010
Posts: 33
Received Thanks: 4
|
Quote:
Originally Posted by Metin2Spieler96
Random(337,105) will always return 0 because you mixed up the parameters. The first number must be the minimum and the second the maximum --> Random(105,337)
|
But the first is coordinate for the top left of the game and the second is coordinate for the bottom top right of the game..?
Still don't get what should be changed to be able to click.
|
|
|
05/02/2015, 22:19
|
#4
|
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
|
What are the x and y coordinates for your top left corner and what are the x and y coordinates for your bottom right corner?
|
|
|
05/02/2015, 22:25
|
#5
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
You mixed up the coordinates. Try this
x = Random(337, 586, 1) ;Use Flag 1, it only returns valid integers
y = Random(105, 980, 1)
|
|
|
05/02/2015, 22:29
|
#6
|
elite*gold: 0
Join Date: Nov 2010
Posts: 33
Received Thanks: 4
|
Quote:
Originally Posted by Metin2Spieler96
What are the x and y coordinates for your top left corner and what are the x and y coordinates for your bottom right corner?
|
top left and bottom right coordinates are from the autoit window info and are the same as listed here in the topic
Quote:
Originally Posted by alpines
You mixed up the coordinates. Try this
x = Random(337, 586, 1) ;Use Flag 1, it only returns valid integers
y = Random(105, 980, 1)
|
works but it clicks only to the left that it gets me in radiaton zone = dead
|
|
|
05/02/2015, 22:35
|
#7
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
These were the coordinates you mentioned. Also what do you mean by only clicking to the left. Adjust the values if they don't fit.
|
|
|
05/02/2015, 23:04
|
#8
|
elite*gold: 0
Join Date: Nov 2010
Posts: 33
Received Thanks: 4
|
Quote:
Originally Posted by alpines
These were the coordinates you mentioned. Also what do you mean by only clicking to the left. Adjust the values if they don't fit.
|
I get it now xD
Is there any way to make the bot click on moving pixels because the box moves similar to this -
|
|
|
05/03/2015, 01:27
|
#9
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Find a spot which is always covered by the box.
|
|
|
05/03/2015, 11:37
|
#10
|
elite*gold: 0
Join Date: Nov 2010
Posts: 33
Received Thanks: 4
|
Quote:
Originally Posted by alpines
Find a spot which is always covered by the box.
|
The boxes are randomly placed on the map
|
|
|
05/08/2015, 15:10
|
#11
|
elite*gold: 0
Join Date: Jun 2012
Posts: 409
Received Thanks: 194
|
Hi,
I made a pixel bot for darkorbit a long time ago. I hope to be able to help you.
The point is, that, because your ship is moving, there is a time between when it find the pixel and when it clicks, and then, it isn't clicking on the box precisly, isn't it ?
You should firstly reduce the searching area
|
|
|
 |
Similar Threads
|
Clicking Issue
08/07/2014 - Shaiya Private Server - 2 Replies
Hello elitepvpers staff and members.
I've been recently playing on a Shaiya server that I like, but I've been having some issues.
Whenever I double click on a character ingame (Just characters, not mobs nor npc's) I keep disconnected.
I've been talking to the owner about it, but still no help. I've tried reinstalling my client, I tried re-installing the entire OS and scanned my computer for viruses but still I can't get it to work.
I have no idea what the problem is.
|
About clicking gg
10/08/2013 - DarkOrbit - 8 Replies
I hear that many players have luck when try open gate and many how dont have it, they waste so much uridium for open it.
So i wanna ask how you can raise you chanse for get parts and dont lose much uridium.
Maybe you must use specified language or you must have perfect map on home like this http://www.youscreen.de/kmchezsj14.jpg, i dont know...
I'm not noob who cry for help, i in last almost 3 years finish over 500 alpha but never found way how dont lose much uridium in it.
...
|
How to kno your exp with out clicking on the bar
01/08/2008 - CO2 Guides & Templates - 8 Replies
you can look on the F1,F2..... buttons
If the yellow line is middle F1 and F2 you got 10pct.
If the yellow line is middle F2 and F3 you got 20pct.
If the yellow line is middle F3 and F4 you got 30pct.
If the yellow line is middle F4 and F5 you got 40pct.
|
All times are GMT +1. The time now is 00:04.
|
|