Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 19:43

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

Advertisement



ControlClick in D3 Windowmode

Discussion on ControlClick in D3 Windowmode within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
elite*gold: 250
Join Date: Mar 2010
Posts: 840
Received Thanks: 184
ControlClick in D3 Windowmode

Also ich habe folgendes Problem:

Ich möchte, dass mein Script via ControlClick in meinem D3 Fenster (Fenster Modus) klickt. Das Problem ist nur, dass nichts passiert...

Code:
ControlClick("Diablo V1", "", "","left",1,141,387)
	Sleep (800)
	ControlClick("Diablo V1", "", "","left",1,153,192)
	Sleep (800)
	ControlClick("Diablo V1", "", "","left",1,145,249)
Wo liegt da mein Problem?
FoGzone is offline  
Old 04/09/2013, 00:40   #2
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
Quote:
Originally Posted by FoGzone View Post
Wo liegt da mein Problem?
also dein problem ist, dass controlclick nicht bei d3 ankommt

naja mit controlclick ists halt so ne sache das funktioniert nicht überall. wenns nicht klappt kann man da nichts machen.
butter123 is offline  
Old 04/09/2013, 00:50   #3

 
elite*gold: 250
Join Date: Mar 2010
Posts: 840
Received Thanks: 184
Quote:
Originally Posted by butter123 View Post
also dein problem ist, dass controlclick nicht bei d3 ankommt

naja mit controlclick ists halt so ne sache das funktioniert nicht überall. wenns nicht klappt kann man da nichts machen.
Naja aber irgendwie muss es ja machbar sein.
Ich habe bei meiner Suche nach einer Lösung einen kleinen Test gefunden.

Code:
#include <GUIConstants.au3>

$fenster = GUICreate("testgui",400,300)
$button = GUICtrlCreateButton("button1",20,20,100,50)
$label = GUICtrlCreateLabel("Klicks: ",20,80,50,50)
GUISetState()

$klicks = 0

While 1
$msg = GUIGetMsg()
Switch $msg
Case $GUI_Event_Close
ExitLoop
Case $button
$klicks = $klicks+1
GUIctrlSetData($label, "Klicks: "&$klicks)
EndSwitch
sleep(30)
WEnd
Exit
Code:
HotKeySet ("{NUMPAD1}","_Start")
HotKeySet ("{NUMPAD2}","_Exit")

While 1
Sleep (10)
WEnd


Func _Start()
While 1
Sleep (100)
ControlClick("testgui", "", "button1")
Sleep(500)
WEnd
EndFunc

Func _Exit()
Exit
EndFunc
So wie es hier steht klappt alles.
Ändere ich allerdings das Ganze so um, dass er auf die Koordinaten des Buttons (hab die mit dem Window Tool geholt und ja auch darauf geachtet, dass es die Koordinaten innerhalb des Fensters sind) klickt, passiert nichts mehr
FoGzone is offline  
Old 04/09/2013, 17:15   #4
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
ich würde gerne mal so nebenbei gerne mal alle controlclick / controlsend alternativen hier aufgelistet haben wenn es geht

und zum thread : gewöhn dir an #RequireAdmin am anfang des scripts zu schreiben . bei einigen leute besonders wenn du was released ist mir aufgefallenb funktioniert manches nicht richtig ohne admin rechte
YatoDev is offline  
Old 04/18/2013, 09:16   #5

 
elite*gold: 250
Join Date: Mar 2010
Posts: 840
Received Thanks: 184
Ich habs endlich geschafft

Code:
#requireAdmin

HotKeySet ("{NUMPAD1}","_Start")
HotKeySet ("{NUMPAD2}","_Exit")

Opt ('WinTitleMatchMode','2') ; Helps With Getting The Window Information...
$Title = 'Diablo III' ; The Name Of The Game...
$Full = WinGetTitle ($Title) ; Get The Full Title..
$HWnD = WinGetHandle ($Full) ; Get The Handle
$iButton = 'left' ; Button The Mouse Will Click I.E. "Left Or Right"
$iClicks = '1' ; The Number Of Times To Click
$iX = '187' ; The "X" Pos For The Mouse To Click
$iY = '360' ; The "Y" Pos For The Mouse To Click


While 1
Sleep (10)
WEnd


Func _Start()
Sleep (100)
If IsHWnD ($HWnD) And WinExists ($Full) <> '0' Then ; Win Check
ControlClick ($HWnD, '','', $iButton, $iClicks, $iX, $iY) ; Clicking The Window While Its Minmized
EndIf
Sleep(500)
EndFunc

Func _Exit()
Exit
EndFunc
FoGzone is offline  
Reply


Similar Threads Similar Threads
WR Windowmode ?
07/31/2012 - WarRock - 2 Replies
Geht es ? :D
Fenstermodus/Windowmode
03/02/2010 - CrossFire - 11 Replies
Hey Guys, I want to play Crossfire in Windowmode. When I put a tick by Windowmode in the options the game is Windowmode but if i join a game the game goes in the fullscreen mode. Hey Leute, Ich möchte Crossfire im Fenstermodus spielen. Wenn ich in den Optionen Fenstermodus einstelle geht das Spiel zwa rin den Fenstermodus, aber wenn ich dann einem Spiel joine geht es in den Vollbildmodus.
Windowmode Programm
09/17/2009 - Main - 7 Replies
Hi ich hab bis vor kurzem viel onlinespiele gezockt^^ Die haben ja meistens diese nette kleine Windowmode funktion mit der das spiel einfach zu nem fenster auf dem desktop wird jetz bin ich allerdings auf ein spiel umgestiegen das mir das leider nich ermöglicht... Oder die Kurzform: Kennt wer ein Programm mit dem ich die Anzeigefläche meines bildschirms in 2 Teile aufteilen kann? (so das ich Spiel+ICQ gleichzeitig angucken kann^^)
WindowMode erzwingen
06/17/2008 - General Coding - 7 Replies
Hi, ich arbeite im Moment mit Age of Empires 2 und ollydbg. Allerdings komme ich nicht mehr zur Windowsoberfläche zurück, wenn der Prozess eingefroren wird.. Sieht dann alles so aus :> Directupload.net - lxorrtgq.jpg Grüße
Windowmode
09/01/2007 - Archlord - 3 Replies
The trick with the change of resolution dont work most of the time.... 1. Open the file: ini&#092;COption.ini 2. go to line Width=1024



All times are GMT +2. The time now is 19:43.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.