Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 05:14

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

Advertisement



Mousedown/Mouseup

Discussion on Mousedown/Mouseup within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
SCORNI's Avatar
 
elite*gold: 26
Join Date: Jun 2009
Posts: 972
Received Thanks: 228
Mousedown/Mouseup

Hallo epvp,

und zwar möchte ich ein Programm schreiben, welches so eine Funktion benötigt

if mousedown then alle_100_ms_linke_maustaste_drücken until mouseup

Jedoch ist mir bei Autoit keine Abfrage bekannt die überprüfen kann ob die linke maustaste unten oder oben ist.

Deshalb ist meine Frage ob jemand so eine Funktion kennt oder eine andere Methode mit der sowas realisierbar ist.
SCORNI is offline  
Old 06/19/2012, 11:27   #2


 
K1ramoX's Avatar
 
elite*gold: 26
Join Date: Jan 2012
Posts: 3,474
Received Thanks: 18,844
Code:
#include <Misc.au3>

Global $Dll_handle = DllOpen("user32.dll")
OnAutoItExitRegister("_Exit")
AdlibRegister("_Check", 100)

While 1
	Sleep(10)
WEnd

Func _Check()
	If _IsPressed("01", $Dll_handle) Then
		MouseClick("left")
	EndIf
EndFunc

Func _Exit()
	AdlibUnRegister("_Check")
	DllClose($Dll_handle)
	Exit
EndFunc
Ziemlich einfach sowas o':
K1ramoX is offline  
Thanks
1 User
Old 06/19/2012, 21:18   #3
 
SCORNI's Avatar
 
elite*gold: 26
Join Date: Jun 2009
Posts: 972
Received Thanks: 228
Danke, ein einfaches _IsPressed hätts zwar auch getan aber so hast du mir das schreiben schon abgenommen.

Mir war völlig entgangen das ich mit ispressed 01 überprüfen kann ob die maus unten ist, ich dachte das die funktion einfach nur den Klick registriert und nicht ob left_down ist.
SCORNI is offline  
Old 03/10/2013, 14:34   #4
 
elite*gold: 0
Join Date: Mar 2013
Posts: 2
Received Thanks: 0
Mouseup/down

Hi Leute, hab heute mir des autoit runtergeladen. Komm aber net so klar.
Bräuchte ein script für folgendes:

Nach drücken der F12 Taste sollte der Cursor (also Pfeil) auf eine bestimmte Position hinfahren und dort die Linke Mousetaste für 1,5 Sek. halten.

Geht sowas.

Merci

Tschau
firela112
firela112 is offline  
Old 03/10/2013, 15:15   #5
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
Quote:
Originally Posted by firela112 View Post
Hi Leute, hab heute mir des autoit runtergeladen. Komm aber net so klar.
Bräuchte ein script für folgendes:

Nach drücken der F12 Taste sollte der Cursor (also Pfeil) auf eine bestimmte Position hinfahren und dort die Linke Mousetaste für 1,5 Sek. halten.

Geht sowas.

Merci

Tschau
firela112
f12 geht nicht als hotkey, müsstest du ändern
und für x und y deine position einfügen. (im installationsorder von autoit findest du ein "autoit window info" programm, welches dir die posi ausgeben kann,

PHP Code:
HotKeySet("{F12}""_Start")

While 
Sleep(100)
WEnd


Func _Start
()
    
MouseMove(xy)
    
MouseDown("Left")
    
Sleep(1500)
    
MouseUp("left")
EndFunc 
omer36 is offline  
Old 03/10/2013, 15:21   #6
 
elite*gold: 0
Join Date: Mar 2013
Posts: 2
Received Thanks: 0
Super Danke
firela112 is offline  
Reply




All times are GMT +1. The time now is 05:14.


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.