Jump to content

solved


Recommended Posts

Using keystrokes like Alt+Tab to swap between different windows isn't really that reliable.

You could also just be sending the keystroke using ControlSend, then you don't have to swap windows:

ControlSend("Ragnarok Online", "", "", "{F6}")oÝ÷ Øò¢çhm}ç¥)v§ØZ¶ÚòºÈ§h§ëGjwez«¨´!Q*ºm¢­¶ººÞÜ"Ú0Z)ÀrدjתºQj    Ú®X§z«¨¶Ç§w*.®G²²Úèæ§vØ^h§Ëb½«^¢{az§vW«zÛ«ç[Éh§ëGjwey«­¢+ØÀÌØíÑ¥Ù]¥¹½Üô]¥¹Ñ!¹± ÅÕ½Ðím
Q%YtÅÕ½Ðì¤)]¥¹Ñ¥ÙÑ ÅÕ½ÐíI¹É½¬=¹±¥¹ÅÕ½Ðì¤)M¹ ÅÕ½ÐííÙôÅÕ½Ðì¤)]¥¹Ñ¥ÙÑ ÀÌØíÑ¥Ù]¥¹½Ü¤
Link to comment
Share on other sites

umh i also click on a specific position on the ragnarok window whenever it activates. is that possible without having to switch windows too?

ControlClick() will do that for you. Remember that the X and Y coordinates will be relative to the clientarea of the window though, so to find the coords using for example AutoIt Window Info Tool, look for the "ControlClick coords" instead of Mouse coords.

ControlClick("Ragnarok Online", "", "", "left", 1, 250, 250)

To click once with left mouse button at 250,250 in the RO window.

Link to comment
Share on other sites

AFAIK you're gonna have to do a DllCall for that.

$aRet = DllCall("gdi32.dll", "int", "GetPixel", "hwnd", $hDC, "int", $x, "int", $y)
$pixelColor = $aRet[0]oÝ÷ Ù: zÛax7¯Ç¢{^ÆØZÙ^Ó~¡'h¶¬jëh×6$hDC = DLLCall("user32.dll","long","GetDC","hwnd",WinGetHandle("Ragnarok Online"))
$hDC = $hDC[0]

Hope this helps. Remember the coordinates are still relative to the clientarea of the window.

Edited by SuneC
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...