Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 11:56

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

Advertisement



Loop Script for Elite Dangerous

Discussion on Loop Script for Elite Dangerous within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
elite*gold: 322
Join Date: Jan 2005
Posts: 57
Received Thanks: 4
Loop Script for Elite Dangerous

Hi Jungs,

erstmal wünsche ich euch ein frohes neues Jahr

So jetzt zu meinem problem.
Ich möchte ein ClickBot für Elite Dangerous machen (für Reputation sammeln an einer Station) bzw. er ist schon fertig nur funktioniert er noch nicht richtig :/
Beim ersten ausführen des Bots geht alles so wie ich es möchte. Dann soll es 30min pausieren und dann wieder alles von neu machen. Aber nach der Pause tut sich nicht´s mehr


-------------

Hey Guys,

I wish you a happy new year.
I want make ClickBot for Elite Dangerous for Reputation Farming on a Station. I have already written the Bot but after the 1st successful running
the bot should make a 30min break. The problem is after the break he do nothing.

thx for your help


Code:
#RequireAdmin

HotKeySet ("F2", "_Exit")


   While 1


sLeep (5000)

;1
MouseMove ( 638, 588 ) ;Machtkontakt
MouseDown ( "left" )
Sleep (500)
MouseUp ("left")

Sleep (1000)

MouseMove ( 2076, 454 ) ; MouseScrollDown
MouseDown ( "left" )
sLeep (1000)
MouseMove ( 2076, 762 )
MouseUp ( "left" )

MouseMove ( 2031, 546 ) ; Verstärkung aufnehmen 5sec
MouseDown ( "left" )
sLeep (5000)
MouseUp ( "left" )

MouseMove ( 1190, 586 ) ; Verstärkung bestätigen
MouseDown ( "left" )
sleep (500)
MouseUp ( "left" )

MouseMove ( 638, 541 ) ; Kampfbelohnung
MouseDown ( "left" )
sleep (500)
MouseUp ( "left" )

sleep (1855000)

WEnd


Func _Exit()
   Exit
   EndFunc
Syman is offline  
Old 01/02/2016, 22:11   #2
 
elite*gold: 1908
Join Date: Jan 2013
Posts: 832
Received Thanks: 629
Bro 1st mistake in your code:
1) Setting of hotkey....right is: HotKeySet ("{F2}", "_Exit")

and probably 1855000 is too big sleep function....cos with shorter time it works normally ...try something like this:
$counter=0
While $counter<30
sleep(60000)
$counter+=1
wend

Maybe I am wrong but you can try
ssamko is offline  
Old 01/02/2016, 22:59   #3

 
elite*gold: 322
Join Date: Jan 2005
Posts: 57
Received Thanks: 4
thx for the hotkey tip.

the problem is I need the 30min break. Earlier I cant conifirm the button.

And the Maximum sleep time in AutoIt is 2147483647 milliseconds (24 days)

But I´ll try your tip
Syman is offline  
Old 01/03/2016, 08:12   #4
 
elite*gold: 0
Join Date: Dec 2015
Posts: 14
Received Thanks: 40
Quote:
Originally Posted by Syman View Post
Hi Jungs,

erstmal wünsche ich euch ein frohes neues Jahr

So jetzt zu meinem problem.
Ich möchte ein ClickBot für Elite Dangerous machen (für Reputation sammeln an einer Station) bzw. er ist schon fertig nur funktioniert er noch nicht richtig :/
Beim ersten ausführen des Bots geht alles so wie ich es möchte. Dann soll es 30min pausieren und dann wieder alles von neu machen. Aber nach der Pause tut sich nicht´s mehr


-------------

Hey Guys,

I wish you a happy new year.
I want make ClickBot for Elite Dangerous for Reputation Farming on a Station. I have already written the Bot but after the 1st successful running
the bot should make a 30min break. The problem is after the break he do nothing.

thx for your help


Code:
#RequireAdmin

HotKeySet ("F2", "_Exit")


   While 1


sLeep (5000)

;1
MouseMove ( 638, 588 ) ;Machtkontakt
MouseDown ( "left" )
Sleep (500)
MouseUp ("left")

Sleep (1000)

MouseMove ( 2076, 454 ) ; MouseScrollDown
MouseDown ( "left" )
sLeep (1000)
MouseMove ( 2076, 762 )
MouseUp ( "left" )

MouseMove ( 2031, 546 ) ; Verstärkung aufnehmen 5sec
MouseDown ( "left" )
sLeep (5000)
MouseUp ( "left" )

MouseMove ( 1190, 586 ) ; Verstärkung bestätigen
MouseDown ( "left" )
sleep (500)
MouseUp ( "left" )

MouseMove ( 638, 541 ) ; Kampfbelohnung
MouseDown ( "left" )
sleep (500)
MouseUp ( "left" )

sleep (1855000)

WEnd


Func _Exit()
   Exit
   EndFunc
How about if you try the adlibregister function
sgian910 is offline  
Reply


Similar Threads Similar Threads
Loop Script
12/26/2015 - AutoIt - 7 Replies
Ich suche ein Makro mit dem es möglich ist z.B. Taste E gedrückt zu halten so das im Spiel dann alle 0.5 Sekunden Taste E gedrückt wird. Hab leider keinen Plan von Autoit oder AHK
[Help] IBot Town script loop
04/11/2012 - Silkroad Online - 0 Replies
Hello, I'm playing on ISRO , not SRO-R. And the problem is I can't set auto re-supply on a bot for example Constantinople: go(-10647,2605) go(-10628,2584) talk(Storage) go(-10648,2615) go(-10667,2640) talk(Sell) talk(Repair) go(-10697,2615)
[Help] IBot Town script loop
04/11/2012 - Silkroad Online - 0 Replies
Hello, I'm playing on ISRO , not SRO-R. And the problem is I can't set auto re-supply on a bot for example Constantinople: go(-10647,2605) go(-10628,2584) talk(Storage) go(-10648,2615) go(-10667,2640) talk(Sell) talk(Repair) go(-10697,2615)
Loop Script
11/21/2011 - Dekaron - 0 Replies
hello, I am trying to get a part of my script to loop a certain number of times before moving on to another part. I cant seem to get the lstart syntax right. is it suppossed to be like this lstart;(script)lend;#, ? cause that doesnt seem to work for me. any help would be great, thanks for reading.



All times are GMT +1. The time now is 11:56.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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