Jump to content

Help me please :)


Recommended Posts

I got everything done on my little program :)

except for one thing

the window can be two different sizes

I found out the autoit window info tells me how big the windows is

but I dont know what to write as a script to tell it to check which size it is

example the window can be half your screen and the other window is full screen

so if its half screen I want it to choose the coords I give it for the half screen

any help is much appreciatet :P

this is the first "program" iam making :)

if you didnt understand what iam trying to do please tell it to me :) ill try explain it another way

Link to comment
Share on other sites

but I dont know what to write as a script to tell it to check which size it is

WinGetPos will show you the window size and position.

- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

Link to comment
Share on other sites

well the autoit window info program tells me the size

I want to know how to tell MY program to use certain coords for the half window or full window

so I got like 6 places to click the window can be 2 different sizes

so in the program I will have coords to 12 places

6 for half size and 6 for full size

how do I make it check which coords to use? half size window coords or full size window coords

Edited by DontClick
Link to comment
Share on other sites

I want to know how to tell MY program to use certain coords for the half window or full window

WinMove()

so I got like 6 places to click the window can be 2 different sizes

so in the program I will have coords to 12 places

6 for half size and 6 for full size

I don't understand what you're asking for (based upon the wording). Edited by Monamo

- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

Link to comment
Share on other sites

let me try this way ^^

imagin you are MY program

I start you...

the first thing I want you to do is check what size the window for the game is

half screen or full screen

if half screen use these coords (some coords)

if full screen use these coords (some coords)

you click the on the coords.. done

how do I make YOU(my program) do that ^^

its 6 places you click so I got 6 coordinations for you to click at

I have done that..

but those coordinations is only for the half screen window mode

I know how to take the coords for the full screen window mode

but I dont know how to make YOU(my program) check which size the window is... FULL OR HALF

Edited by DontClick
Link to comment
Share on other sites

this is what YOU(my program) do

the coordinations is for half size

when I take the coordinations for full size I will put the coordinations in the script too

but I dont know how to make YOU check which one of the coordinations to use

SplashTextOn("Gold Dropper", "Gold Dropper v1.0 Loaded", 270, 200, 1005, 0, 4, "", 8)

; Options
opt("MouseCoordMode", 0)

; Hotkeys
HotKeySet("{HOME}", "Drop")
HotKeySet("{END}", "Stop")

; Define Variables

; Functions

Func Drop()
While 1 = 1

Send("{SPACE DOWN}")
Sleep(100)
Send("{SPACE UP}")

Send("{B DOWN}")
Sleep(100)
Send("{B UP}")


MouseMove(450, 190, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")


MouseMove(570, 210, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")


MouseMove(570, 125, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")


MouseMove(625, 135, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")

MouseMove(685, 190, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")

MouseMove(685, 295, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")

Send("{SPACE DOWN}")
Sleep(100)
Send("{SPACE UP}")

Send("{B DOWN}")
Sleep(100)
Send("{B UP}")

MouseMove(450, 295, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")

MouseMove(510, 280, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")

MouseMove(565, 280, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")

MouseMove(625, 280, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")

MouseMove(470, 125, 1)
Sleep ( 120 )
MouseClick("left")

MouseMove(450, 190, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")

MouseMove(685, 190, 1)
Sleep ( 120 )
MouseClick("left")
MouseMove(269, 304, 1)
Sleep ( 120 )
MouseClick("left")

wEnd
EndFunc

Func Stop()
While 1 = 1
Sleep ( 5000 )
wEnd
EndFunc

; Body
While 1 = 1
Sleep ( 500 )
WEnd
Edited by DontClick
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...