Glyph Posted December 13, 2006 Posted December 13, 2006 Is there a way to find the Desktop settings and then by finding the desktop settings have it store the exact middle pixels in a XXxXX square of the screen into a variable? Just guessing... If @DesktopHeight = $vara and @DesktopWidth=$varb then IniWrite(@Scriptdir & "\Settings.ini", "Middle", "1", '50,50,50,50') endif Whats the command, if any to find the middle pixel? tolle indicium
botanic Posted December 13, 2006 Posted December 13, 2006 @DesktopHeight And @DesktopWidth are what you needi think you could do an expression like this one@desktopheight / 2 = $heightmid@desktopwidth /2 =$withmidthen just do the iniwrite
Glyph Posted December 13, 2006 Author Posted December 13, 2006 (edited) Would this work? $a=@desktopheight / 2 = $heightmid $b=@desktopwidth /2 =$widthmid $heightmid=() $widthmid=() Edited December 13, 2006 by backstabbed tolle indicium
AnythinG Posted December 13, 2006 Posted December 13, 2006 Whats the command, if any to find the middle pixel? well... if you need the middle pixel, just calculate it $a = @DesktopWidth/2 $b= @DesktopHeight/2 MsgBox(0,"","The midle is: " & $a & "," & $b) hope this will help you
Glyph Posted December 13, 2006 Author Posted December 13, 2006 (edited) -edit never mind.. Edited December 13, 2006 by backstabbed tolle indicium
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now