swzoh | 1 May 2004 02:39

Re: Alias Script with Autocompletion

--- Ravi/Shell-Shocked <y@...> wrote:
> > I'm personally so facsinated
> > about the Case-Sensitivity of map-plugin.
> 
> I am as well.

I'm glad to hear that.

> because if there was some benefit,like speed gains

On the contrary, I was rather concerned that it might loose
speed but did't find any noticeable difference.

> BTW - Do you have any more thoughts on saving the history?

Not really. I have a few crude ideas but have not tried.
50 is rather enough for my current usage. But if you need
more History items, you could log them to your own history
file using "*Exec ToFile". Then, add them to "aliasvec", or
to a separate vector "aliaslog" if PP supports multiple
vectors for autocompletion that I'm not sure about.

As you may notice already, choosing the trailing blank as the
triggering character to add to RunHistory was not accidental.
Other choice would require an extra step to adjust "x0" and/or "param"
accordingly.
The 'trailing' (and even 'leading') blanks in the parameter (or in
command) are usually ignored in almost all apps.
Moreover, fortunately, PP seems to remove trailing blanks in x0 when
recording it to RunHistory.
(Continue reading)

swzoh | 1 May 2004 05:37

Re: Meaning of {slow}{to Desktop}{win}{win}

--- "vkruskal" <YahooMail@...> wrote:
> I don't know exactly what "steals the focus" means, but it
> doesn't steal the focus when the Start bar is brought up
> under the same circumstances by hitting the key

Well, "steal" might be a too 'active mode' expression, how about
more 'passive mode' one: not willing to lose the focus

Anyway, it seems to be more like a timing issue to be specific.
What I'm guessing atm is following: "When you click the button"
1) Usual Situation
it gives (re)focus to the app -> Keys arrives at Desktop
2) Busy Situation
Keys arrives at Desktop -> the app get (re)focus

If my guess is right, you are probably using mouse "click"
hotkey or like that which triggers immediately
at the clicking.
If so, try to switch to mouse "hold" or mouse "drag" hotkey.

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/JV_rlB/TM
---------------------------------------------------------------------~->

****  EDIT YOUR POSTINGS !!!! ****
Please remove as much as possible from original messages before replying to them.
________________________________________________ 
(Continue reading)

Luciano ES | 1 May 2004 18:09

Re: Monitor lists - Inside Topic: PowerPro Tool Replacement

Hey. Did anyone say "permission"?

Don't bother asking me "permission" for that. All the PowerPro scripts I
have distributed are in the public domain.

I also have no interest in improving that script. It's been perfectly good
enough for my needs. At any rate, I see that someone came up with a couple
of interesting improvements, so no one needs me for that. The script is
simple, just hack it to your heart's content and share it whenever
possible.

Actually, I do have plans for improving it. I already started a new version
two or three months ago, but then I ran into a bug, then I went to sleep,
then I got very busy, then I never had a chance to resume it.

The new version is going to have auto completion, path completion, history
in a drop-down box with accelerator keys, alphabetical, chronological and
last-used sorting, and lots more(*).

(*) and lots more = another way of saying "pretty much it".

But this one is going to be written in Tcl. I think the alias concept is so
nice that more people should be given a chance to use it, even those that
do not use PowerPro. PowerPro is too complex and puts off a lot of people,
I'm afraid. Tcl scripts can be turned into single executables and used by
anyone. It's also cross-platform and orders of magnitude easier than
PowerPro scripting. Sure it's difficult if you don't know it, but if you
know both, Tcl is a lot easier.

Sorry to disappoint you.
(Continue reading)

Ravi/Shell-Shocked | 1 May 2004 18:39
Favicon

Re: Re: Monitor lists - Inside Topic: PowerPro Tool Replacement

> The new version is going to have auto completion, path
> completion, history in a drop-down box with accelerator keys,

Accelerator keys you say? That sounds really sweet - but
seemingly not possible with PP. :(  Bruce? ;)

Maybe if we store vector items as '&Item' it can appear in the
dropdown list with the 'I' underlined. (Currently, not possible.)

> alphabetical, chronological and last-used sorting, and lots
> more(*).

Last used sorting sounds really groovy as well.

Maybe even if you decide to discontinue this TCL script, you
could post it as a learning tool.

--

