Robocopy sync multiple folders – to one location – batch script

From Wikipedia:

Robocopy, or “Robust File Copy“, is a command-line directory and/or file replication command. Robocopy functionally replaces Xcopy, with more options. It has been available as part of the Windows Resource Kit starting with Windows NT 4.0, and was first introduced as a standard feature in Windows Vista and Windows Server 2008.

This makes it a very useful simple syncing tool. The following is the script that I use to sync my laptop documents when I’m leaving the office. There are a lot of applications and tools for this but sometimes you just want a portable script.

Please note that this is a one-direction sync. It will not change or remove anything from the source folder.



  1. Copy and paste the following batch (*.bat) script into your favourite text editor of choice or notepad. (Not Microsoft word) You can also download it directly from here or here mirror. (You might have to right click and select save destination as)
    @echo off
    CHCP 1252
    echo %~dp0
    ::Remove old log file
    if exist "%~dp0\robocopylog.txt" del "%~dp0\robocopylog.txt"
    ::Ignore the following file types. You can add more separated by space
    set exclude=*.bak *.backup
    ::Go through each line in the folders.txt file
    for /f "skip=2 delims=" %%f in ('find /v "" %~dp0\folders.txt') do (
      ::Check if the relative path from current directory works 
      if exist "%~dp0\%%f" (
        ::Sync relative path
    		robocopy "%%f" "%~dp0\%%f" /v /xf %exclude% /mir /tee /fft /log+:robocopylog.txt
    	) else (
    	::Sync absolute path if relative didnt work
    		robocopy "%%f" "%~dp0\%%~nf" /v /xf %exclude% /mir /tee /fft /log+:robocopylog.txt
    ::Wait for keyboard input before closing the window. Remove pause if you want it to close
  2. Save it where you want your backups to be stored (destination). Use whichever name you like. For example robocopy sync unicode folders.bat
  3. Create a new text file named folders.txt using any text editor and enter each folder that you want to make a backup off separated by a line break. (sources) Save the text file in the same folder as the batch script. Relative paths work too. Example:
  4. Run the script! The black window will stay open when it’s completed.
    With the above example the result would look something like this:


  • If source folders share the same name, they will be merged. Keep this in mind.
  • This is a one-direction only sync. It will not move or remove anything from the source folder.
  • If you don’t want the window to stay open when it’s complete remove the last line “pause” from the script.
  • A log file is saved for each operation in robocopylog.txt
  • You can add more files to exclude if you want, example: exclude=*.bak *.backup *.mp4 *.avi

Fallout 2 not responding in combat bug



Fallout 2 stops responding during combat and resumes at the end of the round. You may or may not have any unofficial patches installed and/or are running the game in windowed mode.


If you’re attempting to play the classic Fallout 2 on Windows 7 or Windows 8 you will probably encounter the the bug above. This is not specifically a bug in Fallout 2 but rather a compatibility issue in recent Windows operating systems.

Before proceeding I highly recommend that you install one of either of killaps unofficial patches:

– Unofficial Fallout 2 patch by killap
– Fallout 2 Restoration Project by killap

It goes without saying but don’t install both! Choose one.

Save files might not work after installing the patch so make a backup of the whole Fallout folder before installing.

The unofficial patch fixes general bugs while the restoration project restores a lot (if not all) cut content and adds in a some extra mod content. I highly recommend the restoration project patch. It adds a lot of things to the game which enriches the experience, even for first time players.

Download killaps patches over at or the No Mutants Allowed forums.

Windows AppHangTimeout registry entry

Here is one way to fix this issue.

Please note that the following changes will affect all programs running on your operating system. This may cause issues for you but shouldn’t make much (if any) difference to the general user who knows how to use windows task manager to force terminate applications.

As always when editing the registry make a backup or create a system restore point in case you make any mistakes. (Mistakes can mess up your computer so do this at your own risk)

Option 1: Download and double click on any of the following registry patches

Right click the link and select save as. Make sure that the name (file extension) ends with .reg. Otherwise rename it.

a) 120 second delay before the “program not responding” pops up.
(this should be enough for most fights in Fallout 2)

b) 300 second delay if you intend to go rampage and battle entire cities, this 5 minute delay might be more for you

c) remove (uninstall) the registry entry to use windows default timeout

