I want to make an bot for all resolutions for League of Legends, but, i don't know how to make WindowFocus (my point: switches to that window - if active), here is my code so far:
Quote:
Global $resolution
; ------------------------------------------------------------------------------
Func _Desktop_Resolution()
Switch $resolution = ""
Case @DesktopWidth = 640 And @DesktopHeight = 480; Video Graphics Array
Case @DesktopWidth = 800 And @DesktopHeight = 480; Wide Video Graphics Array
Case @DesktopWidth = 854 And @DesktopHeight = 480; Full Wide Video Graphics Array
Case @DesktopWidth = 800 And @DesktopHeight = 600; Super Video Graphics Array
Case @DesktopWidth = 960 And @DesktopHeight = 540; Quarter Full HD
Case @DesktopWidth = 1024 And @DesktopHeight = 576; Wide Super Video Graphics Array
Case @DesktopWidth = 1024 And @DesktopHeight = 600; Wide Super Video Graphics Array
Case @DesktopWidth = 1024 And @DesktopHeight = 768; eXtended Graphics Array
Case @DesktopWidth = 1152 And @DesktopHeight = 864; eXtended Graphics Array Plus
Case @DesktopWidth = 1280 And @DesktopHeight = 720; Wide eXtended Graphics Array
Case @DesktopWidth = 1280 And @DesktopHeight = 768; Wide eXtended Graphics Array
Case @DesktopWidth = 1280 And @DesktopHeight = 800; Wide eXtended Graphics Array
Case @DesktopWidth = 1280 And @DesktopHeight = 960; Super eXtended Graphics Array
Case @DesktopWidth = 1280 And @DesktopHeight = 1024; Super eXtended Graphics Array
Case @DesktopWidth = 1360 And @DesktopHeight = 768; Wide eXtended Graphics Array
Case @DesktopWidth = 1366 And @DesktopHeight = 768; High Definition (720p)
Case @DesktopWidth = 1440 And @DesktopHeight = 900; Wide Super eXtended Graphics Array
Case @DesktopWidth = 1400 And @DesktopHeight = 1050; Wide Super eXtended Graphics Array
Case @DesktopWidth = 1600 And @DesktopHeight = 900; High Definition Plus (900p
Case @DesktopWidth = 1600 And @DesktopHeight = 1200; Ultra eXtended Graphics Array
Case @DesktopWidth = 1680 And @DesktopHeight = 1050; Wide Super eXtended Graphics Array Plus
Case @DesktopWidth = 1920 And @DesktopHeight = 1080; Full High Definition (1080p)
ControlFocus("[CLASS:PVP.net Client]", "", "");
MouseClick("left", 1413, 890, 1620)
EndSwitch
EndFunc
Results: It didn't worked(i'm testing at 1920x1080 case, since that's my resolution)
One more question sir, i cound't find it on google, here it is: The Script: WinActivate("PVP.net Client")
MouseClick("left", 1413, 890, 1620)
MouseClick("left", 1402, 365, 1620)
MouseClick("left", 1402, 365, 1620)
MouseClick("left", 473, 846, 1620)
Works fine and the cases too, but, it doesen't stops clicking, it just shows LoL launcher and don't clicks and continues as it should, the mouse just simply clicks where you put it!
WinActivate("PVP.net Client")
MouseClick("left", 1413, 890, 1620)
MouseClick("left", 1402, 365, 1620)
MouseClick("left", 1402, 365, 1620)
MouseClick("left", 473, 846, 1620)
This is the script, the mouse just keeps clicking, but, not where it should, should i make video?
Are you sure your coordinates and the amount of clicks are right?
Because 1620 clicks seems a bit unusual to me.
Here's the page to the documentation of MouseClick, maybe it'll help you
Frage Neues Kostüm Window(Window) 05/15/2013 - Metin2 Private Server - 11 Replies Nabend. :)
Ich habe da eine Frage, und zwar, ich habe mein Inventar etwas verändert das es so aussieht:
http://s14.directupload.net/images/130513/l8u8u9m h.png
Nun ist meine Frage, wie kann man machen, das die Kostüme nicht mehr in das Kleine Fenster gehen, sondern in den Kostüm Bereich im Inventar?
Die Slots im Inventar sind bereits definiert.