Selectable text with images scroller

I've been looking everywhere to see if it is it possible to
have images embedded within a selectable text scroller? I can do
everything except embed images that will scroll with the text. So
far, when I embed images, the text becomes static.
Does anyone have a solution?
MJ

You should process the found instances back to front:
for (i = f.length-1; i >= 0; i--)
Peter

Similar Messages

  • Search .docx and replace text with image

    I've got a directory containing a series of images. The images will always be the same name and I need to insert them into placeholders in a Word document which will be a template. I thought of using the image names as placeholders, opening the document
    and searching for the image name, replacing it by inserting the image, and doing so for each image in the directory.
    $file is the name of the image in the directory and it loops through them okay.
    foreach($file in Get-ChildItem $savepath -Filter *.jpg)
            # search word doc and replace selected text with image ($file)    
    Also inserting the image seems simple enough from a TechNet article I found, but I've got no idea how to open the Word document and do a search and replace. I found a few articles related to the subject but I couldn't get them to work when I tried to adapt
    them.
    Any help is appreciated. Thanks in advance.

    This 'might' be possible, but I'm having a hard time finding good references to the com object capabilities for inserting an image into a word document.  Creating new, converting format, that sort of thing is straightforward.
    I'd do a search on "powershell word comobject" and variations of insert image update edit, etc.  Or maybe someone else with more experience/knowledge has a magic bullet for you.  Once you get some info on doing it with powershell, expand
    your search by omitting the powershell keyword, there's gotta be some solid documentation for the comobject somwhere, but it will probably be a bit complex.
    You can also:
    $word = new-object -comobject word.application
    $doc = $word.documents.add("<path to word document>"
    and get-member to your heart's content, but finding references and/or documentation might be easier.  
    Good luck!
    Edit:  This could help, but really doesn't give much insight into placement of the image, only helps getting the image into the doc:  http://gallery.technet.microsoft.com/office/44ffc6c8-131f-42f1-b24b-ff92230b2e0a
    If you do find something useful, post it here, I'm sure others could benefit!
    SubEdit:  Should have thought of this already...
    http://msdn.microsoft.com/en-us/library/ff837519(v=office.14).aspx

  • Use Powershell to replace text with image in Word document

    I have a powershell script that uses a Word document as a template to create signatures that I am pushing out to my organization.
    The document is populated with text formatted the way I want the signature to look, that I then do a FindText and ReplaceText on.  This works fine for replacing text with text, but I can't figure out how to properly replace some of the holder text with
    an image and a link.  I found a few posts about adding images to word documents, but none that seem to work properly in this scenario.
    Any insight would be greatly appreciated, thanks!

    Dear BOFH,
    You are correct that method I outlined is not for inserting an image into a signature block (which would be in Outlook, not Word).  The links you post do certainly deal with outlook signatures, well done... Except that the question was about how to
    use a Powershell script to replace text in a Word document with an image.  Sure it was framed in the context of creating signatures, but the poster expressed that they already had a method of generating and replacing text, and just needed to know, as
    I did, how to do the thing they actually asked.
    Please BOFH... Please forgive my audacity in hoping to find a reference (any reference) to how to replace Word text with images via Powershell in a thread titled "Use Powershell to replace text with image in Word document".
    This is certainly a scripting question, and even something as simple as "You will need to call the .NET methods for the Word find/replace functionality.  Please ask in the Word forums for the correct method to use. 
    If you need help on calling .NET methods look HTTP ://here"support you offered combined with the contempt you offer in response to my actual substantive help to the actual question asked.
    BOFH, you are not better than us, just more arrogant.
    Can you please start your own question as this one has been closed.  Please see scripting guidelines.
    We cannot guarantee you satisfaction as this is a user supported forum.  The is no SLA for community support.  Perhaps if you posted a better worded question as a new topic someone might be able to help you resolve your issue.
    The topic you are posting on is closed and answered.
    ¯\_(ツ)_/¯

  • Can we replace OTR text with Images?

    Hi All,
    I just wanted to know can we replace OTR text with Images?
    or
    Can we define an image as an OTR text? so that it can be placed in the page where OTR text is used.
    regards...
    Ravi

    Hi Ravi,
    it is possible to replace an OTR Text with an image.
    You first have to define the Link in the OTR Text where your image is located. This can be everywhere in the Internet or better on a secured intranet server which everyone can reach easily without permission problems. Maybe in the DMZ.
    You can even link it into the MIME Repository of your SAP System as well.
    Then you have to put that OTR Text into a
    <htmlb:textview> Tag and ensure that the switch
    " encode = "TRUE" is enabled.
    Well thats all.
    Keep in mind that the a different language, set in the Internet Explorer or other viewing instances, disables the link if it not "translated" into that language.
    This can also be an advantage if you got multilingual fixed pictures with drawn text in it.
    I suggest you put all your links ( with a Value Field and at least a name field) into a seperate table into the repository for easy maintaining.
    Greetings,
    Dominik
    Edited by: Dominik Lemke on Dec 19, 2007 12:02 PM

  • Scrolling and selecting text with a bluetooth mouse. (Possible bug?)

    I currently have an Apple Keyboard and Magic Mouse hooked up to my Playbook. They work very well, the implementation is incredible. However, I cannot for the life of me figure out how to scroll with the the mouse. It really limits the PB since if I hook it up to my television I cannot scroll unless I have the PB near me. Has anyone gotten this to work or is this something we are hoping to get in a future update? Aslo, is there a way to select text and bring up the copy/paste menu without having to use the touch screen? I can select text by holding shift / arrow keys on the keyboard but am unable to perform any actions without having to use the touchscreen.
    Thanks!

    Hold on there, @jnko -- are you saying you can scroll with the mouse (as in, use the virtual scroll wheel), or are you saying you can use the mouse to click on the document in, say, Word To Go, and drag it to make the screen scroll?  I can only do the latter, and, like you, can't scroll at all in the web browser.  Stinks that this wasn't fixed with the last update...

  • Scrolling selected text with Indesign CS6 to show different font style

    Hi, I recently found I could highlight a paragraph and using font character style I could scroll through fonts changing whole paragraphs, I can't remember how I did this, I know it's a new feature with CC, I'm on CS6

    Select the text you want to change. Click your cursor after the font name in the field. Press the up or down arrows, and you can see the selected text change.

  • Dynamic text box, HTML Text with Image

    Hello Everyone,
    I am using Flash version 8. I have used the text tool and
    created a dynamic text box and have attached the UIScrollBar
    component to it. This text box is configured to allow the use of
    html text to be inputted to it. I have code that reads a file which
    contains a list of text files that I then read and place them into
    the text box. The user can use the scroll bar to scroll through all
    the text.
    I have created an image that is a picture of the tab portion
    of a file folder. On the tab I have place some text. This was all
    done in Photoshop. This tab image is used to separate the different
    stories in the text box. The image is save as a jpeg file
    Everything you have just read works with out any problems.
    Now for the problem!
    This image is only 20 pixels tall and the text is not very
    readable. As we all know the HTML tags are very limited in Flash 8.
    Ideally I would like to put the text and image in to the text
    box as I would normally do. Then place text on top of the image and
    have it all scroll properly with in the text box.
    I have taken the tab image and converted it in to a graph
    symbol and then put the text on top of the image. This looks good;
    however I don’t know how (or if it is even possible) to place
    the graphic symbol in to the text box at the correct place within
    the text.
    Does anyone have ideas on what may work? Remember that the
    image I am working with is only 20 pixels tall which is why the
    text quality on the image is so poor.
    Thank you all for any help you may provide,
    Steve

    Yes Tim I am using the <img> tag and I know that I
    can’t place text over the image. I have set the height and
    width to be the exact size of the image. However When you go to the
    webpage it will open the movie to the maximum size based on the
    resolution of your display; however I do maintain the aspect ratio
    of the movie. For testing I did set a fix size to the size of the
    movie. Sometimes the fix size (1000x750) looks better and sometimes
    a larger size (example 1280x1024). I believe that the main problem
    is the fact the size of the image is 670 pixels wide by 25 pixels
    high and of the 25 pixels the text is only 18 pixels tall. In
    Photoshop this makes it about a 1.75 point font. As you can see the
    real problem is that I don’t have enough pixels to make up
    the text. This is why I am looking for an alterative way to create
    the text.
    I tried importing the image into flash as a graphic symbol
    and then using the text tool to create the text. The results looked
    real sharp, the text was nice and crisp (just what I wanted). The
    problem is that I could not find a way to place the graphic symbol
    into the dynamic text area like id did using the <img> tag.
    This symbol needs to scroll as you scroll the text in the text
    area.
    This is why I am asking for help. I am looking for some ideas
    that may work.
    Thank you,
    Steve

  • Paste selected text AND images from a webpage to Pages/Word?

    I'm a new Mac user (also running virtual Windows XP via vmware fusion), and I know next to nothing about my Mac. Please bear with me if this is something that has been answered (I looked, but didn't find a specific answer for my question...it may be here, but I can't find it).
    On a Windows-based PC, all I need to do is select, copy, then paste into a Word document. All text and images would paste. I can't seem to figure out how to do that in Pages or Word (have MS Office for Mac, too).
    Thanks for any help.

    I suppose I was hoping I could do on my Mac, what I did on my Dell...that doesn't appear to be the case.
    Specifically, I'm talking about clicking/dragging to select what I want (including images), opening a Word document then pasting everying, including ALL selected images. More specifically, at sites with game walkthroughs. I prefer to save them to a document and refer to them offline, if I need to. I actually tried it at 2 different sites (one that hosts their own images and one that does not), with the same results.
    While I was waiting for a response (thank you, so much, by the way), I tried again and actually managed to get the first 3 images (of 60+) to paste into Word. There were blank places in Word, but the invisible images were clickable. In Pages, only the text pasted.
    Tried it every which way, but Sunday, LOL, and nothing worked. If it can't be done on my Mac, then I'll just keep using my Dell (I knew there was a reason I decided to keep it) for that sort of thing and then email them to myself...or try installing my MS Office '07 under virtual Windows.
    Thanks, again.

  • I can't select text with the mouse

    When I click anywhere in a text string the cursor automatically goes to the 'home' position. If I try to select text by scrolling across text with the mouse button down the cursor also returns to the 'home' position and no text is selected. Any ideas?

    Nee more info.
    Are you working with Flash Professional?
    Is thas an AS3 file?

  • Trouble selecting text with touch up tool

    I have carefully followed the instructions step by step but I cannot get the touch up text tool to turn into an I-beam in order to select text for touching up the color.  I have tried with several documents with no luck, trashed the preferences to revert to the default status, closed and reopened acrobat. I've used this facility several times in the past to access the properties of the text in order to change its color, but I can't seem to do it now.
    I am using Acrobat 9 for mac on an imac (Intel core i3), currently Under OS10.7.3, but I had the same problem under OS 10.6.8.

    Are you looking at scanned text or real text. The inability to get an ibeam (it only comes on when you are over text) is an indication you are likely looking at a graphic. Try it on a file you know for sure is text and see if it works there.

  • JS - surrounding selected text with double quotes

    I have a working script which places brackets around selected text in the main body of my document (not in a table), but when I changed the script to insert double curly quotes, the script wont work.
    Why wont this JS work (script stalls on the var line):
    var myObject = (app.selection[0].parent.constructor.name == "Cell") ? app.selection[0].parent.texts[0] : app.selection[0];
    with (myObject)
    insertionPoints[-1].contents = "";
    insertionPoints[0].contents = "";
    while this one does work:
    var myObject = (app.selection[0].parent.constructor.name == "Cell") ? app.selection[0].parent.texts[0] : app.selection[0];
    with (myObject)
    insertionPoints[-1].contents = ")";
    insertionPoints[0].contents = "(";
    Thx Oz
    PS The quotes are showing as three straight quotes above, but in my script they are two straight double quotes surrounding either a right or a left curly double quote.

    Perhaps there's a Smart Quotes interpreter in JS? Who knows.
    If you find it failing again, try inserting the quotes as Unicode values, as these should not be subject to any translating.
    I.e.,
    >insertionPoints[-1].contents = "\u201c";

  • How to search for the selected text with a non-default search engine?

    Hi,
    Before the recent update of the search bar, you could select your "current" search engine, and a search for the selected text (right-click on selection) would use that engine.
    Now, it seems that you can only search for the selected text using the default engine. If that's correct, this is a major step backwards for me. For instance, I can't have Google as my default search engine, and search for a selected text on eBay!
    Or am I missing something?
    Thanks!
    R.

    I find this extension very useful for items selected on web pages. It offers all your search engines with select>right click.
    https://addons.mozilla.org/en-US/firefox/addon/context-search/?src=search

  • Replace text with images

    Hi,
    I'm using a script found here, to replace @equ001.pdf@ with the corresponding image, same for eq002 etc.
    This script works more or less ok for me.
    Sometimes, it removes some image names without replacing the image, sometimes it was leaving some "@" here and there.
    Sometimes, it's giving me an error on the "place image" code, saying it cannot find the image, giving it's path ending with the grep expression $2 and doesn't work at all.
    Sometimes it does part of the job, stops, gives the same error as above, and continues to work when I click ok.
    Today, it didn't worked on a document. I copied the text to work on into a new InDesign document an there, it worked (but in two times).
    Is there any other way of doing this ?
    if(app.documents.length != 0){
        var myFolder = Folder.selectDialog ('Choose a folder with images');
        if(myFolder != null){
            // reset the Find/Change dialog
            app.findGrepPreferences = app.changeGrepPreferences = null;
            // formulate a grep search string
            app.findGrepPreferences.findWhat = '@.+?@';
            // find all occurrence, last one first
            f = app.activeDocument.findGrep (true);
            for (i = 0; i < f.length; i++){
                // construct file name
                name = f[i].contents.replace (/@/g, '');
                // place the image
                var placedObjects = f[i].insertionPoints[0].place (File (myFolder.fsName + '/' + name));
        // delete all @??@ codes
        app.activeDocument.changeGrep();
    else{
       alert('Please open a document and try again.');

    You should process the found instances back to front:
    for (i = f.length-1; i >= 0; i--)
    Peter

  • Replace text with image using Applescript in InDesign CS5

    Hi to everyone, i'm looking for some suggestions to resolve my problem.
    I've to replace some strings with jpeg images stored on my pc
    Here is the code to replace two strings with the new ones.
    tell application "Adobe InDesign CS5"
              set myDocument to active document
              set myPage to page 1 of myDocument
              set stringsToReplace to {"111", "222"}
      repeat with iterator from 1 to (count stringsToReplace)
           set find text preferences to nothing
           set change text preferences to nothing
           set myFoundItems to nothing
           set element to item iterator of stringsToReplace
          if element is "111" then
               set find what of find text preferences to "111"
               set change to of change text preferences to "ONE"
               set myFoundItems to change text
               display dialog ("Found : " & (count myFoundItems) & " occurences of " & element)
          else if element is "222" then
               set find what of find text preferences to "222"
               set change to of change text preferences to "TWO"
               set myFoundItems to change text
               display dialog ("Found : " & (count myFoundItems) & " occurences of " & element)
          end if
              end repeat
      set find text preferences to nothing
      set change text preferences to nothing
    end tell
    Can you hel me?
    Thanks in advance.

    Hello, I have a couple of questions for you… How come you have strings in text frames… Would you not be better off using labels for this…? ( thats how I would do this ). Off the top of my head I think you will need to remove any text content from the frame to be able to change it's content type… only then will you be able to place a graphic… How are you associating your strings with the required image files… Do you have this in some extenal file Excel or FMP.

  • [JS][CS3] Selection Menu with images

    I have no idea it this is possible, but I have written this code at the start of a script to select a function within the script:
    myDialog = app.dialogs.add({name:"Catalogue Selector"});
    with(myDialog)
            with(dialogColumns.add())
              with(dialogRows.add())
                   staticTexts.add({staticLabel:"Select the required catalogue:"});
                   myOptionButtons = radiobuttonGroups.add();
                   with(myOptionButtons)
                        radiobuttonControls.add({staticLabel:"VW"});
                        radiobuttonControls.add({staticLabel:"Peugeot"});
                        radiobuttonControls.add({staticLabel:"MG Rover"});
                        radiobuttonControls.add({staticLabel:"BMW Special"});
                        radiobuttonControls.add({staticLabel:"Nissan HTML"});
                        radiobuttonControls.add({staticLabel:"Nissan XLS"});
                        radiobuttonControls.add({staticLabel:"BMW (GB)"});
                        radiobuttonControls.add({staticLabel:"SEAT"});
                        radiobuttonControls.add({staticLabel:"Citroen"});
                        radiobuttonControls.add({staticLabel:"Vauxhall"});
                        radiobuttonControls.add({staticLabel:"SAAB 1st Column"});
                        radiobuttonControls.add({staticLabel:"SAAB 2nd Column"});
                        radiobuttonControls.add({staticLabel:"Audi"});
                        radiobuttonControls.add({staticLabel:"Fiat"});
                        radiobuttonControls.add({staticLabel:"Ford"});
                        radiobuttonControls.add({staticLabel:"Ford LCV"});
                        radiobuttonControls.add({staticLabel:"Honda"});
                        radiobuttonControls.add({staticLabel:"Vauxhall FUNNY SIZE"});
                        radiobuttonControls.add({staticLabel:"Hyundai"});
    myResult = myDialog.show();
    and what I want to be able to do is add an image to each option.
    Is this possible?
    I am looking to work with CS3 only at the moment.
    Cheers
    Roy

    Dear Roy Marshall
      Please use the below code:
    var myDialog= new Window(''dialog','Sample');
    //Adding Buttons
    myButton1 = myPanel.add('button', [380,13,75,25], 'Choose',{name:'button1'});
    myButton2 = myPanel.add('button', [380,53,75,25], 'Choose',{name:'button2'});
    myButton3 = myPanel.add('button', [380,93,75,25], 'Choose',{name:'button3'});
    myCancel = myDialog.add('button', [500,120,100,25], 'Cancel',{name:'cancel'});
    myImage = myDialog.add('image',[487,16,588,100],'/Macintosh HD/Applications/Adobe InDesign CS3/Scripts/Scripts Panel/Images/xxx.png');
    myCopyright = myDialog.add('statictext',[15,153,400,172],'©xxxxxxx Ltd 2009');
    myButton1.onClick= function()
        alert("this is First");
    myButton2.onClick= function()
        alert("this is Second Button");
    myButton3.onClick= function()
        alert("this is Third Button");
    myCancel.onClick= function()
        alert("Close the Menu");
         myDialog.close();
    myDialog.show();
    Use this Code!!
    Regards
    T.R.Harihara SudhaN

Maybe you are looking for

  • How can I have SAP to identify third party new hires as a new employee?

    Hello, Situation: Our company has changed our vacation quota policy for new hires.  In 2011, new hires did not receive any vacation their first year.  In 2012, that policy has changed to give them vacation based on how many months are left in the yea

  • How do I stream Daily Show or NYT videos?

    Thanks for reading and responding to this. I have an ipod touch and would like to be able to watch NYT videos and the Daily Show on it, streamed from the internet. How do I do this and what do I need to download-- or for some reason, is it not possib

  • Upgrading to Lion recommendations

    Hi, I just bought a used mid 2010 mac mini; a 2.4 GHz w/ 8 GB RAM and 320 GB HD.  It currently has 10.6.8 on it.  I want to upgrade to Lion but apprehensive some applications might not work in the new environment. I want to be cautious and like to be

  • FireWire fried by power cut?

    Someone switched off the power to my iMac the other day. Since I've rebooted: a) System Profiler shows no awareness of FireWire ("Unable to list FireWire devices" in red) b) Every boot takes about five minutes, 3+ of which seems to be spent waiting f

  • Validating input if nonalphanumeric character without using regex

    Hi Guys, I am trying to validate if the user input does not contain any alphanumeric characters such as (A-Z, a-z, 0-9)... The problem was solved through this forum by using regex.... Unfortunately I'm developing with Blackberry (RIM IDE) but it seem