I don't know if anyone else has this problem, but it was bugging the hell out of me, so I thought I'd share a solution I found.
The problem is this: Running Diablo III in windowed mode, but maximized. That is, you can still see the taskbar, but otherwise, the game is filling the remainder of the screen. This is how I play World of Warcraft, but Diablo 3 does not allow you to maximize in windowed mode. (WTF BLIZZARD)
So the first thing you will need to do is install a program called AutoHotkey. This part is pretty straight forward.
Next, you need to make a script that you will use to fix the window. To do this, open notepad and paste this:
^!f::
WinGetTitle, currentWindow, A
IfWinExist %currentWindow%
{
WinSet, Style, -0xC00000 ; hide title bar
WinSet, Style, -0x800000 ; hide thin-line border
WinSet, Style, -0x400000 ; hide dialog frame
WinSet, Style, -0x40000 ; hide thickframe/sizebox
WinMove, , , 0, 0, 1920, 1040
}
return
Note: Where you see "1920, 1040" in the script above is for a desktop resoluton of 1920x1080 on Windows 7 with large taskbar icons. These numbers will be different depending on your display resolution, windows version, and icon size. See additional info below.Now save the file, (on the desktop is fine, or somewhere else if you want it out of sight) - it doesn't matter what you name it, but save it with a ".ahk" extension. (Ex: "Fullscreen.ahk")
Once you've got the script created, right-click on it and Run as administrator. (If your windows account is an administrator, then just select Run Script.)
Now you're ready to open up Diablo III - make sure you have it in windowed mode, and in focus - then press Control+Alt+f and BAM! Maximized window mode.
*Addition information on window size settings: The first number should always be the horizontal resolution of your display. The second number is going to be your vertical resolution minus the number of pixels needed to show the taskbar. In windows 7, large icons make the taskbar 40 pixels vs. 30 pixels for small icons. After some searching, I believe Vista and XP taskbars are 30 pixels as well.
If subtracting either 30 or 40 pixels doesn't work for you, the best way to find out how many pixels to leave for your taskbar is to screencap your desktop (press printscreen to copy screen to the clipboard) and use an image editing program, like Photoshop, to crop out the taskbar. Once you've done that, the dimensions of the resulting image should tell you how many pixels you need to cut out. If all else fails, you could just guess, edit your script, run the script, test it, guess, edit, run, test, etc. till you find what works.
It works, nice! Thanks a lot, you made my day...
ReplyDeleteHi awesome stuff it totally works, but I use nvidia surround so normally the game window shows up on the 2nd monitor located in the middle. When I activate the script it moves to monitor 1 located far left I was wondering if you could let me know what lines I have to add to the script to keep the diablo 3 window on the middle monitor (using latest nvidia beta drivers).
ReplyDeleteIn this case, I think what you will need to do is change the line that says:
DeleteWinMove, , , 0, 0, 1920, 1040
to something like
WinMove, , , 1920, 0, 1920, 1040
Where the initial zero becomes the horizontal resolution of your first monitor. In this case, I'm assuming your monitors are all 1920x1080.
Let me know if that works!
<3 Good stuff had to adjust for bezel correction but all good thanks a bunch
DeleteHow can I change the hotkey for example to Ctrl + Alt + S or any letter?
ReplyDeleteThe first line of the script "^!f::" defines the hotkey shortcut. So if you just wanted to make it a Ctrl + Alt + S then it should say "^!s::"
Deletesome modifiers:
^ = ctrl
! = alt
+ = shift
# = Windows Key
More complete documentation for AutoHotkey can be found on their web site!
Hello,
ReplyDeletetaskbar is 30px
but 1920x1050 is not the right resolution, text is displayed very strange. you can't read the text very good.....letters aren't displayed completly
I'm sorry to hear you are having difficulties with this process. I've provided at the link below my own screenshots, there shouldn't be any blurring or distortion. Perhaps your resolution in-game is not set correctly? Try switching to fullscreen and then setting the in-game resolution to match your display, before going back to windowed mode. Again, I've attached a screenshot showing my video settings.
DeleteImgur photo album
Hope that helps.
i dont know if you want to show your battle net adress to the whole world ;-)
DeleteLetterbox was activated.....
Works now correctly, thank you!!! :)
here's an example what i meant:
Deletehttp://i47.tinypic.com/10ofyw5.png
some of the text is not displayed completely in tooltips for example, but also in Friendlist, and so on
I didn't run into that issue, but I'm not surprised, seeing as how this trick modifies the window in a way Blizzard likely did not intend.
DeleteAlso, I'm not too worried about my e-mail in that pic. I don't get very much traffic.