Option 2: Manually edit the registry

1. Open regedit.exe

2. Browse to HKEY_CURRENT_USER \ Control Panel \ Desktop

3. Check if there is an entry for HungAppTimeout

4. If there is a value then double click and edit this to the delay value you wish to have in milliseconds.

5. If there is no value right click and select New -> String value and name it exactly “HungAppTimeout” without the quotation marks.

6. Double click this and enter the delay value that you wish in milliseconds.


 Notes or alternate fixes

If you for some reason absolutely cannot change this registry entry there is an option in Fallout 2 High Resolution Patch (f2_res) you can try.

The high resolution patch is included in both of killaps patches so I really recommend you install one of them! It makes the install procedure much easier for you.

1. Open up f2_res.ini in your Fallout 2 install path

2. Scroll down a bit until you find EXTRA_WIN_MSG_CHECKS=0

3. Change the 0 (zero) to 1 (one) so that it looks like this:


Fake windowed fullscreen

I just wanted to add this section here as well. As this game runs really well with the fallout 2 high resolution patch you might consider running an AutoHotkey script to toggle fake fullscreen. Fake fullscreen is also built into my application XBoxMouse and works even if you don’t have any controller plugged in. You need to enable it by editing the line WindowedFullscreen=1 in the ini file however.

Optional pre compiled script

Download and run the compiled script here (mirror).
MD5 checksum: 99882c79d419503604a52c74cd785cc3

Please note!
You probably have set this program to run as an administrator in the compatibility tab!

Hold down CONTROL and ALT and press F12 to toggle fake fullscreen!

Run the script manually

1. Download and install AutoHotkey

2. Option: Download the script (mirror) and double click it (right click and select save as)

3. Copy and paste the following script into notepad your plain text editor of choice (notepad2 or notepad++)

4. Save the file as whatever you wish as long as it ends with the file extension .ahk

5. Double click the ahk file to have it run in the background. Hold down CONTROL and ALT and press F12 to toggle fake fullscreen on the window you currently have focused.

Script to copy and paste

;Toggle fake windowed fullscreen!

#singleinstance force

	WinGet, WindowID, ID, A
	WinGet Style, Style, ahk_id %WindowID% ; retrieve window data

	if (Style & 0xC40000) ; check if object is available
		WinSet Style, -0xC40000, ahk_id %WindowID% ; hide thickframe/sizebox
		WinSet Style, -0xC00000, ahk_id %WindowID% ; hide title bar
		WinSet Style, -0x800000, ahk_id %WindowID% ; hide thin-line border
		WinSet Style, -0x400000, ahk_id %WindowID% ; hide dialog frame
		WinSet Style, +0xC40000, ahk_id %WindowID% ; show thickframe/sizebox
		WinSet Style, +0xC00000, ahk_id %WindowID% ; show title bar
		WinSet Style, +0x800000, ahk_id %WindowID% ; show thin-line border
		WinSet Style, +0x400000, ahk_id %WindowID% ; show dialog frame

	WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight


Hope this helps 🙂
Happy retro gaming!
Best Regards

Baldur’s Gate II widescreen scaling bug

Here is a unique issue for you… with an odd workaround solution. To sum it up its a script that “works around” improper scaling resulting in black bars when you have dual graphics cards and nothing else appears to work.

Problem description – black bars in fullscreen

When running Baldur’s Gate II in fullscreen with the widescreen mod installed and set to 1280×720 you see black bars surrounding the game window.

Before trying the hacky script make sure that you have explored all your control panel graphics options. If you see black bars on your desktop check these Intel options first before proceeding.



My laptop has two graphics cards. One integrated Intel HD and an NVidia 840M. This is quite an ingenious solution to minimize power consumption. The Intel HD works as a low power accelerator for desktop and minor applications with the Nvidia card kicking in as a “turbo” when 3D applications like games are launched.

Unfortunately this rather unique solution can cause driver compatibility issues, as someone searching the internet will find out. One reason being that the drivers supplied by Nvidia are trimmed and lacking the much needed display options.

The fact that Intel doesn’t supply regular updates to their drivers doesn’t help much. They point toward the laptop manufacturer which only supply old drivers.

intel graphics darn

 The solution that should work, try this first

