Hi - using gigula's original code I modified it so that from table script you can set the dmd position , colour , and fullcolour off / on
Simply add this piece of code to the top of your table script directly underneath the lines
Option Explicit
Randomize
'---------- UltraDMD Unique Table Color preference -------------
Dim DMDColor, DMDColorSelect, UseFullColor
Dim DMDPosition, DMDPosX, DMDPosY
UseFullColor = "False" ' "True" / "False"
DMDColorSelect = "OrangeRed" ' Rightclick on UDMD window to get full list of colours
DMDPosition = False ' Use Manual DMD Position, True / False
DMDPosX = 2303 ' Position in Decimal
DMDPosY = 860 ' Position in Decimal
GetDMDColor
Sub GetDMDColor
Dim WshShell,filecheck,directory
Set WshShell = CreateObject("WScript.Shell")
If DMDPosition then
WshShell.RegWrite "HKCU\Software\UltraDMD\x",DMDPosX,"REG_DWORD"
WshShell.RegWrite "HKCU\Software\UltraDMD\y",DMDPosY,"REG_DWORD"
End if
WshShell.RegWrite "HKCU\Software\UltraDMD\fullcolor",UseFullColor,"REG_SZ"
WshShell.RegWrite "HKCU\Software\UltraDMD\color",DMDColorSelect,"REG_SZ"
End Sub
'---------------------------------------------------
To get the pos x/y it is probably easiest to move the dmd to where you want with the mouse, and then opening regedit to get the position.
Note the position is in Decimal
For colour option right click on ultradmd and use the colour as it is named there
Thanks to CarnyPriest list available at http://www.w3schools...olors_names.asp
Tested using the current build of UDMD with installer, version 1.4.16050500
https://ultradmd.wor...s.com/download/
Thanks to Ultrapeepi for his work on UltraDMD
And to all
Edit: Changed script so that it defaults to not changing DMD position unless specified
Removed read current color check as it causes an error with a fresh install of UltraDMD
Edited by Seraph74, 15 November 2016 - 01:55 AM.