Programmatically resize desktop

I have an anoying problem. My graphincs card is $#!£. Everythime I restart my work laptop I have to reset the screen resolution settings.
Does anyone know:
1) How to Set the display resolution of Windows  thriugh LabVIEW?
2) How to select the output device (Monitor, laptop, Laptop & monitor)?
3) How to detect the output device?
I need a better machine, I can't have one, so I need to create a VI to make my life easier.
Cheers
James

Hi James W,
Thank you for contacting National Instruments. Regarding your query, I think you're going to need to look at the Windows API for most of the details on how to do what you want to do. So far, I have found the following details:
1. There is a registry Key that stores the screen resolution, it is located here
HKEY_CURRENT_CONFIG>>System>>CurrentControlSet>>Control>>Video and then drill down from here (I think the large hex value changes between machines).
I can't recommend changing your registry without first backing everything up. You can use the registry VIs within LabVIEW to make this change. 
2. I am not sure, I think you will probably need to call some part of the Windows API. I would recommend having a look at MSDN to track this one down. 
3. Again, I am not sure. Once you have found the corresponding DLL/Registry Key, you will be able to call them and access them through LabVIEW.
I hope this helps,
Many thanks,
Message Edited by Andrew McL on 04-19-2010 05:06 AM
Andrew McLennan
Applications Engineer
National Instruments

