Jump to content

desktop resolution problem


Recommended Posts

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)

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...