With regular graphics card configurations the NVidia control panel should have the following scaling options available. Unfortunately for me these options are not there. If you have them, then you’re lucky. Change the scaling to full-screen and the borders should be gone.


At first glance one might think that Intel lacks these scaling options completely, however this is not true. The scaling options are hidden inside Intel HD graphics control panel.

To show the options you cannot have your desktop resolution set to your monitor native (max) resolution. (which is usually 1920 x 1080 for most monitors) As soon as you change this to something lower, say something like 1024 x 768 temporarily. The option will magically appear at the screen below.

Again, unfortunately for me, this did not fix my issue with Baldur’s Gate.

intel graphics custom aspect scaling

That didn’t work, what now?

The workaround to this problem is a somewhat clumsy AutoHotkey script that switches the desktop resolution temporarily and forcefully stretches the game window to fit the size of your desktop resolution.

Considering the limitations of this workaround it will not work if you’re already seeing black bars when lowering your resolution in desktop. If that is your case, sorry. You’re situation is even more complicated than mine 🙂

This of course assumes that when you installed the Baldurs Gate II widescreen patch you set the resolution to 1280 x 720. While installing it should have looked like this:


If you have any more graphics related mods installed the situation may be different.

Instructions for the workaround

Optional Pre compiled script

This will only work if you have configured the widescreen patch to run at resolution 1280×720!

1. Download the compiled script from here (mirror)
MD5 checksum: 998df07f0078cadc684dcf0484e17c6e

Please note!
You probably have set this program to run as an administrator in the compatibility tab!

2. Place it in the directory where you have installed Baldurs Gate

3. Run BGMainNoBorders.exe and it will attempt to launch the game without borders.

Run the script manually

If you’ve set the widescreen resolution patch to anything other than 1280×720 you need to edit the script and run it manually.

1. Download and install Autohotkey

2. Copy and paste the following script below into notepad or any other plain text editor like notepad2 or notepad++.

3. Save the file as BGmainNoBorders.ahk or any other name you prefer as long as you end with the file extension .ahk and save it into your BG2 install folder.

You can also download it directly from here (mirror) (right click and select save as)

4. Edit the script where it says ChangeResolution(1280,720) to whichever is the resolution you’ve set the widescreen patch to run in.

For example if you have set the widescreen patch to run at 1600×900 you need to change this to ChangeResolution(1600,900)

5. Double click BGmainNoBorders.ahk to start the game!

Script to copy and paste

#singleinstance force ; prevent multiple instances

; increase this if you have a very slow computer to 1500 or 2000
sleepdelay := 1000

; Check and remember current resolution
x = %A_ScreenWidth%
y = %A_ScreenHeight%

run bgmain.exe ; start baldurs gate

sleep %sleepdelay% ; wait milliseconds

; old method of changing resolution
;run qres /x 1280 /y 720 

; change resolution temporarily

sleep %sleepdelay% ; wait milliseconds

WinActivate ahk_class ChitinClass ; focus on baldurs gate

sleep %sleepdelay% ; wait milliseconds


WinWaitClose ahk_class ChitinClass ; wait for baldurs gate to close

; old method of changing resolution
;run qres /x %x% /y %y%

; change back resolution

sleep %sleepdelay%


;---Remapped keys 

; Swap arrow keys with WASD for panning
#IfWinActive ahk_class ChitinClass

; Swap arrow keys with WASD for panning
#IfWinActive ahk_class ChitinClass

; Swap arrow keys with WASD for panning
#IfWinActive ahk_class ChitinClass

; Swap arrow keys with WASD for panning
#IfWinActive ahk_class ChitinClass

; Select all party members using tilde
#IfWinActive ahk_class ChitinClass


	WinGet Style, Style, ahk_class ChitinClass ; retrieve window data
	WinSet Style, -0xC40000, ahk_class ChitinClass ; hide thickframe/sizebox
	WinSet Style, -0xC00000, ahk_class ChitinClass ; hide title bar
	WinSet Style, -0x800000, ahk_class ChitinClass ; hide thin-line border
	WinSet Style, -0x400000, ahk_class ChitinClass ; hide dialog frame
	WinMove, ahk_class ChitinClass, , 0, 0, A_ScreenWidth, A_ScreenHeight

	DllCall( "ChangeDisplaySettingsA", UInt,&dM, UInt,0 )


