Robot getpixelColor returns wrong color sometimes...

Hey
I ve got a problem. I read Pixels from a Game with the Robot getPixelColor method. Sometimes it returns right values, sometimes wrong! I check some pixels if they are white. The pixels dont move, so this same pixels are white everytime!.
Now sometimes he returns wrong colors. Instead of 255,255,255 ...it returns 0,12,25 or something like that. (with the same x, y coordinate).
My assumption is: My code is like following
CheckPixel(MyRobot.getPixelColor(30,40);
CheckPixel(MyRobot.getPixelColor(31,45);
CheckPixel(MyRobot.getPixelColor(36,20);
CheckPixel(MyRobot.getPixelColor(51,70);
Now it has to return 255,255,255 but somtimes its not working, he return 0,0.12 .... 0,0,15..... 255,255,255 .. or something like that
Could it be, that java does not refresh the robot object so fast when I call getPixelColor so fast in a row?
Is there a command with which I force Java to wait until the pointer is on the right x,y coordinate? Except of Thread.Sleep();
Thank you for your help..

ok I try:
Robot r = new Robot();
int x, int y;
x = getItSomehwere();
y = getitsomehwere();
for (int i= 0, i< 20; i++) {
if (isThatPixelsWhite(x, y) != 0) {
  DoSomething;
public int isThatPixelsWhite(int x, int y) {
if  (
r.getPixelColor(x+5,y+15).equals(Color.WHITE)  &&
r.getPixelColor(x+7,y+19).equals(Color.WHITE) &&
r.getPixelColor(x+9,y+11).equals(Color.WHITE) &&
r.getPixelColor(x+21,y+5).equals(Color.WHITE) &&
r.getPixelColor(x+13,y+2).equals(Color.WHITE) &&
r.getPixelColor(x+23,y+7).equals(Color.WHITE) &&
r.getPixelColor(x+9,y+9).equals(Color.WHITE) &&
r.getPixelColor(x+10,y+21).equals(Color.WHITE) &&
r.getPixelColor(x+11,y+22).equals(Color.WHITE)
) return 1;
return 0;
}Thats the relevant code.
I guess the fast calling of getPixelColor in this if struct (in Method isthatPixelsWhite) overburd java ..

Similar Messages

  • Function sometimes return wrong data

    Hi all.
    I have a very strange problem with a function. Situation is this: I have an application that handles processes. Each process have a number of steps that is arranged in a matrix like layout. User clicks a step to start/execute it.
    Now in a list of current processes i want to have an indication of how "far" a process has reached so i created a function for that and included that in my processlist fetch.
    gchs_user_process_steps is the table where the user data for the process step is
    gchs_process_steps is the definition table of what steps a process has
    gchs_steps is the definition table of all steps
    The below function is supposed to return latest step user clicked in the display matrix. tier is used to store the column number and sortorder is the row number of any step user clicked.
    CREATE OR REPLACE FUNCTION FN_REACHEDSTEP(p_user_process_id NUMBER)
    RETURN VARCHAR IS
      ret VARCHAR(30);
      ret_id INTEGER;
      ret_num INTEGER;
    BEGIN
       ret := '';
       ret_id := 0;
       ret_num := 0;
       BEGIN
    SELECT substr(step_name,1,30),step_id,reached INTO ret,ret_id,ret_num
    FROM (
    SELECT a.*, rownum rnum
    FROM (
        SELECT s.name AS step_name, ps.id AS step_id, max((ps.tier*1000)+ps.sortorder) AS reached
        FROM gchs_user_process_steps ups, gchs_process_steps ps, gchs_steps s
        WHERE ups.gchs_process_step_id=ps.id AND
           ps.gchs_step_id=s.id AND
           ups.gchs_user_process_id=p_user_process_id
        GROUP BY s.name,ps.id
        ORDER BY 3 DESC) a
    WHERE rownum <= 1 )
    WHERE rnum >= 1;
       EXCEPTION
         WHEN OTHERS THEN
            ret:='';
       END;     
          RETURN ret;
      EXCEPTION
    WHEN OTHERS THEN
           ret := '';
       RETURN ret;
    END FN_REACHEDSTEP;
    Now the problem is that the function sometimes return wrong value. The name of the step that is returned is not the one i get if i run the SQL by itself.
    So doing a
    SELECT substr(step_name,1,30),step_id,reached INTO ret,ret_id,ret_num
    FROM (
    SELECT a.*, rownum rnum
    FROM (
        SELECT s.name AS step_name, ps.id AS step_id, max((ps.tier*1000)+ps.sortorder) AS reached
        FROM gchs_user_process_steps ups, gchs_process_steps ps, gchs_steps s
        WHERE ups.gchs_process_step_id=ps.id AND
           ps.gchs_step_id=s.id AND
           ups.gchs_user_process_id=21680
        GROUP BY s.name,ps.id
        ORDER BY 3 DESC) a
    WHERE rownum <= 1 )
    WHERE rnum >= 1;
    and a
    select fn_ReachedStep(21680) from dual;
    will sometimes return different values.
    So is the function fundamentally wrong or is there any cache or something that i've missed that could hold "old" function outputs or am i missing something else.
    Thankful for any clues.
    I'm using Oracle 10.2.0.1.0
    Best regards
    /Tomas
    Edit: Here's some data that the system uses.
    gchs_steps
    ID           NAME
    10000     Step 1
    10020     Step 2
    10021     Step 3
    10022     Step 4
    10023     Step 5
    10060     Step 6
    10140     Step 7
    gchs_process_steps
    ID          GCHS_STEP_ID      TIER     SORTORDER
    10000     10000               0          1
    10001     10020               1          1                                                                                                                   
    10002     10021               1          2                                                                                                                   
    10003     10022               2          1
    10020     10023               3          5
    10060     10060                3          4
    10080     10140               3          2
    10040     10040               3          3
    10100     10160               4          3
    10160     10220               4          2
    11640     11640               3          1
    11660     11660               0          6
    11661     11661               0          7
    11600     11600               0          4
    11620     11620               4          1
    gchs_user_process_steps
    ID          GCHS_USER_PROCESS_ID     GCHS_PROCESS_STEP_ID
    35541     21680                         10002
    38441     21680                         10020
    38440     21680                         10000
    52062     21680                         10060
    Relations beween table is
    gchs_user_process_steps.gchs_process_step_id=gchs_process_steps.id
    and
    gchs_process_steps.gchs_step_id=gchs_steps.id
    So doing the SQL alone will always return
    SUBSTR(..)     STEP_ID REACHED
    Step 5      10020 3005
    but executing the function sometimes returns
    FN_REACHEDSTEP(21680)
    Step 6
    Also removing the rownum limits return and doing a
    SELECT s.name AS step_name, ps.id AS step_id, max((ps.tier*1000)+ps.sortorder) AS reached
    FROM gchs_user_process_steps ups, gchs_process_steps ps, gchs_steps s
    WHERE ups.gchs_process_step_id=ps.id AND
    ps.gchs_step_id=s.id AND
    ups.gchs_user_process_id=21680
    GROUP BY s.name,ps.id,ps.tier, ps.sortorder
    ORDER BY 3 DESC
    give this result
    STEP_NAME     STEP_ID     REACHED
    Step 5          10020     3005
    Step 6          10060     3004
    Step 3          10002     1002
    Step 1          10000     1
    Edited by: user4935832 on 2008-sep-19 01:38

    ORDER BY 3 DESC) a
    WHERE rownum <= 1 )
    WHERE rnum >= 1;Just some thoughts.
    1. You could replace "ORDER BY 3" by "ORDER BY reached"
    2. the rownum <=1 and rnum>=1 will return only one row... I don't understand the second one.
    Lastly, the difference might come from a duplicate value return by your MAX() function.
    If there is two rows (or more) with same MAX, Oracle might return one row arbitrary.
    To get the same row, you have to use some aggregation function like MAX() KEEP (DENSE_RANK LAST...).
    Here a try for your query, obviously not tested :
    SELECT max(substr(step_name,1,30)) keep (dense_rank last order by reached) as step_name,
           max(step_id) keep (dense_rank last order by reached,step_name) as step_id,
           max(reached) as reached
    FROM   (SELECT s.name AS step_name,
                   ps.id AS step_id,
                   max((ps.tier*1000)+ps.sortorder) AS reached
            FROM   gchs_user_process_steps ups,
                   gchs_process_steps ps,
                   gchs_steps s
           WHERE   ups.gchs_process_step_id=ps.id
           AND     ps.gchs_step_id=s.id
           AND     ups.gchs_user_process_id=21680
           GROUP BY s.name,ps.id) a;Nicolas.

  • Wrong colors when printing to HP Colorlaser Jet 4550 PCL 5c

    I just upgraded from Labview 5.1.1 to Labview 6.1 on a Windows 95 Compaq Notebook. All the plot colors in 8 plot XY Graph indicator printed correctly on our network HP Colorlaser Jet 4550 PCL 5c using Labview 5.1.1. When I print the graph in Labview 6.1, sometimes some of the plot colors in the graph are wrong. In fact one of the plot switches color about 2/3 of the way across the X-axis. What is really weird is that the plot colors always print correctly in the legend. The VI prints the graph programically, but I also get the same inconsistent results when I copy the XY Graph to a new VI and use the print window comand in the file menu.
    In my Labview preferences I use standard printing with colors and di
    thering is turn on. The colors are correct when I programically save the front panel to either bmp, jpeg, or png files.
    What causing this strange behavior?

    Greg,
    Thanks for your suggestion; however, it did not solve the problem. I set the line thickest to the maximum. Then I tried with and without dithering. The results were still inconsistent. Sometimes I got the correct colors; othertimes, some plots had the wrong colors. I attached two gif files as examples. The first shows the correct colors. The second shows that the 1st plot is yellow instead of blue. Also the 4th plot is green instead of red for the 1st 80% of the plot. Then it switches to the correct color, red. I have other graphs with different plots with the wrong colors. Notice that the colors in the legend are always correct.
    Attachments:
    Good.gif ‏105 KB
    Bad.gif ‏108 KB

  • Java returns wrong DynamicIP

    I hava a dynamic IP address and the host:
    "somehost.ip.net" returns my dynamic IP.
    If I check it with nslookup or ping, I always see my actual IP.
    I have run this code:
    try {
                               InetAddress addr = InetAddress.getByName("somehost.ip.net");
                               byte[] ipAddr = addr.getAddress();
                               String ipAddrStr = "";
                                  for (int i=0; i<ipAddr.length; i++) {
                                       if (i > 0) {
                                          ipAddrStr += ".";
                                      ipAddrStr += ipAddr&0xFF;
              } catch (UnknownHostException e1) {
                   e1.printStackTrace();
    On my computer it returns the right IP. I have tried to run it on the other one and it returns some other IP, I don't have now.
    I have checked my DynIP account, there is info, that there is my current IP in their database.
    Why on my computer this code returns always right IP. On other computers ping return always right actual IP. But threre is no garanty with the Java-Code on the other computers/servers. What can I do in this situation?
    Thanks in advance.

    I Think the other computer may not be performing a
    DNS lookup. I used your code with a former employer
    domain and it worked on both my laptop and my
    desktop.
    I traced the route to the domain and got back 20
    hops.
    Conversly, when I used the same procedure for my
    registered DynDNS domain name, I never went past my
    home router, which is configured to automatically
    update the DynDNS record when my public IP changes.
    So, in that line of thinking, I think the 'other
    computer' is not getting the address for some reason,
    or has a bogus host entry in the hosts file.
    On another note, thats a nice little for loop you
    have there. You do know about the
    addr.getHostAddress() method dont you?
    It makes life easier.
    JJThanks JJ for your answer. It's much clearly for me now.
    I can use addr.getHostAddress()I have just called it on the server, not at home. It shows wrong IP twice, so there is no HostAddress for the IP I got.
    I know that this server run on Sun. There is the other one, with the same problem. Can you imagine my wounder, all worked fine and then I got error. I just couldn't imagine, what was wrong.
    Sometimes it works, sometime not. Is there a way to get the real IP, if they don't have nslookup etc?

  • Flash Player (Web Export) showing wrong colors

    Cheers!
    Sometimes when I look at my exported galeries I'm not satisfied regarding the colors. Up to today I thought that this is based on my week skills in developing photos.
    But that seems to be wrong! Please helpt me with the following:
    I'm exporting via Web Module using a simple viewer template (which uses the adobe flash player to display images). Now I fire up that little web page in my browser (safari or firefox in my case) and compare what I see with what I see in lightroom (library module). I can notice a very severe difference in the color presentation. Next I start a second browser window and place it beside the one showing the flash player galery exported before. Within that browser window I call the image from the image folder within the exported web page and compare both. Hence! It does not look like the same.
    To illustrate that I shot the following a couple of minutes ago:
    http://minolta.karlos.at/test.png
    On the left you see the lightroom web galery (simple viewer) and on the right the jpeg picture itself. (You can try that by starting the web galery and then click on the photo and launch it with the command "open picture in new window"
    Weird!
    Is that behaviour known and is there any solution to avoid this wrong color display?
    Thanks!
    C.

    Flash is not color managed (although in the latest version you can somehow turn it on I understand) so it will never show the right color ever. That said, if you have a good display but not so good it has a wide gamut, and you calibrate correctly at gamma 2.2, you should see very similar color. The problem on Macs that have not been calibrated is that the default gamma is wrong (even Apple says this) and they have to be calibrated to be right. Normally Safari color manages so the gamma of most images gets automaticaly corrected, but it cannot color manage flash.
    That said, from your screenshot it appears the difference is entirely due to the difference in gamut between your display and sRGB. There is nothing you can do about it but pester Adobe to enable color management for the latest flash versions in the Lightroom flash galleries. Of course nobody that looks at your gallery will actually see the right color anyway as basically nobody calibrates their screen and most people do not even use color managed browsers.

  • ImageIO: scaling and then saving to JPEG yields wrong colors

    Hi,
    when saving a scaled image to JPEG the colors are wrong (not just inverted) when viewing the file in an external viewer (e.g. Windows Image Viewer or The GIMP). Here's the example code:
    public class Main {
         public static void main(String[] args) {
              if (args.length < 2) {
                   System.out.println("Usage: app [input] [output]");
                   return;
              try {
                   BufferedImage image = ImageIO.read (new File(args[0]));
                   AffineTransform xform = new AffineTransform();
                   xform.scale(0.5, 0.5);
                   AffineTransformOp op = new AffineTransformOp (xform, AffineTransformOp.TYPE_BILINEAR);
                   BufferedImage out = op.filter(image,null);
                   ImageIO.write(out, "jpg", new File(args[1]));
    /* The following ImageViewer is a JComponent displaying
    the buffered image - commented out for simplicity */
                   ImageViewer imageViewer = new ImageViewer();
                   imageViewer.setImage (ImageIO.read (new File(args[1])));
                   imageViewer.setVisible (true);
              catch (Exception ex) {
                   ex.printStackTrace();
    Observations:
    * viewing this JPEG in an external viewer displays the colors wrong, blue becomes reddish, skin color becomes brown, blue becomes greenish etc.
    * when I skip the transformation and simply write the input 'image' instead the colors look perfect in an external viewer!
    BufferedImage image = ImageIO.read (new File(args[0]));
    ImageIO.write (image, "jpg", new File(args[1]));
    * when I do the scale transformation but store as PNG instead the image looks perfect in external viewers!
    BufferedImage out = op.filter(image,null);
    ImageIO.write(out, "png", new File(args[1]));
    * viewing the scaled JPEG image with The GIMP produces "more intense" (but still wrong) colors than when viewing with the Windows Image Viewer - I suspect that the JPEG doesn't produce plain RGB values when decompressed (another color space used then sRGB? double instead of int values?)
    * Loading the saved image and display it in a JComponent shows the image fine:
    class ViewComponent extends JComponent
         private Image image;
         protected void paintComponent( Graphics g )
              if ( image != null )
    // image looks okay!
                   g.drawImage( image, 0, 0, this );
         public void setImage( BufferedImage newImage )
              image = newImage;
              if ( image != null )
                   repaint();
    * Note that I've tried several input image formats (PNG, JPEG) and made sure that they were stored as RGB (not CMYK or the like).
    * Someone else already mentioned that the RGB values as read from an JPG image are wrong, but no answer in this thread - might be connected with this problem: http://forum.java.sun.com/thread.jspa?forumID=20&threadID=612542
    * I tried the jdk1.5.0_01 and jdk1.5.0_04 on Windows XP.
    Any suggestions? Is this a bug in the ImageIO jpeg plugin? What am I doing wrong? Better try something like JAI or JIMI? I'd rather not...
    Thanks a lot! Oliver
    p.s. also posted to comp.lang.java.programmers today...

    Try using TYPE_NEAREST_NEIGHBOR
    rather than
    TYPE_BILINEARI was a bit quick with saying that this doesn't work - I had extended my example code which made it fail (see later), but here's a working version first (note: I use the identity transform only for simplicity and to show that it really doesn't matter whether I scale, rotate or shear)):
    // works, but only for TYPE_NEAREST_NEIGHBOR interpolation
    Image image = ImageIO.read (new File(args[0]));
    AffineTransform xform = new AffineTransform();
    AffineTransformOp op = new AffineTransformOp (xform, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
    BufferedImage out = op.filter(image, null);
    ImageIO.write(out, "jpg", new File(args[1]));The problem: we restrict ourselves to nearest neighbor interpolation, which is especially visible when scaling up (or rotate, shear).
    Now when I change the following, it doesn't work anymore, the stored image has type=0 instead of 5 then (which obviously doens't work with external viewers):
    // doesn't work, since an extra alpha value is introduced, even
    // for TYPE_NEAREST_NEIGHBOR
    BufferedImage out = op.filter(image, op.createCompatibleDestImage(image, ColorModel.getRGBdefault()));Intuitively I would say that's exactly what I want, and RGB image with data type int (according to JavaDocs). That it has an alpha channel is a plus - or is it?
    I think this extra alpha value is the root of all evil: JPEG doesn't support alpha, but I guess ImageIO still mixes this alpha value somehow into the JPEG data stream - for ImageIO that's not a problem, the JPEG data is decompressed correctly (even though the alpha values have become meaningless then, haven't checked that), but other JPEG viewers can't manage this ARGB format.
    This also explains why writing to PNG worked, since PNG supports alpha channels.
    And obviously an AffineTransformOp silently changes the image format from RGB to ARGB, but only for TYPE_BILINEAR and TYPE_CUBIC, not for TYPE_NEAREST_NEIGHBOR! Even though I can imagine why this is done like this (it's more efficient to calculate with 32 bit ints than with 24 bit packed values, hence the extra alpha byte...) I would at least expect the JPEG writer to ignore this extra alpha value - at least with the default settings and unless otherwise told with extra parameters! Now my code gets unnecessary complicated.
    So how do I scale an image using bilinear (or even bicubic) interpolation, so that it get's displayed properly with external viewers? I found the following code working:
    // works, but I need an extra buffer and draw operation - UGLY
    // and UNNECESSARILY COMPLICATED (in my view)
    BufferedImage image = ImageIO.read (new File(args[0]));
    AffineTransform xform = new AffineTransform();
    AffineTransformOp op = new AffineTransformOp (xform, AffineTransformOp.TYPE_BILINEAR);
    BufferedImage out = op.filter(image, null);
    // create yet another buffer with the proper RGB pixel structure
    // (no alpha), draw transformed image 'out' into this buffer 'out2'          
    BufferedImage out2 = new BufferedImage (out.getWidth(), out.getHeight(),
                                                             BufferedImage.TYPE_INT_RGB);
    Graphics2D g = out2.createGraphics();
    g.drawRenderedImage(out, null);
    ImageIO.write(out2, "jpg", args[1]);This is already way more complicated than the initial code - left alone that I need to create an extra image buffer, just to get rid of the alpha channel and do an extra drawing.
    I've also tried to supply a BufferedImage as 2nd argument to the filter op to avoid the above:
    ICC_ColorSpace (iccColorSpace = new ICC_ColorSpace (ICC_Profile.getInstance(ColorSpace.CS_sRGB)
    BufferedImage out = op.filter(image, op.createCompatibleDestImage(image, new DirectColorModel (iccColorSpace), 24, 0xff0000, 0x00ff00, 0x0000ff, 0x000000, false, DataBuffer.TYPE_INT)));  But then the filter operation failed ("Unable to transform src image") and I was beaten by the sheer possibilities of color spaces, ICC profiles, so I quickly gave up... and hey, I "just" want to load, scale and save to JPG!
    The last option was getting a JPEG writer and its ImageWriteParam, trying to set the output image type:
    iwparam.setDestinationType(ImageTypeSpecifier.createFromBufferedImageType(BufferedImage.TYPE_INT_RGB));But again I failed, the resulting image type was still type=0 (and not 5). So I gave up, realising that the Java API is still overly complex and "too design-patterned" for simple tasks :(
    If anyone has still a good idea how to get rid of the alpha channel when writing to JPEG in a simple way (apart from creating an extra buffer as above, which works for me now...)... you're very welcome to enlighten me ;)
    Cheers, Oliver
    p.s. Jim, I will assign you the "DukeDollars", since your hint was somewhat correct :)

  • IMac/Snow Leopard choosing wrong color profile?

    Hey guys,
    I am a wedding photographer and I calibrated my iMac twice a month with a Spyder 3 calibrator. I have noticed a few times, that even though I have chosen the color profile I have created with the Spyder 3, sometimes my iMac does NOT have that color profile selected. It seems like it reverts back to the standard iMac color profile at times - with no explanation. Is this a bug, or am I the user doing something to cause this to happen: log out, shutdowns, etc.
    I am really unsure, so if anyone has a solution or explanation for this that would be great! Once I retouched a whole session using the wrong color profile (I didn't know it had changed) and it was a disaster.

    The file that holds which monitor profile is being used may be corrupt. You can remove this file from the Preferences folder of your user account:
    com.apple.systempreferences.plist
    Place it in the trash, or just to the desktop and restart. Or log out and log back in. The OS will create a new preference file.
    This file holds various settings, so you may notice other items in the System Preferences back at their defaults.
    As to your calibration habits, every other week is overkill for LCD monitors. This was the case with CRTs where every other week, or at minimum once a month was normal. CRTs drift from their settings much faster than LCDs. Every other month with an LCD is more than sufficient.

  • Eyedropper in PS CS6 picking wrong color

    My eyedropper started picking the wrong color!  I ahve reset and reinstalled PS - and still have this problem.  No matter what color I click the eyedropper on, it picks a shade darker than what I want.  Anyone have any ideas?  Like I said, I am running PS CS6 on OS Mountain Lion.

    hanci wrote:
    I also have problems with the eyedropper in RGB mode. I have a blue background color and when selecting it with the eyedropper I get #244f69 when I'm in RGB mode. And if I use that color in CSS on a website, the color gets darger than the original color in Photoshop. But if I change to CMYK mode and use the eyedropper again, then i get this code on the same background #00516a. And with that code I get the color I want on the website.
    Adobe Photoshop Version: 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00) x64
    Am I doing something wrong?
    Apart from your Photoshop needing updated to at least 13.0.1, the problem may be that your RGB document, which you're sampling in Photoshop, does not have sRGB profile and/or your Web browser is not colour managed and/or your computer is not using a correctly calibrated monitor profile and/or something else.

  • Report returns wrong data when run on server

    Hi,
    I'm runing CRS XI R2 on Windows Server 2003 SP2.  When I refresh a report in the Crystal Reports XI Designer, I'm getting correct data.  But when I schedule the report to run on the server it returns wrong data.  The data is different from what I see when I refresh it from the designer.  In the report I have running totals set up to count customers that meet a certain criteria.  The report is very large.  It take almost 2 hours to refresh.
    I was wondering what is causing the difference in running total data between refreshing it on the designer and running it on the server.  Is it returning wrong data b/c of it not reading all the records?  Should I be making any changes to the server settings?  I saw that under pageserver, there are options for  setting the 'Minutes Before an Idle Report Job is Closed' and 'Database Records To Read When Previewing Or Refreshing a Report".  Do either of those have anything to do with the report returning incorrect data when being scheduled to run on the server?
    Thanks,
    Kim

    Hi Xuandao,
    You would need to Use Cell Binding and Trigger concept to accomplish this.
    Its simple, however, you would have to work on a trial and error basis to understand this concept as implementing the same is subject to your dashboard and WEBI Design.
    Open you LiveOffice.
    Insert your WEBI, Now, go to Object Properties of your WEBI, select the second tab that says Prompt, Here, it lists the prompts that you have for your WEBI. This would also enlist your BEx variables as well. Select this BEx variable and click on the button that says Prompt at the bottom of this window. Here, select choose Excel Data Range and click on the cell select button on the right (small button that lets you choose what cell you want to bind this prompt to), Now select a free cell that would not be even populated later on when you run the dashboard say A1 (remember the value that you select). Click on OK and again OK. The WEBI Refreshes and you can see all the prompt values at the cell A1. These are all the possible values stored for your BEx prompt variables (these values are fetched from BW system dynamically).
    Now, save this LiveOffice, Go to you dashboard. Connect your dashboard to your Live office. Go to Data-> connections-> Now, select the WEBI and in the right hand pane  go to Usage tab, here, Click on Trigger cell button on the right hand side and select A1 in you LiveOffice.
    It should work fine.
    Let me know.
    Rgds,
    Sreekul Nair

  • HP C3180 All in One Printer is printing the Wrong Colors

    Hello my printer has been working great until recently.  I have new HP black and color print cartridges installed.  I cleaned the print heads with a q-tip and distilled water and the yellow color is peach.  I have also used the printer utlity mutliple times to clean the print heads/drivers and nothing is changing.  Any tips on what I should do?  I'm not sure why it's happening as I've not had this problem before.
    Many thanks,
    Jennifer

    Hi - Did you have the problem before you changed the color cartridge?  If not, I'd recommend returning the color cartridge and getting a new one.  Though it is rare, occasionally a new cartridge can be bad.
    Here is a link to a doc that provides some techniques to prevent this type of issue.
    Hope that helps.
    Say Thanks by clicking the Kudos thumbs up. Please mark the post that solves your problem as an Accepted Solution so other forum users can utilize the solution.
    I am an HP employee.

  • Printing in Lightroom Produces Wrong Colors

    I have searched these forums and found a couple of topics that have to do with incorrect or wrong colors being printed by Lightroom but none of the suggestions proposed seemed to help. So, I think that I have something else going on that is causing me problems.
    The vital statistics: I am using Lightroom 1.4.1 on Vista Home Premium with an HP C7280 All-in-One printer. The pictures I am trying to print are DNGs converted by Lightroom. When printing in Lightroom, I select the option to have the color managed by the printer.
    Basically, any picture that I print from Lightroom looks darker than the original. So, I tried a couple of different tests to try to find out what is going on. I exported a picture to a jpeg and printed that with the Microsoft Office Picture Manager and it printed fine.
    I was curious what would happen if the photo was printed from Photpshop CS3. So, I created a copy of the DNG file from Lightroom and edited it in Photoshop. I printed the picture from Photoshop with the color set to be managed by the printer, and Photoshop also printed the photo with a dark look. I then changed the Color Handling to "Photoshop Manages Color" and the Printer Profile to sRGB, and the picture printed perfectly.
    In addition, I tried printing jpgs from Lightroom, and I got the same dark results. Any suggestions as to what is going on will be very much appreciated. Thank you in advance!
    Michael

    Unfortunately, Lightroom cannot print to this specific printer without tricks. The reason is that HP does not provide color management in the driver (which is why you have to use sRGB in Photoshop - shudder!) and does not provide icc profiles for it. This is HP not providing good drivers for their consumer-oriented printers, and Lightroom expecting at least reasonably modern printer drivers. Photoshop will print to anything by using the working space fall back that really is a hack. Unfortunately, Lightroom does not provide the same hack. In your case, there is a trick you can use, which is to find the "HP color Laserjet RGB" icc profile that HP ships with their laserprinter drivers. It is just an sRGB profile masquerading as a printer profile. If you use that in the profile field in Lightroom, it
    should work.

  • Statvfs returns wrong values

    Hi,
    I am developing a program the will check for disk space (used,blocks, available ...) and i am using the statvfs.h file.
    When tested with small capacity disks (~5G) it works fine (compared to df -k).
    When tested with large capacity disks (~400G) it returns wrong values(compared to df -k).
    I am using f_bavail and i am casting from fsblkcnt_t to integer/long.
    Please help.
    Thanx R.

    Thanks for your answer.
    I have discovered that it (statvfs.h) doe's not work with vxfs, only with ufs.
    I am using Veritas Cluster Server.
    Any chance of an answer ??
    thanks,
    R.

  • JSObject returns wrong date. How can I extract correct date from digital signature?

    I'm trying to extract name and date from digital signatures by using JSObject in Excel VBA, but JSObject returns wrong date. Year, month, hour and minute are correct, but only day is incorrect.
    Here is my code. I'm using Acrobat 8.1.3.
    Please tell me what's wrong with this code and how I can extract correct date from digital signatures.
    Public Sub sbTest()
    Dim oApp As Acrobat.acroApp
    Dim oPDDoc As Acrobat.AcroPDDoc
    Dim jso As Object
    Dim f As Object
    Dim sig As Object
    Dim strFileName As String
    Set oApp = CreateObject("AcroExch.App")
    Set oPDDoc = CreateObject("AcroExch.PDDoc")
    strFileName = "C:\Test.pdf"
    If (oPDDoc.Open(strFileName)) Then
    Set jso = oPDDoc.GetJSObject
    Set f = jso.getField("Signature1.0")
    Set sig = f.signatureInfo()
    Debug.Print sig.Name
    Debug.Print sig.Date
    End If
    Call oPDDoc.Close
    Call oApp.Exit
    End Sub

    Hi
    You can use TDMS file format to save the data. I have attached a reference Vi.
    On button click you can log the data or remove the case structure and continuous log the complete acquisition data.
    Thanks and Regards
    Himanshu Goyal
    Thanks and Regards
    Himanshu Goyal | LabVIEW Engineer- Power System Automation
    Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
    It Only gets BETTER!!!
    Attachments:
    Data Save in File.vi ‏35 KB

  • X1 Fading/flickering to black and white and then returning to color,

    X1 Fading/flickering to black and white and then returning to color, video lags, image moves up and down I have had the X1 for almost 1 year and it is really acting up. It flickers/fades to black and white, the video lags on ocassion, and the image moves u and down constantly. i own a sony trintiron CRTV and it is not the tv because the tv does not do this on other inputs. Anyone know what might the issue?

    Is this an SD TV set? Or does it have HD capability? How is it connected???
    If it is an HDTV and you are using component connections, I suspect you need to verify the X1 box is outputting the correct resolution. Using the Comcast remote press EXIT EXIT EXIT 480. If that works and you know for sure you have an HD capable TV then press EXIT EXIT EXIT 1080

  • SXPG_COMMAND_EXECUTE  return wrong parameter value

    Dear all.
    We have an Abap program that pulls an encrypted FTP file and saves it to our network.
    After that we activate an external command via transaction SM69 by calling FM SXPG_COMMAND_EXECUTE.
    This command is an execution of a batch file that executes a decryption method via PGP decryption software.
    The problem is that we get an output parameter of this FM (STATUS) as u201CEu201D (error) although the decryption is being executed successfully.
    We have the same process being activated same way successfully with another folders (rest is exactly the same).
    Why does SXPG_COMMAND_EXECUTE return wrong status value ?
    Regards,
    Rebeka

    SXPG_COMMAND_EXECUTE runs under certain operating system user account. Looks like that account does not have enough privileges to do what you want it to do. Look at the operating system for privileges (read,write,execute) of the user account SAPServiceuser or equivalent.
    /Simo

Maybe you are looking for

  • Moving iTunes from PC to Mac OSX possible?

    Hi, My friend has bought a new Mac with OSX 10.5 and wants me to move his iTunes from his PC to Mac, now I can get all the music copied over as I have set the network up and can browse to both computers. iTunes is installed on the Mac but empty, what

  • Can i move a sparsebundle onto my bootcamp HD?

    i am in my windows 7 boot camp install and I am trying to move a sparsebundle /off/ a Mac OSX journaled external drive to the Boot Camp drive but I am getting an error that says: could not find this item. this is no longer located in the G:\Data...yo

  • Is it possible to access my lightroom catalog on my iMac from my macbook air ?

    I was just given a yr old macbook air and want to access my lightroom catalog on my I mac ? possible or do I just use the mobile and set up a share folder ? thanks in advance for any info

  • Max number of char in textArea component

    Hi gurus! The thtmlb textArea component does not have the property maxlegth. How can I limit the maximum amount of caracters for this component? Thanks!!!

  • Add new dropdown value in search criteria for Invoices

    Hello, I want to add one more value in Drop-Down box of the search criteria of invoices. As on now there are 2 DropDown boxes in Your Referance No in Transaction No (New) in Order No (This will have search value as "Sales Order No") Can anyone tell h