swzoh | 1 Sep 2006 01:47
Picon

Re: ColorPicker

--- In power-pro@..., miinx <miinxfree <at> ...> wrote:

> Incidentally, I may have missed this, but what's the commented-out 
> section for?  That's the bit:

That's a remnant. As the event version seems to work well, I'll remove it.

> Also, this doesn't do anything for me? :
> 
> Here is an example:
> 
>  <at> Picker
> args hWnd,hDC_TT,hDC_SC,ti,nColor
> 
> if(KeyTrap.GetKeyState(0,27))
> quit(dll.call("ReleaseDC|ui ui",0,hDC_SC)++dll.call("ReleaseDC|ui
> ui",hWnd,hDC_TT)++win.close(hWnd))
> ; the above in 1 line

OK, if it's enough with Esc+MouseLeft as the cancel combo, I think I
could add it.

> And finally, another request of sorts...  I mostly need #RRGGBB values, 
> but sometimes need the (RRR GGG BBB) value.  So, firstly, what's the n 
> value needed for the script to get that?  (like #RGB is -2)

Use regular expression:
nColor["(?#1)[^(]"] for " RRR GGG BBB "
nColor["(?#1)#.{6}"] for "#RRGGBB"

(Continue reading)

swzoh | 1 Sep 2006 02:01
Picon

Re: ColorPicker

> Use regular expression:
> nColor["(?#1)[^(]"] for " RRR GGG BBB "
> nColor["(?#1)#.{6}"] for "#RRGGBB"

Oops, I omitted *:
nColor["(?#1)[^(]*"] for " RRR GGG BBB "

Sean

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    power-pro-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

sgp | 1 Sep 2006 02:03
Picon
Favicon

Re: [SPAM?]: Re: PPSR

brucexs wrote:

> I don't think you can use setctrlvalue to change the URL for the 
> browser control.  Although the initial URL comes from the windows 
> text, changing the window text does get communicated to the control by
> the container, AFAIK.  You need a COM interface and to use the 
> Navigate command from COM, I think.

well yes, I was also experimenting with removing and reinserting the
item (from pproconf import) but got so many crashes that I gave up. I'll
try scripting this bar instead of importing it.
And COM is probably the proper way. 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    power-pro-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

swzoh | 1 Sep 2006 03:12
Picon

Re: ColorPicker

> OK, if it's enough with Esc+MouseLeft as the cancel combo, I think I
> could add it.

I uploaded a new version:

Shift+LeftMouse to cancel.

Sean

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    power-pro-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Cüneyt | 1 Sep 2006 09:15
Favicon

Comments (Was Re: ColorPicker)

swzoh wrote  (on 01.09.2006 03:12):
>> OK, if it's enough with Esc+MouseLeft as the cancel combo, I think I
>> could add it.
> 
> I uploaded a new version:
> 
> Shift+LeftMouse to cancel.

Hi Sean,

Thanks for the script. Would you think about writing a few lines of
comments in your scripts, not only ColorZoomer, what they do and how
they do?

TIA,
Cüneyt

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    power-pro-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

(Continue reading)

sgp | 1 Sep 2006 11:30
Picon
Favicon

Re: [SPAM?]: Re: PPSR

Cüneyt wrote:

> 1. simplified HTML-output or any format which is easy to parse by PP.

Have you thought about restructured text?
It turns simple text formatting of plain text files into html (not
viceversa) If ppsr was written in restructured text in the first place,
the website could serve txt for lookups with no need for html conversion on
the client side. And the website itself could display autogenerated html
from restructured text. 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    power-pro-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

sgp | 1 Sep 2006 11:54
Picon
Favicon

Re: ColorPicker

swzoh wrote:

> Shift+LeftMouse to cancel.

Not working here, 
Cannot access script file
C:PowerProScriptsColorZoomer2.txt

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    power-pro-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

swzoh | 1 Sep 2006 11:34
Picon

Re: ColorPicker

--- In power-pro@..., sgp <acs322000 <at> ...> wrote:
>
> swzoh wrote:
> 
> > Shift+LeftMouse to cancel.
> 
> Not working here, 
> Cannot access script file
> C:PowerProScriptsColorZoomer2.txt

One character is missing, \ escape char problem. Although I corrected
it, no need to redownload it: search inside the event and replace
"event.destroythis
with
?"event.destroythis

Sean

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    power-pro-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

(Continue reading)

swzoh | 1 Sep 2006 11:42
Picon

Comments (Was Re: ColorPicker)

--- In power-pro@..., Cüneyt <cy_lists <at> ...> wrote:
>
> swzoh wrote  (on 01.09.2006 03:12):
> >> OK, if it's enough with Esc+MouseLeft as the cancel combo, I think I
> >> could add it.
> > 
> > I uploaded a new version:
> > 
> > Shift+LeftMouse to cancel.
> 
> Hi Sean,
> 
> Thanks for the script. Would you think about writing a few lines of
> comments in your scripts, not only ColorZoomer, what they do and how
> they do?

I'm not sure if brief comments are helpful. I always felt awkward
about how detailed the comments should be. Maybe better discuss the
details in the forum than just commenting the script? Anyway, because
of this, I tried to make the script just procedual as possible as I
can. I tried to avoid even . <at> label too.

Sean

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

(Continue reading)

Cüneyt | 1 Sep 2006 12:40
Favicon

Re: Re: [SPAM?]: Re: PPSR

sgp wrote  (on 01.09.2006 11:30):
> Cüneyt wrote:
> 
>> 1. simplified HTML-output or any format which is easy to parse by PP.
> 
> Have you thought about restructured text?

Didn't know this one. Thanks :)

Actually RST shouldn't need any formatting on the client. Even then,
PP wouldn't have any problem parsing it.

> It turns simple text formatting of plain text files into html (not
> viceversa) If ppsr was written in restructured text in the first place,
> the website could serve txt for lookups with no need for html conversion on
> the client side. And the website itself could display autogenerated html
> from restructured text. 

A good idea, but then it means some extra work for Karen. But as I said,
I can help with the serverside-programming or XSLT authoring.

Greetings,
Cü

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

(Continue reading)


Gmane