| ChooseColor() |
|---|
|
You can get the "ChoseColor" dialog window: Here's an example that shows "ChoseColor":// File: choosecolor.w_js (JScript) var colorref = Window.ChooseColor(80,80,80); //r, g, b // (COLORREF value has the following hexadecimal form: 0x00bbggrr) var text = "0x" + colorref.toString(16); Window.TextOut(0,50,50,text); Window.UpdateWindow();// VBScript syntax colorref = Window.ChooseColor(80,80,80) 'R, G, B 'COLORREF value has the following hexadecimal form: 0x00bbggrr text = "0x" & Hex(colorref) Window.TextOut 0, 50, 50, text Window.UpdateWindow() |
| The new scripting host. It is not wscript.exe! |