bairdjf | 8 Dec 2009 22:04
Picon
Favicon

Problem with running Automatic Command

trying to run a *Keys command whenever IE8 starts. Have tried the following in name field with no success:

SSO* (as caption)
c=*IEFram* (as window class)
=IEXPLOR (as .exe)
=iexplor (as.exe)

any suggestions appreciated

------------------------------------

PowerPro can be found here: http://www.ppro.org/
and here: http://ppro.pcrei.com/Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/powerpro-beginners/join
    (Yahoo! ID required)

<*> To change settings via email:
    powerpro-beginners-digest@... 
    powerpro-beginners-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    powerpro-beginners-unsubscribe@...
(Continue reading)

Carroll Robbins | 9 Dec 2009 09:16
Favicon

Re: Problem with running Automatic Command

In PowerPro-Beginners, "bairdjf" <jfbaird@...> wrote, on Tue, 08 Dec
2009 21:04:12 -0000:

>trying to run a *Keys command whenever IE8 starts. Have tried the following in name field with no success:

You haven't reported what happens. Is the command being triggered? Try
using a message box to determine. What is the Keys command?

>SSO* (as caption)

This won't work as when the window first opens it hasn't loaded the page so
it doesn't have a page caption.

>c=*IEFram* (as window class)

I am not sure about this but I suspect it doesn't have an IEFrame when it
first opens.

>=IEXPLOR (as .exe)
>=iexplor (as.exe)

These won't work since the exe name is iexplore.

>any suggestions appreciated

I suggest you use =iexplore. You will need to use enough waits for the page
to load.
--

-- 
Carroll B. Robbins, Jr.

(Continue reading)

bairdjf | 9 Dec 2009 22:57
Picon
Favicon

Re: Problem with running Automatic Command

Thanks for the suggestions but still not happening. i.e, the *keys command which is a logon, does not work.
have tried using different variants of the *Wait command with no luck. According to the help using the
windows class should work, but I also tried with =iexplore. the sequence of events is:
1. click on IE8 shortcut.
2. page displays
3. *Wait command is executed.
4. *Keys command to logon.

This works in other apps like Outlook where I have specified the window caption in the name field. But still
cannot get to work in IE8.

Any ohter thoughts welcome.  jb

--- In powerpro-beginners@..., Carroll Robbins
<carrollrobbins <at> ...> wrote:
>
> In PowerPro-Beginners, "bairdjf" <jfbaird <at> ...> wrote, on Tue, 08 Dec
> 2009 21:04:12 -0000:
> 
> >trying to run a *Keys command whenever IE8 starts. Have tried the following in name field with no success:
> 
> 
> You haven't reported what happens. Is the command being triggered? Try
> using a message box to determine. What is the Keys command?
> 
> >SSO* (as caption)
> 
> This won't work as when the window first opens it hasn't loaded the page so
> it doesn't have a page caption.
> 
(Continue reading)

Carroll Robbins | 10 Dec 2009 21:24
Favicon

Re: Problem with running Automatic Command

In PowerPro-Beginners, "bairdjf" <jfbaird@...> wrote, on Wed, 09 Dec
2009 21:57:53 -0000:

>Thanks for the suggestions but still not happening. i.e, the *keys command which is a logon, does not work.
have tried using different variants of the *Wait command with no luck. According to the help using the
windows class should work, but I also tried with =iexplore. the sequence of events is:
>1. click on IE8 shortcut.
>2. page displays
>3. *Wait command is executed.
>4. *Keys command to logon.

Use a message box to determine if the keys command is being executed.

What are the exact commands you are using?

>This works in other apps like Outlook where I have specified the window caption in the name field. But still
cannot get to work in IE8.

Different apps work differently. IE8 is a tabbed interface which affects
the window caption.
--

-- 
Carroll B. Robbins, Jr.

------------------------------------

PowerPro can be found here: http://www.ppro.org/
and here: http://ppro.pcrei.com/Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/powerpro-beginners/
(Continue reading)

Sheri | 11 Dec 2009 18:26
Picon

Re: Problem with running Automatic Command