If it doesn’t work try to change Baldur’s Gate to run in windowed mode in bgconfig. This should solve it but can cause issues when panning the overview map.

If it still doesn’t work try increasing sleepdelay from 1000 to 1500 or 2000. Also make sure not to click on anything when you’ve launched the script. Have patience and wait for the game to start.

If you’re using any resolutions other than 1280×720 in the widescreen mod you must edit the script manually at ChangeResolution(1280,720) to the resolution of choice.

Extra features

WASD are remapped and swapped with the arrow keys left, up, down and right and tilde for selecting the whole party. This is more of a convenience for me. If you dislike these keybindings delete all the lines from the text file from remapped keys down to functions.

If you’re only looking for the remapped WASD keybindings you can download it directly here (mirror) (right click and select save as) or the pre compiled script executable here (mirror)
MD5: f26caa20a3fbdaec26fe17abf0a6f514

If you figure out any better solutions or have anything else to add that might help, please don’t hesitate to leave a comment!

SpaceEngine and high resolution screenshots

Scroll down for the instructions to capture high resolution screenshots exceeding your screen size.

If you’re here only for the AutoHotkey script to force window sizes click here.

Update 2016-01-11: In recent versions of SpaceEngine (V 0.973 or higher) you may encounter crashes with OpenGL error messages. Please see here on how you might counter these issues.

BackgroundAldebaran 9.3

I’ve been playing around in a game/simulator named SpaceEngine lately. It’s a simulator exploration game allowing you to travel parts of the known universe and beyond (via procedurally generated) galaxies, star systems and planetary terrain.

If you haven’t checked it out yet you really should! It doesn’t matter if your behind a desk dreaming of being an astronaut, fantasy/scifi stellar explorer extraordinare, a space nut or just mildly fascinated by pretty astronomy photos. It’s free

Special note to security nuts: Space Engine is not open source but I’ve been running version and and my whitelist firewall log hasn’t caught any attempt to even connect to the internet. Considering the large helpful community and experienced users involved in the project it would get some bad rep quickly if it started doing bad things.

Continuing exploring… Spread across this post are some wonderful screenshots that I’ve captured so far. Unfortunately these examples are not all 4K images. 🙂

Taking regular screenshots in SpaceEngine is easy, press F11 to capture the screen without the GUI. The screenshots you capture will end up in this folder: \SpaceEngine 0.972\screenshots\


Setting the proper screenshot file format

Wait! Before you go on a screenshot frenzy there is an important option you need to know about. This option makes sure that the screenshots you save are stored in the best quality. This option is not available from inside the game GUI so you need to manually edit a text file in the config directory.

1. Browse to the following file from the place where you installed SpaceEngine:
\SpaceEngine 0.972\config\main.cfg

2. Open main.cfg it in a text editor like notepad or notepad++ and scroll down until you find this line.


3. Replace “jpg” with “png”. Save the file and restart SpaceEngine. Your screenshots will now be taken in high quality PNG image files instead of lossy JPEGs

Exomoon of binary red dwarfs

In game configuration

To get more visuals out of your experience keep tinkering around with the settings in game. To open the settings menu move your mouse to the lefthand side of the screen for the menu to appear. Then click on the bottom cogwheel icon.

There’s also a hotkey by holding down CTRL and pressing F4 (CTRL+F4) which opens the graphics menu directly.

When exploring terrain on planets what you want to do is to increase the Level of Detail (LOD). Be careful changing this value; it will quickly eat up your graphics card memory and can cause freezes and crashes.

Avoid loosing your position after crashes by saving your location often using F6.

Want even greater visuals using higher resolution screenshots? Keep reading!

marred_tarantula_impact_remnant_3_by_nirklars-d8dn1za_pngBreaking the 1920 x 1080 barrier

After playing around in SpaceEngine as you might have noticed, you can’t capture screenshots higher than your screen max resolution. Not owning a real 4K monitor in order to do this you will require hacks or tricks to manipulate the program to do what you want. Now there are many different programs that can do this to other games or games in general. Some may contain malware or adware. Here is an alternate way using solely open source tools. AutoHotkey specifically.

