こんな風でしょうか?
#include "gdi32.as"
#uselib "user32"
#func SetWindowLong "SetWindowLongA" int, int, int
#func SetWindowPos "SetWindowPos" int, nullptr, nullptr, nullptr, \
nullptr, nullptr, int
#define ctype RGB(%1,%2,%3) (%1 | %2 << 8 | %3 << 16)
dim hInput, 2
oncmd gosub *ctlcoloredit, $133
onexit *exit
objsize 640, 480
a = "C:\\Windows\\System >"
input a
hInput.0 = objinfo(stat, 2)
SetWindowLong objinfo (0, 2), -20, $0
SetWindowPos objinfo (0, 2), $27
CreateSolidBrush RGB($00, $00, $00)
hBrush.0 = stat
stop
*ctlcoloredit
if hInput.0 = lparam {
SetTextColor wparam, RGB($FF, $FF, $FF)
SetBkColor wparam, RGB($00, $00, $00)
return hBrush.0
}
return
*exit
DeleteObject hBrush.0
end