Hey!
Ich bin gestern von NOX App player ( gezwungenermaßen) auf MEmu gewechselt.
Jetzt habe ich das Problem, dass ich MEmu nicht mit Controlclicks angesprochen bekomme.
1.
Kann mir jemand sagen, wo mein Fehler liegt? Ist auch ein recht einfaches Script und hat nur Basisfunktionen, erfüllt jedoch seinen Zweck.
2.
Wo müsste ich
welche Zeile Code einfügen, um dem fenster eine bestimmte Größe zuzuordnen, auch wenn es im Hintergrund ist?
Code:
Opt ('WinTitleMatchMode','2') ; Helps With Getting The Window Information...
$Title = 'MEmu 2.8.6 - MEmu' ; 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 = '149' ; The "X" Pos For The Mouse To Click Click on advanced
$iY = '564' ; The "Y" Pos For The Mouse To Click
$iX1 = '67' ; The "X" Pos For The Mouse To Click Choose first friend
$iY1 = '317' ; The "Y" Pos For The Mouse To Click
$iX2 = '245' ; The "X" Pos For The Mouse To Click Depart
$iY2 = '739' ; The "Y" Pos For The Mouse To Click
$iX3 = '30' ; The "X" Pos For The Mouse To Click Autofight
$iY3 = '836' ; The "Y" Pos For The Mouse To Click
$iX4 = '240' ; The "X" Pos For The Mouse To Click
$iY4 = '719' ; The "Y" Pos For The Mouse To Click
$iX5 = '250' ; The "X" Pos For The Mouse To Click
$iY5 = '748' ; The "Y" Pos For The Mouse To Click
$iX6 = '230' ; The "X" Pos For The Mouse To Click Click Next on Rewarditems
$iY6 = '710' ; The "Y" Pos For The Mouse To Click
If IsHWnD ($HWnD) And WinExists ($Full) <> '0' Then ; Win Check
while 1
ControlClick ($HWnD, '','', $iButton, $iClicks, $iX, $iY) ; Clicking The Window While Its Minmized
sleep (3000)
ControlClick ($HWnD, '','', $iButton, $iClicks, $iX1, $iY1) ; Clicking The Window While Its Minmized
sleep (4000)
ControlClick ($HWnD, '','', $iButton, $iClicks, $iX2, $iY2) ; Clicking The Window While Its Minmized
sleep (7000)
ControlClick ($HWnD, '','', $iButton, $iClicks, $iX3, $iY3) ; Clicking The Window While Its Minmized
sleep (120000)
ControlClick ($HWnD, '','', $iButton, $iClicks, $iX4, $iY4) ; Clicking The Window While Its Minmized
sleep (8000)
ControlClick ($HWnD, '','', $iButton, $iClicks, $iX5, $iY5) ; Clicking The Window While Its Minmized
sleep (8000)
ControlClick ($HWnD, '','', $iButton, $iClicks, $iX6, $iY6) ; Clicking The Window While Its Minmized
sleep (2000)
sleep (2200000)
wend
EndIf
es gäbe bestimmt einfachere Möglichkeiten, dies zu bewerksteligen, jedoch hat es bisher unter NOX problemlos funktioniert.
Danke im Voraus!
P.S. name des Fensters ist MEmu 2.8.6 - MEmu
Hey!
I had to switch from nox to MEmu lately.
No i got the problem that i cant send control clicks to the memu window
1.
Could some1 tell me, where is my failure in code? there is no big deal in functionality, but was doing its job with Nox.
2.
where do i have to enter which line of code to resize the window, even if its in the background?
For the Code see the above Post!
I know there might be easier ways to do what my script is doing, but it is (well, was) working so i havent seen any use in enhancing it.
Thanks in advance for any help!
P.S. name of the window is MEmu 2.8.6 - MEmu