AutoHotkey is a very versatile and portable scripting language for windows intended to help you with hotkeys, keyboard and mouse automation and moooore. Here are some instructions on how to use a basic script to force a window into any size that you want. Even sizes that exceed your monitor max resolution.

Beware however, forcing programs to do something they were never intended to do is risky. Expect them to crash or freeze; side effects may include hairloss, overfeeding or brain malfunction. (not really… maybe)

Before attempting the following; save your progress in all open programs first! You have been warned!

 AutoHotkey script to force window sizes

This script will work for resolutions exceeding your monitors max resolution.

It’s written to toggle the size of the window that currently has focus whenever you press the key F12. You can change this key into anything you want by editing the following text in the script. For example changing the first line:

Will toggle it when pressing CTRL+F12

Will toggle when pressing SHIFT+F12

Will toggle when pressing CTRL+SHIFT+F12.

Get it? The symbols represent modifiers on your keyboard.  Feel free to read more about using AutHotkey hotkeys.

 AutoHotkey 4096 x 2160 window size script usage instructions

1. Download and install AutoHotkey if you haven’t already.

2. Copy and paste the following into your favourite text editor. Or download the script here (mirror) (Right click and select save as)

WinGet, TempWindowID, ID, A
If (WindowID != TempWindowID)
If (WindowState != 1)
  WinGetPos, WinPosX, WinPosY, WindowWidth, WindowHeight, ahk_id %WindowID%
  WinSet, Style, ^0xC40000, ahk_id %WindowID%
  WinMove, ahk_id %WindowID%, , 0, 0, 4096, 2160
  WinSet, Style, ^0xC40000, ahk_id %WindowID%
  WinMove, ahk_id %WindowID%, , WinPosX, WinPosY, WindowWidth, WindowHeight

3. Save the file as 4K resolution.ahk or whichever name you prefer as long as the file extension ending is .ahk

4. Browse to where you saved the file and double click on it.

5. The script is now running in the background, waiting for you to press F12. Pressing once will set the window size to 4096 x 2160. Pressing it again will toggle the window back.

6. Right click the system tray and click exit to turn the script off.


Optional: Edit the script to run even higher resolutions.
Edit 4096 and 2160 at this line to the values you prefer:

WinMove, ahk_id %WindowID%, , 0, 0, 4096, 2160


Instant loading mode in SpaceEngine

There is a semi hidden option of changing the loading method inside space engine. It is insanely resource heavy and will freeze the game if you run out of memory.

Press the forward slash key / to toggle using Immediate, Interleaved or Asynchronous loading modes. (This is the apostrophe key on Swedish keyboards for some reason btw)

Immediate loading mode will attempt to load directly speeding up loading time. Avoid moving the camera or your position while in this mode! It will quickly queue up your actions in a buffer until your memory is full. (Which tends to freeze the game)

dfe4bbe7a26e67dfd7e0010ef4a55d12-d86axhn_pngThe sequence of taking high res screenshots

So after reading all this here is my own sequence for taking high res screenshots. Add anything else to this list that you like. If you find easier ways to do this please make sure to share them in the comment section!


1. Open up Graphics settings with CTRL+F4 and set your level of detail LOD to -2.0 before you go exploring.

2. When you find a good location, save it with F6.

3. Press ALT+ENTER to go to windowed mode and the Spacebar to pause time.

4. Configure other graphics settings or magnitudes and exposure menu using F7 to what you prefer.

5. Open up Graphics settings again with CTRL+F4 and set your level of detail LOD to 2.0

6. Press F12 to toggle 4096 x 2160 windowed mode. Expect a very low frame rate.

(At this time its useful to use hotkeys for opening options, since the toolbars are out of screen)

7. Press forward slash / to toggle to immediate loading mode. The game will most like freeze, this is normal so don’t click on anything.

8. Wait for it to finish loading and recover from the freeze. Cross your fingers it doesn’t crash… Grab a coffee or something 🙂

(A good way to tell when it has finished loading is to click an object with the selection pointer visible on screen. If the selection pointer is moving, it has finished loading.)

9.  Press F11 to capture a 4K screenshot!

10. Optional: Press SHIFT+C to toggle clouds and press F11 again.

11. Optional: Press SHIFT+A to disable atmospheres and take the last screenshot with F11.

12. Restart because you’re probably out of memory ! (Usually crashes or freezes here for me)