-- 
Ravi (http://shell-shocked.org)
PowerPro 3.8.11 on Windows XP

"24 hours in a day and 24 beers in a case. Coincidence?"

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/JV_rlB/TM
---------------------------------------------------------------------~->

(Continue reading)

swzoh | 2 May 2004 04:03

Re: Monitor lists - Inside Topic: PowerPro Tool Replacement

--- "Luciano ES" <luc-ppro@...> wrote:
> But this one is going to be written in Tcl. I think the
> alias concept is so nice that more people should be given
> a chance to use it, even those that do not use PowerPro.

No offence here, just curiosity.
Why bother to create one if it'll not come in PP, since there
exists a superb alias freeware "TypeAndRun".
At a glance, TAR can already do all what you described and more,
even 'keyboard shortcuts' through a plugin in near future.
The only thing I'm aware of that people might think as a
shortcoming of TAR is its memory consumption, ~4MB at minimum.
I know the author had done a lot memory optimization, but it's
written in 'Delphi 7' so has a certain limitation.
But, I didn't experience a significant memory leakage in the
recent versions.

You said it'll come as the single executable.
Will it be a genuine stand-alone executable or merely shipped
with the script engine? I'm afraid here whether I properly
expressed what I meant, I'm a total novice in programming.
If the latter, I doubt it could do the autocompletion et al
in any useful manner if the script engine has not been
specifically designed for these jobs.

If my memory serves, there already was a PP script long ago
which intended to do autocompletion, however, I would not
call it the (exact) autocompletion, especially if compared
with those in TAR or in the latest PP.
I think someone could also script those you intend to achieve
(Continue reading)

sgp | 2 May 2004 09:06
Picon
Favicon

CAVEAT *dos | 2ppvar

I found one caveat with the use of *dos | 2ppvar, I'm not sure if it's 
been mentioned before. As noted before in this group, one can use 2ppvar 
to capture and process the output of an external command. This is very 
useful. The caveat is that *dos runs asynchronously--at least on my win2k 
box-- so one needs to make sure that *dos terminates before using the 
variable set by 2ppvar in a script. Here's a complete example, 
miscplugin.sleep is used to handle the caveat.

    global tmp=""
    do("*dos *hide","route print | grep 0x1000004 | 2ppvar tmp","")
    miscplugin.sleep(500)
    win.debug(scriptname++": found adapter &(tmp)")
    if ( tmp )do
      ; process tmp
    endif

Is there an alternative way to wait for *dos to complete without needing 
to hardwire a sleep?

****  EDIT YOUR POSTINGS !!!! ****
Please remove as much as possible from original messages before replying to them.
________________________________________________ 
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@...

(Continue reading)

Alex Peters | 2 May 2004 10:26

Re: CAVEAT *dos | 2ppvar

--- sgp wrote:

> Is there an alternative way to wait for *dos to complete without needing
> to hardwire a sleep?

One alternative that springs to my mind, that by logic should work but
may not:

Global Tmp = ""
%ComSpec% /C Route Print | Grep 0x1000004 | 2PPVar Tmp`!*Hide
*Wait Done
Win.Debug(ScriptName ++ ": found adapter", Tmp)
If(Tmp) Do
    ; Process Tmp
EndIf

(Also note the more efficient usage of Win.Debug!) ;-)

Cheers,
Alex

ICQ# 37414292

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/JV_rlB/TM
---------------------------------------------------------------------~->

(Continue reading)

mockey_a | 2 May 2004 16:05
Picon

Re: Monitor lists - Inside Topic: PowerPro Tool Replacement

Hi.
--- In power-pro@..., "swzoh"
<yeumyang@...> wrote:

> If my memory serves, there already was a PP script long ago
> which intended to do autocompletion, however, I would not
> call it the (exact) autocompletion, especially if compared
> with those in TAR or in the latest PP.

I guess you mean my old runbox-script. I tried to achieve some kind 
of auto-completion with a timer there. I always wanted to improve it 
by using keytrap but I think that's not necessary anymore. Seems like 
you can auto-complete pretty much everything now by using your own 
vector.

> I think someone could also script those you intend to achieve
> with only PP's pure script engine, let alone the difficulties.
> But, I highly doubt that it'll ever become useful.

What dfficulties and why shouldn't it become useful?

Mockey

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/JV_rlB/TM
---------------------------------------------------------------------~->

(Continue reading)

mockey_a | 2 May 2004 17:13
Picon

Re: CAVEAT *dos | 2ppvar

Hi.
--- In power-pro@..., Alex Peters
<alex@...> wrote:
> Global Tmp = ""
> %ComSpec% /C Route Print | Grep 0x1000004 | 2PPVar Tmp`!*Hide
> *Wait Done
> Win.Debug(ScriptName ++ ": found adapter", Tmp)
> If(Tmp) Do
>     ; Process Tmp
> EndIf

Apart from all the problems you get with using plain *wait, "*wait 
done" seems to work but seems to wait far too long (something like 3 
seconds on my system). 
As long as your dos command returns a one-liner (which I think you'll 
get when using grep like this)
wait for Tmp
might be a better alternative (with Tmp = "" at the start). I think 
2ppvar will write line after line in the variable, so this will 
return straight after the first one. Of course that's not good for 
multi-line output. Maybe 2ppvar's behaviour could be changed?

Mockey

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/JV_rlB/TM
---------------------------------------------------------------------~->
(Continue reading)

mockey_a | 2 May 2004 17:25
Picon

Re: CAVEAT *dos | 2ppvar

Hi.
--- In power-pro@..., "mockey_a"
<mockey@...> wrote:
> wait for Tmp
> might be a better alternative (with Tmp = "" at the start)

wait for not anywindow("=cmd")
might do as well (provided that you don't have any other dos-windows 
open).

Mockey

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/JV_rlB/TM
---------------------------------------------------------------------~->

****  EDIT YOUR POSTINGS !!!! ****
Please remove as much as possible from original messages before replying to them.
________________________________________________ 
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@...

(Continue reading)


Gmane