yellowmellow Posted December 17, 2017 Share Posted December 17, 2017 Lets say i want to convert x,y coords from the given resolution 1600x900 to 1366x768. Can this be made ? Link to comment Share on other sites More sharing options...
Developers Jos Posted December 17, 2017 Developers Share Posted December 17, 2017 Isn't that just a matter of a simple formula? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
yellowmellow Posted December 17, 2017 Author Share Posted December 17, 2017 i think it is, but when you have like 360 400 coords to convert it becomes a bit hard, i was hoping that i can convert all of the dots that i click on 1600x900 with some command that i dont know in Autoit yet Link to comment Share on other sites More sharing options...
Developers Jos Posted December 17, 2017 Developers Share Posted December 17, 2017 No idea what you mean but it sounds like you are looking for a PerformMagic() function. Jos Earthshine 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
yellowmellow Posted December 17, 2017 Author Share Posted December 17, 2017 well lets say i want to convert mouseclick("left", 84, 822, 1) - 1600x900 resolution to 1366x 768 resolution Link to comment Share on other sites More sharing options...
Developers Jos Posted December 17, 2017 Developers Share Posted December 17, 2017 Again... what did you try already that isn't working? ..and I can't think of any automation issues that would need this amount of conversions anyways. Jos Earthshine 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
yellowmellow Posted December 17, 2017 Author Share Posted December 17, 2017 no issues, i just dont know if i can somehow convert that exact click to happen on the new resolution but i guess im thinking wrong here, since its a different resulution i will never be able to click the same location on screen on different resolution Link to comment Share on other sites More sharing options...
Belini Posted December 17, 2017 Share Posted December 17, 2017 (edited) see if help! $position = coords(1600, 900, 1366, 768, 84, 822) MsgBox(4096, "Result", "Left: " & $position[1] & @CRLF & "Top: " & $position[2]) Func coords($res_w_before = 0, $res_h_before = 0, $res_w_now = 0, $res_h_now = 0, $left = 0, $top = 0) Local $array[3] Local $horiz = $res_w_before / $left Local $vert = $res_h_before / $top $array[1] = $res_w_now / $horiz $array[2] = $res_h_now / $vert Return $array EndFunc ;==>coords Edited December 17, 2017 by Belini My Codes: Virtual Key Code UDF: http://www.autoitscript.com/forum/topic/138246-virtual-key-code-udf/ GuiSplashTextOn.au3: http://www.autoitscript.com/forum/topic/143542-guisplashtexton-udf/ Menu versions of Autoit: http://www.autoitscript.com/forum/topic/137435-menu-versions-of-autoit/#entry962011 Selects first folder of letters: ]http://www.autoitscript.com/forum/topic/144780-select-folders-by-letter/#entry1021708/spoiler] List files and folders with long addresses.: http://www.autoitscript.com/forum/topic/144910-list-files-and-folders-with-long-addresses/#entry102 2926 Program JUKEBOX made in Autoit:some functions:http://www.youtube.com/watch?v=WJ2tC2fD5Qs Navigation to search:http://www.youtube.com/watch?v=lblwOFIbgtQ Link to comment Share on other sites More sharing options...
Bert Posted December 17, 2017 Share Posted December 17, 2017 Is there some reason you can't do a control click? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
iamtheky Posted December 17, 2017 Share Posted December 17, 2017 (edited) 3 hours ago, yellowmellow said: no issues, i just dont know if i can somehow convert that exact click to happen on the new resolution but i guess im thinking wrong here, since its a different resulution i will never be able to click the same location on screen on different resolution middle is always @desktopwidth/2 and @desktopheight/2, so is there a reason you cant do everything as a percentage of those two macros rather than absolutes? Edited December 17, 2017 by iamtheky careca 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Earthshine Posted December 17, 2017 Share Posted December 17, 2017 (edited) Ratios. Yes. Easy math. No, we are not going to do it for you Edited December 17, 2017 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
mikell Posted December 17, 2017 Share Posted December 17, 2017 Ratio ? Hmmm. Not sure that a game window whose size is let's say, 900x900, will get a different size if the resolution changes iamtheky 1 Link to comment Share on other sites More sharing options...
Earthshine Posted December 17, 2017 Share Posted December 17, 2017 Isn’t that against policy here? My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
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