The optional images without atmosphere and clouds are useful if you want to do any post editing. For example placing them in different layers and changing transparency to your liking can be useful if you find beautiful landscapes but atmospheres are too thick and you need to adjust it afterwards.

Here are the results of adding together 3 images into a 4K high res render as described above. I have also added another copy of the layer without clouds or atmosphere; added a glow filter and manually erased parts if it to give it a somewhat glowing effect. Surreal yes, but pretty!

Alien shores lit by a never setting sun – 4096 x 2160 example
alien shores 4k

End words

If you keep getting crashes or permanent freezes while attempting to follow these instructions I’m sorry to say that your computer might not be up to the task. SpaceEngine can be quite resource demanding.

Here are my current computer specifications for comparison:
i7 870 2.93GHz OC ~3.2GHz
GeForce GTX 470 1280MB
16GB DDR3 1600Mhz
Samsung 840Pro 256GB SSD

If want to know more tricks about SpaceEngine you should go visit the forums!

Happy exploring!

More Space Engine

ringed_dark_side_7k binary_pearls_7680x4320small_magellanic_cloud_by grains_of_silicate extrasolar_comet_4k exomoon_starfield__false_colour_4k

OpenGL error troubleshooting (updated 2016-01-11)

If you’ve been following this guide intently you may had crashes and encountered the following error message.
(Or perhaps another similar error message in case you have a ATI graphics card)

To see how you can workaround this click here for the separate post with instructions.



PDF to DWG hack – Import PDF or EPS vector graphics into AutoCAD using Microsoft Word

Please note! I do not recommend this method any more. Before attempting this hack, instead try using Inkscape ! Full step by step guide here:

If you’ve worked in AutoCAD for a time you’ve probably encountered the problem of wanting to import an actual PDF or EPS file into your drawing instead of just making external references. Why is it so messy? And why does it require third party tools to do? And why don’t they do it properly?

One of the excuses you’ll hear is that its a question about accuracy (or lack thereof) and that part is correct. This limitation is down to the accuracy of PDF files. But who is to judge if and when you need accuracy? Sometimes you don’t, it should just work.

Here is an alternative “hacky” way to convert vector graphics from PDF to DWG without third party programs using only Microsoft Office Word. It’s not perfect, but it won’t cost you a dime!

1. Print the PDF to a file

Open your PDF file in your favorite program like Acrobat Reader. Or maybe Sumatra PDF?

print to file

Choose your standard printer. If you don’t have a printer installed a PDF converter of some kind will work as well.
Microsoft XPS Document Writer won’t work unfortunately.

Check the little checkbox next to “Print to file”. Microsoft has a guide as well.

Pressing “Print” won’t print an actual page, it will parse the PDF document, convert it into EPS and instead of sending it to the printer ask you where you wan’t to save it.

After you press “Print” you will be greeted by a very discrete dialog input box. Here you will need to enter the full path and file name of where to store the file.

print to file output name

For example enter: C:\MyFile.eps and click OK.

2. Import the EPS file into an empty Word Document

Open a new empty document using Microsoft Word. Drag and drop the EPS file MyFile.eps into the window to import it.

Save your document and close Word. Example: C:\Dok1.docx

It is important that you choose to save in the *.docx format. This is part of the trick.

3. Rename the *docx document file extension to *.zip

Example: C:\


If you can’t see any file extensions Microsoft has a guide on how to enable that. Here is another guide with images.

4. Browse the renamed ZIP file and locate image1.wmf

Inside you will find the following content:


This shows you the complete contents of the office open XML document file format.

Browse into \word\media\ and here you will find image1.wmf. Extract this file into a temporary folder.

This is the hacky trick, we utilize Microsoft Word’s internal conversion of EPS to WMF!

5. Import image1.wmf into AutoCAD

The easiest way is to drag and drop the file onto the window. File -> Import also works.

drag drop

6. Correct the scale

Unfortunately the proper scale is lost using this procedure. You have to re-scale the drawing to the proper size. I recommend finding a comparable measurement and using the method scale by reference.

7. [Optional] Explode the block to get lines

8. Compare with the original to make sure that everything went ok.

And there you have it!

