Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CK shortcuts
03-21-2012, 10:33 AM,
#1
CK shortcuts
Just to let you know that I ported my highly acclaimed CS hotkeys (shortcuts) - see endorsments here - to TESV : download

It is basically an autohotkey script which adds some very useful shortcuts (and a focus back to last active win feature) to the CK.

Straight from the bethsoft thread :http://forums.bethsoft.com/topic/1359587...ab-for-ck/

Highlights :
  • ControlTab : press and hold Ctrl then press Tab to cycle in an Alt Tab way through the CK windows that are open (Render, Cell, Object, References, etc). Shift reverses order. It works like the Alt Tab shortcut in Windows Explorer.
  • FocusBack : when closing a window focus is given back to previously focused window
  • Shortcuts : including Maximize and minimize for all windows (like Cell, render, Object) - Tab on a couple windows (like object, cell etc) - Esc and Enter on NPCs etc - Htlm readme is very useful if you want to use the shortcuts, read it !
  • Warnings mass OK : Pressing delete on a warning window will keep pressing yes to all the chunk of warnings - if such a chunk is separated from the next by several secs press delete again. See the ini.

Focusback (beta) may misfire - that is focus is given back to the previous win before focus is given to the win you opened - enable OnlyForReferences in the ini if this happens too often - you may also disable it completely via the ini. Let me know. I chose to fully enable it by default - I find it very useful and people are too lazy to enable it themselves lol.

Skyrim Nexus

The readme :
Quote:Name: TES5 CK Hotkeys (including Control Tab and Toggle Script)
Version: 0.95b (beta)
Date: 2011/3/17
Category: Modding Tools
Requirements: tested with CK 1.4.23 on WIN7 PRO
Author : utumno aka Udun
Homepage: http://udunslabs.blogspot.com/
Download: http://skyrim.nexusm...le.php?id=13113


Description
===========

This release includes one executable, CK_Hotkeys_v0.95b.exe which adds :
* control tab functionality (actually ALT TAB, but using Ctrl-Tab shortcut) in the Skyrim Construction Kit, using the always handy Autohotkey language.
* Customizable (via ini file) shortcuts (hotkeys) for various actions (see below).
* An ini file created in the directory the script is run, CK_Hotkeys.ini.
* A focus back to previous window feature. By default enabled for all windows. If you find you have problems with some windows loosing focus (namely the NPC window) set OnlyForReferences to 1 in the ini.


Install
=======

Download, unzip, save CK_Hotkeys_v0.95b.exe wherever in your drive. Run the exe, open up the CK, switch to it and let the script initialize (takes a couple secs). (If the CK is not running, as long as you leave the default ini settings, the script will wait for the CK).
One small green icon with an H on it will appear on system tray when you run the exe. By right clicking on it you can exit, pause the script or suspend the hotkeys. The exe will create an ini file in the directory it is run, where you can customize a couple of options.


Features
========

CK_Hotkeys_v0.95b.exe :
* press and hold Ctrl then press Tab to cycle in an Alt Tab way through the CK windows that are open (Render, Cell, Object, References, etc). Shift reverses order. It works like the Alt Tab shortcut in Windows Explorer. Clicking on a window adds it to the stack (even if the script failed to auto-add it).
* Adds shortcuts, see the ini file section bellow.
In particular pressing Alt+m toggles the maximize/restore state of the window while Alt+n minimizes it out of your way (to actually minimize it out of your way press Alt+Shift+n). Alt+m is meant to be used with the object, cell, render, script and script\open windows (and a couple of others maybe) which although not having maximize\restore\minimize button they can be maximized and minimized. With other windows, like "Reference", will give a funky result Smile
Also, pressing Cntrl+Shift+r reloads the script. When cpu load is very high this may prove necessary.


CK_Hotkeys.ini
==============

