Jump to content

A question about screen cordinates


Recommended Posts

I have create a script run on 4:3 screen, but when I run on 16:3 screen, It dont run extractly. So I create the script again (on 4:3 screen) and the pixel coordinates depend on active windows. But when I run on 16:3 screen, It still error.

Could anyone help me???

Link to comment
Share on other sites

Please post source code 1st to see your problem.

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

I have create a script run on 4:3 screen, but when I run on 16:3 screen, It dont run extractly. So I create the script again (on 4:3 screen) and the pixel coordinates depend on active windows. But when I run on 16:3 screen, It still error.

Could anyone help me???

if your script is with PixelSearch you can try MouseCoordMode,PixelCoordMode,@DesktopHeight,@DesktopWidth,WinGetPos.

you did not posted any codes so noone can know in what part you have problems.

Pixelsearch on diffrent resolution in game windows (full screen) can return that he did not finde that collor becose on diffrent resolutions that color is on the other place and it have slightly diffrent color.

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

here's my code:

Global $Paused, $counter = 0
HotKeySet( "{ESC}", "Quit"); quit = ESC
HotKeySet("`", "TogglePause")
WinWaitActive("Element Client")
WinMove("Element Client","", -1, -1, 1026,743)
Opt("MouseCoordMode", 0)
Opt("PixelCoordMode", 0)

;$l = 1
while 1
    $p = 1
While $p

    send("0")
    $a = 1
    Do
        Sleep(1000)
        if $a = 300 Then
        ExitLoop
        EndIf
    $a = $a+1
    Until PixelSearch( 209, 53, 209, 59, 0xA20205) <> @error
    $b = 1
    Do
        sleep(1000)
        if $b = 300 Then
        ExitLoop
        EndIf
    $b = $b+1
until pixelsearch(213,67,213,67,0x4BCDFF) <> @error     
    sleep(1000)
    send("0")
    sleep(3000)

;target mob & kill mob
    send("{tab}")
    sleep(3000)
    send("4")
    sleep(2000)
    send("1")
    sleep(2000)
    send("3")
    sleep(2000)
    send("1")
    sleep(1000) 
;kill mob until die
$i = 1
    Do
    sleep(1000)
    send("1")
        if $i = 60 Then 
        ExitLoop
        EndIf
    $i = $i+1
    until PixelSearch(299, 59, 299, 59, 0xFF4730) = @error  
    

    send("2")
    sleep(1000)
    send("2")
    sleep(1000)

    if $p = 20 Then         
        ExitLoop
    EndIf
    $p = $p + 1
WEnd
    send("{f5}")
    sleep(1000)
WEnd

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0, $counter, 1)
    WEnd
    ToolTip("")
EndFunc

Func Quit() 
    Exit
EndFunc
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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