EmilyLove Posted August 6, 2016 Share Posted August 6, 2016 (edited) So here is my issue. I have a script that automatically adds coupons to my Dollar General account. Problem is when the display scaling is not 100%, the mouseclick does not click in the right spot when using imagesearch. How can I fix this? What is Display Scaling https://github.com/BetaLeaf/Dollar-General-Digital-Coupon-Bot Dollar-General-Digital-Coupon-Bot-0.1.zip Edited August 7, 2016 by BetaLeaf Link to comment Share on other sites More sharing options...
Xandy Posted August 10, 2016 Share Posted August 10, 2016 Can you keep the Display Scaling at 100%? You probably already found JohnOne's and mLipok's solution: here. Is your issue the DPI explained: here? Note the section: " This setting is stored as the DpiValue DWORD data value in a long subkey per display in the registry location below. HKEY_CURRENT_USER\Control Panel\Desktop\PerMonitorSettings " It should be possible to compute an offset from the value stored there. I won't be going to back to Windows 10 right away and I don't know much about this problem. The first topic I mentioned described the DesktopWidth, Height readings varying from the Desktop Display Properties of Windows. It looks like something can be done but I can't really test against this problem until I purchase Windows 10. (So that I have restoration media) Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
EmilyLove Posted August 10, 2016 Author Share Posted August 10, 2016 On my laptop, everything is too hard to read at 100% scaling and needs to be set to 150%. Unfortunately, changing the scaling is not a viable option for me. Making an offset might work. I'll test later. Link to comment Share on other sites More sharing options...
Xandy Posted August 11, 2016 Share Posted August 11, 2016 Can you read the Images that you save from the scaled value? Then compare against the scale value for a match? Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
duzers Posted September 1, 2022 Share Posted September 1, 2022 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