August 2011

Warning! Some information on this page is older than 3 years now. I keep it for reference, but it probably doesn't reflect my current knowledge and beliefs.

Aug 2011

WGK Gamedev Conference - This Weekend

This weekend - 2-4 September 2011 in Gdańsk, Poland - National Conference on Computer Games Development takes place (see also topic). It's the first edition of this event. I'm going to go there and I look forward to see if it will be good.

It's impossible not to compare it to the IGK conference in Siedlce, which was already held 8 times. Similar to it, WGK is focused primarily on games programming, includes lectures on Friday evening and whole Saturday and on Sunday there is a competition where team of up to 4 people have to develop a game from scratch during 8 hours. We will see if MrKaktus and others from Gdansk University of Technology succeed in organizing as good or even better conference. Anyway it's a great opportunity for us - programmers from Warsztat and other Polish game developers - to meet live and have a nice time together. So see you in Gdańsk!

Comments (0) | Tags: competitions compo events igk | Author: Adam Sawicki | Share

Aug 2011

Hotkey for Macro Inserting Text

I recently code in C - an ancient language with no support for namespaces. To code a bigger system and not create name conflicts, prefixes for all public identifiers must be used. But they not only make the code less readable, but also take lots of time to type. I thought that at least the second issue can be minimized by setting up some macro that would insert predefined text (like "rendering_"), whenever I press a hotkey button (like Pause/Break).

I couldn't find such feature in my Visual C++ 2010 Express, so I decided to look for some general tool for Windows that can trigger a script when a hotkey is pressed. I found AutoHotkey - a free application with its own scripting language that claims to be successor of AutoIt, which I used some time ago. After reading some documentation, I coded following script:

SetKeyDelay -1
send rendering_

SetKeyDelay -1

If you have AutoHotkey installed, just save this code to a file, give it "ahk" extension and double-click to run it. Program will create a system tray icon for this script indicating that it's running in the background. From now on you can just press Pause key to insert text "rendering_" to whatever input control you are focused, or Shift+Pause to insert "RENDERING_". It really speeds up coding in C :)

Comments (1) | Tags: windows tools c | Author: Adam Sawicki | Share

STAT NO AD [Stat] [Admin] [STAT NO AD] [pub] [Mirror] Copyright © 2004-2017 Adam Sawicki
Copyright © 2004-2017 Adam Sawicki