Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 16:12

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

Advertisement



Clicking in a Position in The pc

Discussion on Clicking in a Position in The pc within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2016
Posts: 58
Received Thanks: 7
Clicking in a Position in The pc

Hey guys,

i wanna do something: I want to mark 2 position on The PC. And everytime I click for example the "F" it starts To click on the one position and 1 sec later on the other position with The mouse. That was all. Anybody can help me with The source? And how te set a position with autoit? Im a newbie . I would be very greatful for your help!

German:
Hallo Leute, ich möchte etwas mit Autoit machen: ich möchte 2 bestimme Positionen auf dem Computer markieren und dann soll das Programm bei Eingabe einer bestimmten Taste starten Beispiel "F". Wenn man F gedrückt hat soll der Mauszeiger auf die eine Koordinate ein klick machen und dann zur anderen innerhalb von 1 sec und dort ein Klick machen. Das wars. Kann mir wer mit dem Code helfen? Mit ein Anfänger . Und wisst ihr wie man Positionen setzt?
Glyp is offline  
Old 04/07/2016, 13:48   #2
 
elite*gold: 0
Join Date: Mar 2016
Posts: 104
Received Thanks: 34
öffnw scyte drück f1 und such mal nach mouseclick positionen kannst du mit dem au3info tool rausfinden kleinen source kann ich gleich schicken

Code:
HotKeySet ("{Esc}", "_pause")
HotKeySet ("{f}", "_start") 

_pause() = True  ;damit das script beim starten nich gleich anfängt zu klicken

Func _start()
   While 1
	  MouseClick("left", 302, 431, 1, 25)  ;linker mausklick 302, 431 coords wo geklickt wird 1 mausklick und geschwindigkeit
	  Sleep(1000)
	  MouseClick("left", 70, 342, 1, 25)
   WEnd
EndFunc

Func _pause()  ;pausiert das script
   While 1
	  Sleep(1)
   WEnd
EndFunc
info tool weisst du wie das geht wo du schauen musst ?
M3mphizzt is offline  
Thanks
1 User
Old 04/07/2016, 14:03   #3
 
elite*gold: 0
Join Date: Mar 2016
Posts: 58
Received Thanks: 7
Wink

Wäre nett!

Danke! Ne, habe das Programm ja nicht mal. Möchte es später downloaden. Ich hatte es früher mal hahah. Wenn du dazu noch was erklären könntest also zum Infotool, wäre ich dir ebenso dankbar!

Also wenn ich jetzt f drücken würde, würde nur 1 mal auf die 2 Koordinaten geklickt und dann pausiert bis ich wieder f drücke?

Und die Geschwindigkeit, was bedeutet die 25?
Glyp is offline  
Old 04/07/2016, 14:28   #4
 
elite*gold: 0
Join Date: Mar 2016
Posts: 104
Received Thanks: 34
mach ich kurz screens mit paint paar min

ps. wenn du f drückst wird so lange auf die 2 koordinaten geklickt bis du pause drückst und die 25 geschwindigkeit is wie schnell die maus sich bewegt 0 is dass die maus direkt auf die koordinaten geht mit 25 kannst du noch sehen das sich die maus bewegt
M3mphizzt is offline  
Thanks
1 User
Old 04/07/2016, 14:29   #5
 
elite*gold: 0
Join Date: Mar 2016
Posts: 58
Received Thanks: 7
Wow, wie hilfsbereit du bist! Einfach krass... Danke dir!
Glyp is offline  
Old 04/07/2016, 14:41   #6
 
elite*gold: 0
Join Date: Mar 2016
Posts: 104
Received Thanks: 34
sry wie auf dem bild kein paint pro xD


ps. helfe immer gern wo ich kann
M3mphizzt is offline  
Thanks
1 User
Old 04/07/2016, 14:47   #7
 
elite*gold: 0
Join Date: Mar 2016
Posts: 58
Received Thanks: 7
Danke!
Glyp is offline  
Old 04/07/2016, 14:50   #8

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
PHP Code:
#include <Misc.au3>

Global $hDLL DllOpen("user32.dll")
Global 
$x,$y

setzen
()
MsgBox(0,"","X wurde auf " $x " gesetzt" & @CRLF "Y wurde auf " $y " gesetzt")

Func setzen()

    While (
Not _IsPressed(01,$hDLL))
        
$current MouseGetPos()
        If 
Not (($current[0] = $x) And ($current[1] = $y)) Then
            ToolTip
("Zum Speichern der Koordinate linksklicken")
        EndIf
        
$x $current[0]
        
$y $current[1]
    
WEnd
    Sleep
(300)

EndFunc 
So kannst du beispielsweise Koordinaten jedes mal neu setzen
Moneypulation is offline  
Thanks
1 User
Old 04/07/2016, 14:56   #9
 
elite*gold: 0
Join Date: Mar 2016
Posts: 104
Received Thanks: 34
hmm gut zum koordinaten aktualisieren nich schlecht aber wenn das feste coods sind (bisschen unnütze) und fürn anfänger nich recht wenig verständlich

ps. wie siehts mit mbot aus läuft der noch ? :P
M3mphizzt is offline  
Thanks
1 User
Reply

Tags
autoit, cordinates, mouse


Similar Threads Similar Threads
Issue with clicking
05/08/2015 - AutoIt - 10 Replies
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)
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 16:13.


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.