Similar Messages

  • Programmatically Resizing 'Decimate Array'

    I am using Labview 6i. Is it possible to programmatically resize the
    'Decimate Array' function? I've got a bunch of data to display in a graph
    and want no more than say 1000 points displayed. I want to only look at
    every other point if I have more than 1000 points and every third point if I
    have more than 2000 points, etc... Is there an easy way to accomplish this?
    Thanks,
    Peter

    You an find a vi in the palette Analyze/Signal processing/timedomain.
    This one does what you want and is called ! decimate array.vi! The function you seem to recall is called decimate 1D array.
    An easier way to find this particular one is to use FIND in the palette. Click on the magnifier glass and type dec and you find both the function and the vi.
    greetings from the Netherlands

  • Not sure how to resize desktop?

    My wife was using my macbook pro (10.7.4) and somehow resized the desktop display.  By that I mean even though I have the 15" display it behaves like it has a 17" display.  To access the dock I need to move the cursor down, to access the menu bar (if I can see the dock) I need to move the cursor up.  Let me be crystal clear - the dock and menu bar are not hiding, it's as though the dimensions of the display have changed.  Same effect occurs going right/left on the display.  I reckon she somehow did some magic combo of finger moves on the touch pad that zoomed the display, but I can't figure out how to undo it.  I've tried every obvious knob in settings, tried the tricks I know for resizing windows via finger movements on the touchpad. 

    And you tried system preferences > displays ? There is an option there that lets you resize the desktop.

  • Resize desktop picture

    when I paste a picture on my desktop, I cannot resize it. How do I do that?

    Control key + left mouse button click anywhere on the desktop.
    Select "Show View Options".
    -- kaz-k

  • Trackpad resizing desktop icons

    I have a quirk with the trackpad and resizing the Desktop icons. (I have installed the December 08 firmware updates.)
    If I put two fingers on the trackpad, and swirl one finger, then the Desktop icons will get big or get small.
    I wonder if others have this same problem, and if so then whether they have discovered a solution? Is it just an oddity that I experience?

    kizkij wrote:
    I have a quirk with the trackpad and resizing the Desktop icons. (I have installed the December 08 firmware updates.)
    If I put two fingers on the trackpad, and swirl one finger, then the Desktop icons will get big or get small.
    I wonder if others have this same problem, and if so then whether they have discovered a solution? Is it just an oddity that I experience?
    Are you sure you didn't hit the control key when you did that since if you hit ctrl+two finger scroll, it'll zoom the whole desktop.
    deltatux

  • How to programmatically resize vi for different screen resolutions ?

    Hi,
         I have been struggling with this,How can i built a vi that should run for different screen resolutions (on different pc's).
    There are several threads on forum , But i dont find the exact solution for it.
    I have already tried with VI properties in the VI but i dont think its working.
    Can someone please help me ?
    Thanks and regards,
    Shivkant Paswan

    Yup it is a pain to use panes, but that is the easiest method I've found which meets my requirements.  Learn to use panes and splitters effectively, and then learn their limitations and workaround when you find those limitations.  In general LabVIEW should handle multi-resolutions, and resizing better but these are the tools we have today.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Programmatically resizing Front Panel does not repaint

    I am trying to extend the width of a front panel at run time when a user hits a button. The problem is
    that the contents of the newly exposed front panel section are not redrawn. I have to either drag
    another window over that section or minimize-maximize it to get it to repaint.
    My issue is how can I get the front panel to refresh/repaint, or if that is not possible what other
    ways are there to do resizing. I have tried changing the "Window Bounds" and "Panel Bounds" properties of
    the VI (not at the same time) as well as using LVWUtil32 (Windows API Function Utilities (32-bit) for
    LabVIEW). Each of these methods results in the same problem.
    Thanks for the help!
    Naveen

    HI Naveen,
    It seems to me that you are having Problem with your Graphics Hardware, rather than labview. Generally the window should be repainted by system.
    If you go to Display Properties -> Settings -> Advanced -> Troubleshooting or Graphic Acceleration - You may see the slider to full Acceleration. Under this setting the OS basically relegates most graphic duties to Graphic Hardware.
    What you may want to do is to Move the slider a couple of notches back. And then try your VI's. Infact try all the settings on your Slider. See if it works at No Acceleration.
    The Problem for me is I do not Have this Problem and cannot even simulate it to try a solution.
    Another Solution is this -
    There is a vi Property Class called "Front Panel" Which can be access
    ed from Vi Server. Under this Class you will see a Property "Defer Front Panel Update" Generally this Property is used to Prevent a redraw. But if this Property is set to False, Labview immediately redraws the Panel.
    What you may want to do is after resizing to let you program go through this Property Node set to False and See if this Helps.
    By The way, the way you have to wire this Property is to Open a Vi Ref, Wire it to Property Node, Select Property as "Front Panel". Right Click on "Front Panel" and Click on Create-> Property -> Defer Front Panel Update. Wire the Referneces of the these Objects, with the output of "Front Panel" going to "Defer FP Update".
    I hope your ver of Labview has these Properties. I am Using 6.1
    I hope you can take it from there!!
    Please advise How you solved the Problem. Good Luck!!
    Mache
    Another Solution which you can try is this
    Good Luck!
    Mache

  • Lost the ability to resize desktop pictures

    I have just recently used onyx to do my general maintenance cleaning. After I restarted my computer I went into system pref. to change my desktop picture and found that I no longer have the option to choose Fill Screen, Stretch to Fill Screen, Center or change the background color. The box where these options normally used to be is now gone and there is only a blank space, as if it was never there. Any help would be greatly appreciated.
    MacBook Pro 2.33 GHZ   Mac OS X (10.4.9)  

    HI Patric and Welcome to Apple Discussions.
    If you hadn't posted this question I wouldn't have known my Sys Prefs/Desktop Pictures options have also disappeared. All it shows is the name of the photo and the size. Patric, you indicated that you are running 10.4.9 but did you by chance update to the 10.4.10 yet? That could be the glitch.
    In the meantime I hope someone else has some suggestions....
    Carolyn

  • JFrame flicker on programmatic resize.

    Here is the code:
    package ui.components;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    public class Test {
        public Test()
            final JFrame frame = new JFrame();
            frame.setBounds(100, 100, 300, 300);
            frame.setBackground(Color.blue);
            JPanel panel = new JPanel(new BorderLayout());
            JPanel up = new JPanel(new BorderLayout());
            up.setPreferredSize(new Dimension(100, 100));
            up.setBackground(Color.blue);
            JButton button = new JButton("add size/shrink size");
            button.addActionListener(
                new ActionListener() {
                    boolean addf = true;
                    public void actionPerformed(ActionEvent e)
                        if (addf) {
                            frame.setSize(
                                frame.getWidth(),
                                frame.getHeight() + 50
                        } else {
                            frame.setSize(
                                frame.getWidth(),
                                frame.getHeight() - 50
                        addf = !addf;
            up.add(button, BorderLayout.CENTER);
            JPanel bp = new JPanel();
            bp.setBackground(Color.red);
            bp.setPreferredSize(new Dimension(100, 200));
            panel.add(up, BorderLayout.CENTER);
            panel.add(bp, BorderLayout.SOUTH);
            frame.setContentPane(panel);
            SwingUtilities.invokeLater(
                new Runnable() {
                    public void run()
                        frame.setVisible(true);
        public static void main(String[] args)
            new Test();
    }Why the frame flickers when the button is pressed ?
    I see that JFrame is filled with it's background color.
    I know that "sun.awt.noerasebackground" property can be changed to fix that, but I don't want to change any global settings as the effect applies only to one frame.
    Thank you.

    Research "Double Buffering". This will not be a one liner but it will solve your problem.

  • Resize a control (i.e. String Control)

    LV5.0
    NT 4.0
    Hello,
    I would just like to know if there is a way to:
    1) programmatically resize a control inside my VI program.
    2) get the width & height of my VI panel.
    Right now, im making my panel run into full screen size (size of desktop)
    whenever it starts up, which in turns I want my one control to adjust also
    it's position and size.
    You don't have to answer both question so if you only know one, I would
    greatly appreciate it.
    TIA
    John

    Click here for Free Video!!
    http://www.gohip.com/freevideo/
    John Cruz wrote in message
    news:[email protected]..
    > LV5.0
    > NT 4.0
    >
    > Hello,
    >
    > I would just like to know if there is a way to:
    >
    > 1) programmatically resize a control inside my VI program.
    You have the answered youreself
    >
    > 2) get the width & height of my VI panel.
    Use vi refference and and Property node, select Fron Panel Window>Panel
    Bounds
    >
    > Right now, im making my panel run into full screen size (size of desktop)
    > whenever it starts up, which in turns I want my one control to adjust also
    > it's position and size.
    >
    > You don't have to answer both question so if you only know one, I would
    > greatly appreciate i
    t.
    >
    > TIA
    > John
    >
    >
    >
    Esben

  • Macbook Pro Resize icons

    i read this on a article that i can resize my icons by using gestures. How can i do so because right now it isn't working..is their something i can enable. I already know about the finder/view/show view options and i hate resizing icons that way. Please tell me how i can resize my desktop icons with basic gestures.
    Change Icon Size
    If you are on a Macbook Pro, you can use the mousepad gestures (pinch/expand) to change the icon size on the desktop, in a folder or virtuall anywhere.

    You cannot resize Desktop icons individually. You can change the size of icons on the Desktop and in individual Finder windows either using COMMAND-J or using gestures.

  • Resizing RichMedia Annotation

    We embedded a flash application in a PDF document using the new flash embedding tool available in Acrobat 9. We also have some JavaScript in the document to programmatically resize the RichMedia annotation when reader opens the document. But it seems the AnnotRichMedia.rect property is read only although it says R/W in the Spec. The following code is what we tried to resize the annotation:
    annot = getAnnotRichMedia(0, "RMTest");
    annot.rect[0] += 50;

    How do I quit getting emails from this forum. My issue is resolved
    Date: Tue, 30 Mar 2010 10:36:04 -0600
    From: [email protected]
    To: [email protected]
    Subject: Re: Flex4 compiled Flash content doesn't run in Adobe Reader
    Alexander,
    Linux AR9.3.1 uses flashplayer 9 and so is unable to cope with SWFs
    produced by FLEX4 which is aimed at flashplayer 10. So what you're
    seeing is a simple incompatibility and for the time being you'll have
    to stick with FLEX3.
    James
    >

  • Panel Resize - how to tell when mouse released?

    I need to programmatically resize all my controls when the panel is resized.  I can't use the automatic option, as I have some specific things to do, e.g. some controls stay at fixed size, others resize.
    I've used an event structure and am doing the resizing on the "Panel Resize" event.  The problem is that this takes a little time, mainly as one of the controls is an Adobe Reader ActiveX control, which takes a little time to rescale and redraw.
    The result is that the VI seems to queue up the events as the panel is resized - if you grab the corner of the window and move it around, the VI then sits and ploughs through all the events that were created as it was resized.
    What I'm really after is an event that fires after the panel has been resized and the mouse has been released.  Is there a way of achieving this?
    Thanks

    There's no event for this, but you can filter your events, for example, like this:
    There are other variations on this (setting a flag, using a case structure in the original event case, etc.).
    Try to take over the world!
    Attachments:
    Example_BD.png ‏2 KB

  • How to I maintain a meter's scale position when resizing the meter?

    I'd like to be able to programmatically resize a meter and have its scale's size and position be predicitable. This is not the case. I've attached a VI that illustrates the problem.
    I thought that keeping the meter's aspect ration of 4:3 would suffice, as in my attached example, but even that doesn't help.
    Attachments:
    meter_resizing_problem.vi ‏19 KB

    I don't know the solution yet but this is what i found.
    wiring the scale position will make it even worse. see attachment.
    Scale bounds will change after every run, but you aren't able to make it write so it has no use.
    The amount of distortion is a bit variable to the amount of samples the for loop creates.
    The scale bound is random after each run.
    I guess this a buf of labview, but  I don't know for sure
    UnCertified LabVIEW Student
    Mistakes are for learning, that's why suggestions are always welcome!
    Attachments:
    1.PNG ‏55 KB
    Position.PNG ‏65 KB
    many.PNG ‏59 KB

  • Dv2630ea connected to tv , screen open tv shows 720p hd , closed it shows 1080i hd

    i dont really know the difference between 720p hd and 1080i hd however the 1080i hd is a lot smaller on my tv screen with a black border around it.
    is there anyway to get it to full screen on my telly?

    OK...That looks like a case of image scaling issue...
    On Nvidia Graphic card that can be custom by going to Nvidia Control Panel - > Video & Television - > Resize HDTV Desktop.
    Under 'When the desktop is displayed on my HDTV' select 'Resize HDTV Desktop' and click Resize Desktop. Check below Screenshot...
    Now on click Resize Desktop you will get below screen... Now move the slider on right and bottom of nvidia logo up-down or left-right till the 4 corner arrows line up to the screen edge...
    Note: above screenshot from latest nvidia driver. May change on older one...
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

Maybe you are looking for

  • Problem mapping USB external drive connected to Airport Extreme on my PC

    I am having a problem mapping my USB external drive in my PC running WIndows Vista.   Here is what I have so far: USB External Drive connected to my AirPort Extreme which is connected to my Century Link modem/router. I have installed the USB drive us

  • Mac equivalent to Microsoft OneNote?

    I had no idea what forum to post, but here is my question... Anyone know of a Mac equivalent to MS Office OneNote? Taken from the Microsoft OneNote website... "In its simplest form, OneNote is an electronic version of a paper notebook where you can w

  • Oracle 11g and APEX version

    Hi, My understanding was that APEX 4.0 comes by default with Oracle 11g... recently we've got the oracle 10g upgraded to 11g and our admin has mentioned that APEX verision is showing APEX 3.2.1... Please advice... Thanks

  • Adobe Form attaching it to Standard transaction

    Hi Experts, I've developed a Adobe Form & Interface for Purchase Order Now I want to attach it to the purchase order Transaction ME22 for print preview & then for print.How to attain this, & where to  attch my program? Thanks in advance. Your efforts

  • VERY NOISY i-MAC

    My mid 2010 imac's fans are very noisy and I have had them fixed by Apple approx 5 times! It is happening again and I am trying to get to the route of the problem myself, and so have downloaded a fan control software. In the software you can control