--- John wrote:
> Could someone tell me how to pass a file to another program when
> launching it?
> For example I have Irfanview installed and I have a bar in the right
> caption with Fireworks as a button. How can I pass the picture that
> I'm viewing in Irfanview to Fireworks when I click on the
> RightCaptioned Fireworks button?
This has been tested with IrfanView v3.92 but it should work with any
other recent version as well.
You may need to modify the Fireworks variable to point to the correct
path.
--
; --- all one line below
Local Fireworks = ?"%ProgramFiles%\Macromedia\Fireworks MX\Fireworks.exe"
; --- all one line above
If(Win.ChildTextByIndex(?"Active", 4) != ?"No file loaded") Do
Win.Keys(?"i")
Local Caption = ?"IrfanView - Image properties"
Wait.For(VisibleWindow(Caption))
Local FilePath = Win.ChildTextByIndex(Caption, 4)
Win.Close(Caption)
Do(Fireworks, FilePath)
EndIf
--
Alex Peters / Melbourne, Australia
PowerPro v4.1.00 / Windows XP
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
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:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/