[ Jpn | Eng ]

Main Menu



Recent

Recent Entries:

Search

Search this site:

Archive

Powered by
MTOS 5.2.2



« December, 2008 | January, 2009 Archive | March, 2009 »

2009/01/26

KnobMan 1.33 Released


KnobMan 1.33 released.

KnobMan 1.33

What's new in 1.33
* Support scripting by various language including Python
* Plugin 'Monochrome' added. (need python).
* BugFix: Screen is not updated on delete a VisibleSoloed layer.

In this release, Python scripting sample 'Monochrome.py' is attached. may be useful for python programmer.

import sys
import ctypes

user32=ctypes.windll.user32
WM_SETTEXT=12

def KMSendText(hwnd,text):
  user32.SendMessageA(hwnd,WM_SETTEXT,0,text)

def KMGetText(hwnd):
  length = user32.GetWindowTextLengthA(hwnd)
  if length:
    buffer = ctypes.create_string_buffer("",length + 1)
    if user32.GetWindowTextA(hwnd, buffer, length +1):
      return buffer.value

def KMSetValue(hwnd,layer,param,value):
  s="KnobManCtl:SetValue "
  if layer==0:
    s=s+"Prefs."
  else:
    s=s+"Layer"+str(layer)+"."
  s=s+param+"="+str(value)
  KMSendText(hwnd,s)

def KMGetValue(hwnd,layer,param):
  s="KnobManCtl:GetValue "
  if layer==0:
    s=s+"Prefs."
  else:
    s=s+"Layer"+str(layer)+"."
  s=s+param
  KMSendText(hwnd,s)
  return KMGetText(hwnd)

def KMExport(hwnd,file):
  KMSendText(hwnd,"KnobManCtl:ExportImage "+file)

def KMExit(hwnd):
  KMSendText(hwnd,"KnobManCtl:Exit")


###################################################
def Main():
  hwnd=int(sys.argv[1])
  user32.MessageBoxA(0,"Change to Monochrome","Monochrome",0)
  layers=int(KMGetValue(hwnd,0,"Layers"))
  for layer in range(1,layers+1):
    KMSetValue(hwnd,layer,"Saturation1",-100)
    KMSetValue(hwnd,layer,"Saturation2",-100)
  KMExit(hwnd)
  user32.MessageBoxA(0,"Completed.","Monochrome",0)

Main()

posted by g200kg : 11:44 PM : PermaLink

2009/01/19

SkinMan 0.94 Released


SkinMan 0.94 Released.

SkinMan 0.94
* BugFix: Undo/Redo cant restore the background/workspace colors
* BugFix: crash in some cases (undo/redo+object-selecting, properties change for deleted obj)
* Improved ColorPicker. Color selection is realtimely reflected to the screen.

posted by g200kg : 11:13 PM : PermaLink

2009/01/12

SkinMan 0.93 Release


SkinMan 0.93 Released

SkinMan 0.93

Ver 0.93 20090112
* BugFix: cannot load .skin files on WindowXP
* Restore the fix on 0.92 about texts because of a side-effect that makes extra squares.

Finally, I found the problem. That caused by the difference of behavior between Vista and XP.

posted by g200kg : 2:10 AM : PermaLink


« December, 2008 | January, 2009 Archive | March, 2009 »

g200kg