Jump to content
Sign in to follow this  
alienkillaz

desktop resolution problem

Recommended Posts

alienkillaz

i made this script to basicly draw a smiley face in mspaint

i made it on my computer wich has a desktop resolution of 1600x1200

it doesnt work on other resolutions.

im trying to think of a way to make the script modify all my x an y coordinates depending on what i tell it the current computers desktop resolution is.

The current resolution variables in the script are to make mspaint set iteslf to whatever x,y i define in the .ini

$SettingsFile = @SCRIPTDIR & '\Settings.ini'

$Sleep = IniRead ( "Settings.ini", 'Sleep', 'Sleep', "" )

Opt("MouseCoordMode", 0)

Run("mspaint.exe")

Sleep ( $Sleep )

WinActivate("untitled - paint", "")

MouseClick("1", 21, 242, 1, 0)

send("!f", 0)

Send("{LEFT}{x}")

send("^e", 0)

send("!p", 0)

send("{tab 5}")

$send = IniRead ("settings.ini", "resolution", "resolution1", "" )

send($send)

send("{tab}")

$send = IniRead ("settings.ini", "resolution", "resolution2", "" )

send($send)

send("{enter}")

MouseClick("1", 34, 319, "1", 0)

Mousemove(291, 205, 0)

MouseClickDrag("1", 291, 205, 1306, 1051, 0)

mouseclick("1", 42, 1103, "1", 0)

MouseClickDrag("1", 553, 308, 730, 564, 0)

MouseClickDrag("1", 852, 308, 1017, 564, 0)

MouseClickDrag("1", 714, 577, 850, 705, 0)

MouseClickDrag("1", 590, 831, 1054, 958, 0)

Share this post


Link to post
Share on other sites
Dalarn

...a...

Edited by Dalarn

Share this post


Link to post
Share on other sites
alienkillaz

hey thanks man ill definatly be able to figure it out with that example u made

thx

Share this post


Link to post
Share on other sites
Dalarn

...a...

Edited by Dalarn

Share this post


Link to post
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
Sign in to follow this  

×