nixie: proof of concept using images to simulate a display

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
Relayer
Posts: 160
Joined: 30 Sep 2013, 13:09
Location: Delaware, USA

nixie: proof of concept using images to simulate a display

29 Aug 2014, 09:29

This script uses a set of images, in this case nixie tube numeric characters, to create a virtual display. The main feature of this method is that you can make a display out of any set of images that represent your digit characters. For example, an LCD, an LED, the train station "flip" displays, etc. Right now it is numeric only. You must use AutoHotKey_L.

Put the file in its own folder as it will unpack a set of images that mimic a nixie tube display. The demo gives you a clock and an xy mouse position. ESCAPE kills the demo.

Relayer

edit: added missing functions and disabled DPIScaling
Attachments
nixieMouse&Clock.zip
(49.51 KiB) Downloaded 90 times
Last edited by Relayer on 31 Aug 2014, 18:16, edited 1 time in total.
User avatar
trismarck
Posts: 506
Joined: 30 Sep 2013, 01:48
Location: Poland

Re: nixie: proof of concept using images to simulate a displ

29 Aug 2014, 17:14

Looks good.

Found the following:
  • I get an error that Hex2Dec() and Dec2Hex() are not included
  • looks like GDIP is required
  • 1GuiClose: - never triggers
  • perhaps disable DPIScale for internal gui windows as it leaves empty spaces between the digits on higher DPI settings
How about posting a screenshot of how the LCD looks like?
User avatar
Relayer
Posts: 160
Joined: 30 Sep 2013, 13:09
Location: Delaware, USA

Re: nixie: proof of concept using images to simulate a displ

29 Aug 2014, 20:23

Thanks for the input. Yes, Gdip is needed. Sorry about the two missing functions.

Can you say more about DpiScale? I'm not familiar with that.

Attached are the missing functions and a .jpg of other font "images" I've been using (they look much better than what you see in this screen grab).

Relayer
Attachments
functions.zip
(1.18 KiB) Downloaded 93 times
captured_2014 Aug 29, 090703 PM.jpg
User avatar
trismarck
Posts: 506
Joined: 30 Sep 2013, 01:48
Location: Poland

Re: nixie: proof of concept using images to simulate a displ

30 Aug 2014, 07:13

Code: Select all

__New() {
    ...
    Gui, %guiID%: -DPIScale
    ...
}
20140830-Relayer-nixie-DPIScale.jpg
20140830-Relayer-nixie-DPIScale.jpg (14.27 KiB) Viewed 1998 times
I should have added -DPIScale for gui windows 1 and 2 also.

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: wjt936826577 and 134 guests