Lemons Posted August 29, 2016 Share Posted August 29, 2016 (edited) I know this issue crops up from time to time, I'm here with a way to fix it Thanks bot2max for letting me figure this out on his windows 10 tablet. Compatibility method for Windows 10 ONLY Spoiler Step 1 - Open OSBot and the Task Manager, right-click "Java(TM) Platform SE Binary (32 bit)" and select "Open File Location" Step 2 - Right-Click the selected file and select Properties Step 3 - Go to Compatibility tab, and check "Disable display scaling on High DPI settings" Step 4 - Restart OSBot Manifest hack method (WARNING: This ONLY works on Windows 8.1/10.) Spoiler If you are on 7 or 8, you're SOL, this guide will not work and cause issues with your setup. Now that is out of the way, lets continue on. Basically, the issue is java is a "dpi aware" application, at least according to windows. As we can see, this is not the case as its microscopic when you launch it on higher DPIs. So, we need to tell windows that java is not in fact dpi aware. Step 1 - Downloading Resource Hacker Download Resource hacker from http://www.angusj.com/resourcehacker/. This is a free program that allows us to change the manifest of programs, which is exactly what we need. Get the "Portable Zip file" version, as we only need this briefly. Step 2 - Opening Resource Hacker Once downloaded extract the application to a new folder. Then right-click "Resource Hacker.exe" file (the exe part is prob hidden, should have an icon with RH in blue) and choose "Run as administrator". Step 3 - Using Resource Hacker You should now have the Resource Hacker window open. Now click the open file button (shown below). Then go to "C:\Program Files\Java", or "C:\Program Files (x86)\Java\" if you installed x86 on a 64-bit system. In here, you should see something resembling either "jre1.8.x_xx" or "jdk1.8.x_xx", if you have multiple you'll need to determine which is being used by OSBot. Step 3.1 - Determine which JRE/JDK we need to edit Generally, its the newest, else if you're having troubles, click start and type "cmd", which should give you the option for a command prompt. Inside the command prompt, type "java -version" and it should output something like: The "1.8.0_65" is what your looking for, and would be the "jre1.8.0_65" or "jdk1.8.0_65" folder. Step 4 - Backup your shit Now, were jumping off track for a second, but this is important when editting any system/executables. We wanna back them up incase we get in a jam. So, now that we know which JRE/JDK we are using, open Windows Explorer (aka the file manager), and go to that folder (something like C:\Program Files\Java\jre1.8.x_xx\ or C:\Program Files (x86)\Java\jre1.8.x_xx\), and go into its "bin" folder. Here, you should see java.exe and javaw.exe. Copy/paste both, they should become "java - Copy.exe" and "javaw - Copy.exe", which is good. Name them w/e you want, but we just want a copy in case things go south. Step 5 - Editting the manifest Now we know which JRE/JDK we are using, we need to go into the "bin" folder of the JRE/JDK. The full file path should look something like: "C:\Program Files\Java\jre1.8.x_xx\bin\" or "C:\Program Files (x86)\Java\jre1.8.x_xx\bin\" In here, should be a file called "java.exe", which is the main java executable. Select it and open it in resource editor. Now you should see: Now, expand the Manifest tree and select "1 : 0", which should be the only item in this tree. Now you should see the window update with some manifest XML, which looks like: Then, scroll this until you see something that looks like: Basically, your looking for <dpiAware>true</dpiAware> then you'll want to change this to <dpiAware>false</dpiAware> Once you are done with this edit, click the green play button Then click the save button Now, repeat this step, except replace "java.exe" with "javaw.exe". Once you are done editting both, go and run OSBot and it should be sized so it looks normal on your PC. Closing Notes I hope this helps most of you, if not feel free to contact me (check my profile or message me on here), and I can prob help if you run into issues. I personally have not had this issue (72 dpi win 7 nub) but I can see how this would be a huge annoyance. PS: If you notice any typos/issues please point em out. I wouldn't say I'm sober atm so I can see there being issues I missed :p PSS: Sorry if this has been posted before, or if there is an easier fix. Let me know and I'll remove/edit this post. Edited July 2, 2017 by Lemons 9 Quote Link to comment Share on other sites More sharing options...
ProjectPact Posted August 29, 2016 Share Posted August 29, 2016 1 Quote Link to comment Share on other sites More sharing options...
Saiyan Posted August 29, 2016 Share Posted August 29, 2016 thx 4 this but a cool kid like me uses a mac so i'll never experience this *awaits for the mac hate* 1 Quote Link to comment Share on other sites More sharing options...
mikerotch0 Posted October 3, 2016 Share Posted October 3, 2016 Not sure why, but this doesn't seem to work for me. Edited both lines of config in both files, still OSBot boots up in too small of a window. The only thing that seems to help is running OSBot in low-resource mode through the command line, but that's just a stopgap measure so I can actually read the bot config menus. Any other known fixes out there? Thanks guys! Quote Link to comment Share on other sites More sharing options...
Precise Posted December 12, 2016 Share Posted December 12, 2016 Was the only thing annoying me about my new laptop with a high resolution was i couldn't use OSBot easily. This fixed my issue, thanks for the easy guide. (i changed it for both jre and jdk for anyone who is having issues still). Precise. Quote Link to comment Share on other sites More sharing options...
gregnam Posted January 9, 2017 Share Posted January 9, 2017 solution isn't working for me either Quote Link to comment Share on other sites More sharing options...
Artifacts Posted March 9, 2017 Share Posted March 9, 2017 Frankly doesn't work for me either, tried editing both JRE & JDK. Running on windows 10 Quote Link to comment Share on other sites More sharing options...
zabouzaki Posted June 13, 2017 Share Posted June 13, 2017 running on windows 10 cant increase window size Quote Link to comment Share on other sites More sharing options...
Master Roshi Posted October 31, 2017 Share Posted October 31, 2017 Make sure you put it on System instead of Application as well Quote Link to comment Share on other sites More sharing options...
sonda Posted November 7, 2017 Share Posted November 7, 2017 Worked like a charm for me. Windows 10 compatibility. Quote Link to comment Share on other sites More sharing options...
iautoi Posted February 15, 2018 Share Posted February 15, 2018 did not work.. Quote Link to comment Share on other sites More sharing options...
Blackjack2213 Posted March 29, 2018 Share Posted March 29, 2018 Thanks now i can actually see my client Quote Link to comment Share on other sites More sharing options...
dbrady8 Posted May 15, 2018 Share Posted May 15, 2018 Thank you for this post. It made a tiny window into a normal window lol! Quote Link to comment Share on other sites More sharing options...
Slamminsam45 Posted February 24, 2019 Share Posted February 24, 2019 When I open the file location the first picture is what pops up, so then I clicked on change high dpi settings and the second picture is what came up after that... what should I do now? I've tried both options on the second picture and nothing has worked. 2 Quote Link to comment Share on other sites More sharing options...
RandomFreeloader Posted March 1, 2019 Share Posted March 1, 2019 On 2/24/2019 at 4:55 PM, Slamminsam45 said: When I open the file location the first picture is what pops up, so then I clicked on change high dpi settings and the second picture is what came up after that... what should I do now? I've tried both options on the second picture and nothing has worked. Same for me, anyone? Quote Link to comment Share on other sites More sharing options...