^ stands for Control, + for Shift and ! for Alt.
~ is not part of the hotkeys but a symbol that tells Autohotkey that when the hotkey fires, its key's native function will not be blocked (so wherever you see, for instance, the ~Enter combo, pressing Enter (and NOT the tilde) will fire the hotkey and also send an Enter keystroke). Best to leave it there when I have it.
For more keys and rules see http://www.autohotke...keys.htm#Intro.
When the CK_Hotkeys_v0.95b.exe script is first run the (default) CK_Hotkeys.ini will be created - and then left alone. If you want to change a shortcut just open the ini and edit the shortcut you want. For instance, replace the line :

ReloadScript=^+r

with :

ReloadScript=^!j

if you want Control+Alt+j to reload the script instead of the default Control+Shift+r. If you want to disable a particular shortcut delete the part after the = sign. For instance :

ReloadScript=

disables the Reload Script shortcut.

For changes to take effect rerun the exe.
If you want to revert to the default hotkeys just delete CK_Hotkeys.ini and reload (run) the CK_Hotkeys_v0.95b.exe. A brand new (default) CK_Hotkeys.ini will be created.
The specific window classes' hotkeys take precedence over the global ones (see comments in [GlobalHotkeys] section).
The ini file I give below is "commented". Do not attempt to comment the actual ini as I don't believe it's possible.

See next post for the ini - 10000 chars limit

Limitations
===========

When clicking too fast on an object in the object window the window that pops up fails to get detected by my script. By too fast I mean so fast that actually the object window is given focus again instantly, so the object's properties loose focus (and that's not the reason for having been clicked in the first place Smile. Either double click on the object again (not so fast) or left click on the object's window properties if visible. It will be detected. Now this is what makes it a beta. I need help with windows event programming to save these scripts from betaness !
NB : THOSE SCRIPTS ARE NOT MEANT TO BE USED WITH MULTIPLE CSs ACTIVE.


Known Bugs
==========

The ^o shortcut for opening the data window sometimes does not work (window does not appear). Workaround : hit the shortcut (^o) again. A blank data window should appear. Hit Esc and the normal data window should appear.
Focus back works too much sometimes - restrict it via ini if causing problems.
Sometimes (on some keyboards ?) some shortcuts do not fire (I had this issue with ^n in script wins). Workaround : reload the script (^+r by default).
A rare bug is that, sometimes, when hitting a hotkey, the perspective in the Render window changes. I have not figured out when exactly this happens - please give me feedback on this one.


To Do
=====

Correct limitation and bugs above. Add tab shortcut functionality for more wins. Make the scripts event based.


Feedback needed
===============

The script relies on sleep times tested on my machine which is rather clean, cpu not under big load etc. Should work fine anyway but I need some feedback on that. And feedback on the workings of the CK from people who are into WinAPI programming would be great. The CK is full of surprises Smile


Changelog
=========

0.95b, 2010/5/9 - CK_Hotkeys_v0.95b.exe : Initial release.


Contact
=======

My blog : http://udunslabs.blogspot.com/. Visit for some more info on the project and to post comments. Remember I need feedback ! Also active in the beth forums (utumno).


Credits
=======

Thanks to Bethesda for creating Skyrim and the CK we love to patch.
Thanks to TESNexus.com/PlanetElderScrolls for the a one-stop-shop resource for authors and players.
Thanks to LHammonds for the Readme Generator this file was based on.
Thanks to the great Autohotkey community that provided me with tons of useful functions/answers/remarks. In particular I would like to thank HotKeyIt who made half of the functions I use Big Grin Thumbs up guys Smile
Thanks to all that provided me with feedback in the beth forums !


Licensing/Legal
===============

Donationware (I have still to add a button - but you can still click on the ads at my blog). Ah, yes, I tested thoroughly and anyway it's a harmless script but still backup and blah blah - enable autosave in the CK btw.

Feel free to move to another section of the forum - just could not find a more relevant one
Reply


Messages In This Thread
CK shortcuts - by Udun - 03-21-2012, 10:33 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)