--- In powerpro-beginners@..., "bairdjf" <jfbaird <at> ...> wrote:
>
> Thanks for the suggestions but still not happening. i.e, the *keys command which is a logon, does not work.
have tried using different variants of the *Wait command with no luck. According to the help using the
windows class should work, but I also tried with =iexplore. the sequence of events is:
> 1. click on IE8 shortcut.
> 2. page displays
> 3. *Wait command is executed.
> 4. *Keys command to logon.
> 
> This works in other apps like Outlook where I have specified the window caption in the name field. But still
cannot get to work in IE8.
> 
> Any ohter thoughts welcome.  jb
> 
> --- In powerpro-beginners@..., Carroll Robbins
<carrollrobbins <at> > wrote:
> >
> > In PowerPro-Beginners, "bairdjf" <jfbaird <at> > wrote, on Tue, 08 Dec
> > 2009 21:04:12 -0000:
> > 
> > >trying to run a *Keys command whenever IE8 starts. Have tried the following in name field with no success:
> > 
> > 
> > You haven't reported what happens. Is the command being triggered? Try
> > using a message box to determine. What is the Keys command?
> > 
> > >SSO* (as caption)
> > 
> > This won't work as when the window first opens it hasn't loaded the page so
(Continue reading)

Brother Gabriel-Marie | 10 Dec 2009 22:53
Gravatar

How to paste into Indesign using com

Hello all, and Sheri!

I am trying to copy text out of Indesign, manipulate the string and then 
paste it back in.  I can get the text OUT of IND and change it with this 
function:

Function ClipboardCopy()
     . <at> ComLoad()
     appRef.Copy
     . <at> ComUnload()
     quit

But I can't paste it back in.  I've tried sendkeys and setpaste and 
paste, such as this:
Function Testing()
     .InDesign <at> ClipboardCopy()
     local copiedtext = clip.get
     win.debug(copiedtext)
     copiedtext = "-->"++copiedtext++"-->"
     win.debug(copiedtext)
     clip.setpaste(copiedtext)

So I created this function.  If you copy some text manually, this 
function will paste it into IND.
Function ClipboardPaste()
     . <at> ComLoad()
     appRef.Paste
     . <at> ComUnload()
     quit

(Continue reading)

Sheri | 11 Dec 2009 21:36
Picon

Re: How to paste into Indesign using com

--- In powerpro-beginners@..., Brother Gabriel-Marie
<brgabriel <at> ...> wrote:
>
> 
> if I manipulate the string in PP, it does not paste the
> changed string - you can see the debug string!; It indeed copies
> it to the clipboard, and I can paste it manually, but it won't do
> it by itself.
> 
> What am I missing?
>

Hello Brother G!

Pasting is a Windows function that only works for the frontmost window. You could do

AppRef.Activate
AppRef.Paste

or

win.show("=indesign")
clip.paste

I would also suggest to add a wait after every access or change to the clipboard, e.g., wait.for(50)

Regards,
Sheri

------------------------------------
(Continue reading)

Sheri | 13 Dec 2009 22:58
Picon

Re: How to paste into Indesign using com

BTW, you can avoid using the clipboard and its sensitivities.

Assuming you have preselected some actual text (not frames, etc.), following shows how you can manipulate
the textual content of that selection.

local myselect=AppRef.Selection.Item(1)
local temptext=myselect.contents
myselect.contents=""
myselect.contents="**"++temptext.case("upper")++"**"

Following could be added to select the altered text:
appRef.Select(myselect)

or you could instead just put the cursor at the end of the altered text:

appRef.Select(myselect.insertionpoints.lastitem,1919250519)

Something else you can do with selected text is apply a character style. For example, if your document has a
style named "All Caps", the following would apply that style to the selection:

local mystyle=appRef.ActiveDocument.CharacterStyles.Item("All Caps")
myselect.ApplyStyle(mystyle,1)

Regards,
Sheri

------------------------------------

PowerPro can be found here: http://www.ppro.org/
and here: http://ppro.pcrei.com/Yahoo! Groups Links
(Continue reading)

echo_zooloo | 14 Dec 2009 10:53
Picon
Favicon

Is there a way to restrict an applicatino to one virtual desktop ?

Firefox is keeping jumping to other desktops, at its own will.

------------------------------------

PowerPro can be found here: http://www.ppro.org/
and here: http://ppro.pcrei.com/Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/powerpro-beginners/join
    (Yahoo! ID required)

<*> To change settings via email:
    powerpro-beginners-digest@... 
    powerpro-beginners-fullfeatured@...

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

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


Gmane