Remember that only vector graphics (lines) will be included when importing using this “hacky” method. All solids or raster graphics will be missing. Make sure to carefully scale the imported document!

Hide mouse cursor when Skyrim has focus

This feature has now been implemented in AHKGameFrontend V0.2!

Annoyed that the mouse cursor keeps appearing when running the game in windowed mode? Here is a workaround!

How to use

1. Download and install AutoHotkey

2. Copy and paste the script below into an empty text file, save as SkyrimMouseHide.ahk and double click it.


1. Download and install AutoHotkey

2. Download this AHK file and run.


1. Download this compiled executable script and run.
MD5: cadc00d1feea17c6ddadc7adbdcf4bdc

The script

I do not take any credit whatsoever for this, I simply added an IF statement, credit should go to lonewolfdon @ this forum post.

; Script to hide cursor
; Minor edits by Nirklars

SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.


SetTimer, CheckIdle, 250

if WinActive("ahk_class Skyrim") 

OnExit, ShowCursor  ; Ensure the cursor is made visible when the script exits.


SystemCursor(OnOff=1)   ; INIT = "I","Init"; OFF = 0,"Off"; TOGGLE = -1,"T","Toggle"; ON = others
    static AndMask, XorMask, $, h_cursor
        ,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13 ; system cursors
        , b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13   ; blank cursors
        , h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12,h13   ; handles of default cursors
    if (OnOff = "Init" or OnOff = "I" or $ = "")       ; init when requested or at first call
        $ = h                                          ; active default cursors
        VarSetCapacity( h_cursor,4444, 1 )
        VarSetCapacity( AndMask, 32*4, 0xFF )
        VarSetCapacity( XorMask, 32*4, 0 )
        system_cursors = 32512,32513,32514,32515,32516,32642,32643,32644,32645,32646,32648,32649,32650
        StringSplit c, system_cursors, `,
        Loop %c0%
            h_cursor   := DllCall( "LoadCursor", "uint",0, "uint",c%A_Index% )
            h%A_Index% := DllCall( "CopyImage",  "uint",h_cursor, "uint",2, "int",0, "int",0, "uint",0 )
            b%A_Index% := DllCall("CreateCursor","uint",0, "int",0, "int",0
                , "int",32, "int",32, "uint",&AndMask, "uint",&XorMask )
    if (OnOff = 0 or OnOff = "Off" or $ = "h" and (OnOff < 0 or OnOff = "Toggle" or OnOff = "T"))
        $ = b  ; use blank cursors
        $ = h  ; use the saved cursors

    Loop %c0%
        h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )
        DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

Minecraft WorldEditTool – Remote Selection (AutoHotkey Script)

This post is out of date, please go here instead!


  • Quicker selection of remote areas. (I got tired of typing //hpos1 and //hpos2 all the time…)
  • Faster issuing of commands when administrating your Minecraft Bukkit WorldEdit server
  • I made this script to help me repair broken biomes faster. This is useful on older worlds.
  • Edit the AHK file and modify the commands to fit your needs



To issue a scripted command, hold down the ALT key:

  • Left mouse button //hpos1 (Select start/center point at any distance)
  • Right mouse button //hpos2 (Select second point)
  • Midde mouse button //sel (Clear selection)
  • Mouse button 4 //outset 1 (Expand selection)
  • Mouse button 5 //inset 1 (Contract selection)
  • Mouse wheel  //sel polygon/cuboid/sphere/ellipse/cylinder/extend/cuboid (Change the selection tool)
  • More buttons to come…

For a list of all available WorldEdit commands please visit the wiki Command Reference page.


  • Install AutoHotkey
  • Download the AHK script file and double click on it


  • Replaced by the application here.
  • Version 0.2 Compiled executable file. To quit, right click the system tray and select exit.
  • Version 0.2 SourceCode – Release (please right click and select save as)

Other mods used in this video

Known issues

  • Mouse buttons only works in windowed mode Now works by replacing F11 with a “fake fullscreen” maximized window!
  • You cannot move while issuing commands. Input is blocked to prevent sending WASD keys.
  • Issuing commands too quickly can bug explorer.exe (use the taskmanager to terminate the process if it locks up completely. Sorry about this I’m not sure what is causing it yet.)
  • If you have a slow computer please increase KeyDelay := 100 to 150 or higher in the AHK file.