Does anyone have an example to share of using a variable in a proc call?

I would like to use a value from a table to call a procedure in ActionScript. Can anyone share an example with me? TIA,
Deb.
(For example
  var proc_name_from_table:String;
   var command_proc:String;
  command_proc="mx.core.FlexGlobals.TopLevelApplication." + proc_name_from_table;
  command;
Or something like that (just to give you an idea where I am heading).
It is for a site map application that gets values from a table and I don't want to write a huge if statement with specific, hard-coded calls.)

You have to use the Call Library Function Node to call Windows API functions. The animatewindow function itself has some pretty simple parameters. You first need to get the window handle. There are a set of Windows API Function Utilities (32-bit) for LabVIEW that you can use. In there there is a VI (Get Window Refnum) that gets the window handle. It's a simple call to a Windows API function. You would call the animatewindow function in the same way. In this case there are 3 parameters: the window handle (returned by a FindWindow API call), a DWORD (32-bit integer) for the duration, and another DWORD for the flags.

Similar Messages

  • Does anyone have an example VI about how to call the animatewindow function in the user32.dll using CLN in Labview?

      I want to call the WinAPI function-animatewindow in user32.dll to produce some special effect when showing or hidding windows, but i don't know how to using this Win API to achieve my purpose?
      Does anyone have an example VI about this application?
      Thanks in advance for your help.

    You have to use the Call Library Function Node to call Windows API functions. The animatewindow function itself has some pretty simple parameters. You first need to get the window handle. There are a set of Windows API Function Utilities (32-bit) for LabVIEW that you can use. In there there is a VI (Get Window Refnum) that gets the window handle. It's a simple call to a Windows API function. You would call the animatewindow function in the same way. In this case there are 3 parameters: the window handle (returned by a FindWindow API call), a DWORD (32-bit integer) for the duration, and another DWORD for the flags.

  • Does anyone have an example code to use mx:ViewStack with my application.

    Does anyone have an example code to use <mx:ViewStack>
    with my application.
    I don't know about how to put value to it and use value in
    it.

    http://livedocs.adobe.com/flex/2/langref/mx/containers/ViewStack.html#includeExamplesSumma ry
    That should be what you're looking for.

  • I'm working in Photoshop CS6 on a Mac and am having trouble when I select a Path it automatically feathers the selection border. I can't seem to find any place to adjust a feather setting. Does anyone have a suggestion? I'm using paths to silhouette an im

    How do I change a default from feathered edge to sharp edge when I select a path?
    I'm working in Photoshop CS6 on a Mac and am having trouble when I select a Path it automatically feathers the selection border. I can't seem to find any place to adjust a feather setting. Does anyone have a suggestion? I'm using paths to silhouette an image on a photograph to use in another document and I need a hard edge on it, not a feathered one.

    In the Paths panel, click the flyout menu (in the top right of the panel) and choose Make Selection (this option will only be available if you have a path selected). Reduce the Feather Radius to 0 (zero) and click OK. This setting will be the default even when clicking the Load Path as Selection button.

  • Does anyone have an example of a c++ TCP/IP client that works with labview TCP?IP server ??

    I have the labview TCP/IP client/server working fine, but now I need to do this were labview is the TCP/IP server and the c++ program is the client. Does anybody have a simple C++ TCP/IP client that works with labview TCP/IP server ????

    Thanks, you were right, we modified the c++ program to include the port # in the IP address and it worked.We also forgot to convert the port #. I included my labview and c++ program.
    Attachments:
    TCP-IP.llb ‏47 KB
    client.exe ‏40 KB

  • Does anyone have a PC that can successfully use an Airport Extreme?

    All PC units can not connect to my AirPort extreme wireless network. All iPods and Macs can connect just fine. Does anyone know what could cause this or heard anything like it?

    jared_e42 wrote:
    I would check the security settings, sometimes older (or poor quality) wireless cards have trouble with security. I would also make sure that the airports have updated software/firmware on them. Usually, the AP Utility will warn you if it doesn't have the most recent on it.
    No warnings, firmware is up to date
    If you remove the password, and they can join & get an IP; then try the various settings to see what doesn't work. WEP usually for PCs sometimes requires the obnoxious 24 character translation passcode.
    I have tried to remove the password and make the wifi completly free to any PC to connect to it, but it's still gives me the same problem.
    I am also assuming that this PC can join OTHER networks, and it isn't a problem with the wifi card being off or broken.
    Correct.

  • I need a fast buffer which is resizable! Does anyone have an Example how to do that?

    If I use shift registers, I have to say how many elements I want.
    I could use an Array and a local variable and resize the Array all the time, but that is somehow not such a good idea.
    Can Anybody help
    Thank You

    As nobody had an answer I tried something out myself (see atached example). It is a dynamically resizable Buffer not using locals. I also used information of the example FIFO_WO_LocalVar2_6i.vi. Thanks!
    Attachments:
    buffer_rs.vi ‏24 KB

  • Does anyone have an example of an InDesign screenshot on retina Mac?

    I would like to know what InDesign looks like on a retina Mac. Unfortunately I do not live anywhere near a retailer who sells Macs.

    You might want to wait until Adobe updates their product.
    Why don't you ask this question on the Adobe forums instead?
    Other factors you need to consider is now Apple is on a annual OS X upgrade cycle and the future of what OS X will look like is certainly in question as 10.7 and 10.8 introduced a LOT of radical changes, features like Save As...Spaces, scroll bars...removed etc. etc.
    OS X is currently in a state of flux, we don't know why they are doing this, assuming it's new hardware coming of a touchscreen nature for consumers, but it's creating problems for the Mac pro segment who need stability.
    You might want to look at a Windows 7 tower with a nice UltraSharp display, Windows 7 will be supported just like it is with no changes until 2020, that's 8 years verses annual third party software upgrades (paid) and no possible hardware driver upgrades for expensive third party equiptment.
    With Apple on a tear to change OS X and hardware, we don't have a clue what's coming, it's been rather unsettling for the pro market all the way from the Final Cut Pro X debacle to graphic designers who can't afford to replace all their software/hardware so frequently to those who have PPC based apps they require or have lots of file in, and the developers decided to bail since Apple is signaling a closed hardware like on iPads with 10.7+'s AppStore (30% cut to Apple) etc.
    Apple doesn't sell new hardware with a older operating system, we get people here all the time wanting to install Snow Leopard on their new machines and they can't, so we send them to a hack to try to run it in a virtual machine in desperation attempt.
    Apple is a consumer products company where they make most of their revenue at and many professional users are reconsidering their options now due to all the rapid  chaos and changes.
    http://arstechnica.com/apple/2012/01/video-pros-apple-needs-to-acknowledge-the-p ro-industry-and-fast/

  • Does anyone have an example of taking a string and encrypting it and vise v

    I want to encrpyt -> save in my database
    then
    get value from database --> and then unencrypt
    Thanks for your time
    Adam

    You could look into a Base64 encoding scheme:
    //////////////////////license & copyright header/////////////////////////
    // Base64 - encode/decode data using the Base64 encoding scheme //
    // Copyright (c) 1998 by Kevin Kelley //
    // This library is free software; you can redistribute it and/or //
    // modify it under the terms of the GNU Lesser General Public //
    // License as published by the Free Software Foundation; either //
    // version 2.1 of the License, or (at your option) any later version. //
    // This library is distributed in the hope that it will be useful, //
    // but WITHOUT ANY WARRANTY; without even the implied warranty of //
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
    // GNU Lesser General Public License for more details. //
    // You should have received a copy of the GNU Lesser General Public //
    // License along with this library; if not, write to the Free Software //
    // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA //
    // 02111-1307, USA, or contact the author: //
    // Kevin Kelley <[email protected]> - 30718 Rd. 28, La Junta, CO, //
    // 81050 USA. //
    ////////////////////end license & copyright header///////////////////////
    import java.io.*; // needed only for main() method.
    * Provides encoding of raw bytes to base64-encoded characters, and
    * decoding of base64 characters to raw bytes.
    * @author Kevin Kelley ([email protected])
    * @version 1.3
    * @date 06 August 1998
    * @modified 14 February 2000
    * @modified 22 September 2000
    public class Base64 {
    * returns an array of base64-encoded characters to represent the
    * passed data array.
    * @param data the array of bytes to encode
    * @return base64-coded character array.
    static public char[] encode(byte[] data)
    char[] out = new char[((data.length + 2) / 3) * 4];
    // 3 bytes encode to 4 chars. Output is always an even
    // multiple of 4 characters.
    for (int i=0, index=0; i<data.length; i+=3, index+=4) {
    boolean quad = false;
    boolean trip = false;
    int val = (0xFF & (int) data);
    val <<= 8;
    if ((i+1) < data.length) {
    val |= (0xFF & (int) data[i+1]);
    trip = true;
    val <<= 8;
    if ((i+2) < data.length) {
    val |= (0xFF & (int) data[i+2]);
    quad = true;
    out[index+3] = alphabet[(quad? (val & 0x3F): 64)];
    val >>= 6;
    out[index+2] = alphabet[(trip? (val & 0x3F): 64)];
    val >>= 6;
    out[index+1] = alphabet[val & 0x3F];
    val >>= 6;
    out[index+0] = alphabet[val & 0x3F];
    return out;
    * Decodes a BASE-64 encoded stream to recover the original
    * data. White space before and after will be trimmed away,
    * but no other manipulation of the input will be performed.
    * As of version 1.2 this method will properly handle input
    * containing junk characters (newlines and the like) rather
    * than throwing an error. It does this by pre-parsing the
    * input and generating from that a count of VALID input
    * characters.
    static public byte[] decode(char[] data)
    // as our input could contain non-BASE64 data (newlines,
    // whitespace of any sort, whatever) we must first adjust
    // our count of USABLE data so that...
    // (a) we don't misallocate the output array, and
    // (b) think that we miscalculated our data length
    // just because of extraneous throw-away junk
    int tempLen = data.length;
    for( int ix=0; ix<data.length; ix++ )
    if( (data[ix] > 255) || codes[ data[ix] ] < 0 )
    --tempLen;  // ignore non-valid chars and padding
    // calculate required length:
    // -- 3 bytes for every 4 valid base64 chars
    // -- plus 2 bytes if there are 3 extra base64 chars,
    // or plus 1 byte if there are 2 extra.
    int len = (tempLen / 4) * 3;
    if ((tempLen % 4) == 3) len += 2;
    if ((tempLen % 4) == 2) len += 1;
    byte[] out = new byte[len];
    int shift = 0; // # of excess bits stored in accum
    int accum = 0; // excess bits
    int index = 0;
    // we now go through the entire array (NOT using the 'tempLen' value)
    for (int ix=0; ix<data.length; ix++)
    int value = (data[ix]>255)? -1: codes[ data[ix] ];
    if ( value >= 0 ) // skip over non-code
    accum <<= 6; // bits shift up by 6 each time thru
    shift += 6; // loop, with new bits being put in
    accum |= value; // at the bottom.
    if ( shift >= 8 ) // whenever there are 8 or more shifted in,
    shift -= 8; // write them out (from the top, leaving any
    out[index++] = // excess at the bottom for next iteration.
    (byte) ((accum >> shift) & 0xff);
    // we will also have skipped processing a padding null byte ('=') here;
    // these are used ONLY for padding to an even length and do not legally
    // occur as encoded data. for this reason we can ignore the fact that
    // no index++ operation occurs in that special case: the out[] array is
    // initialized to all-zero bytes to start with and that works to our
    // advantage in this combination.
    // if there is STILL something wrong we just have to throw up now!
    if( index != out.length)
    throw new Error("Miscalculated data length (wrote " + index + "instead of " + out.length + ")");
    return out;
    // code characters for values 0..63
    static private char[] alphabet =
    "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
    .toCharArray();
    // lookup table for converting base64 characters to value in range 0..63
    static private byte[] codes = new byte[256];
    static {
    for (int i=0; i<256; i++) codes[i] = -1;
    for (int i = 'A'; i <= 'Z'; i++) codes[i] = (byte)( i - 'A');
    for (int i = 'a'; i <= 'z'; i++) codes[i] = (byte)(26 + i - 'a');
    for (int i = '0'; i <= '9'; i++) codes[i] = (byte)(52 + i - '0');
    codes['+'] = 62;
    codes['/'] = 63;
    // remainder (main method and helper functions) is
    // for testing purposes only, feel free to clip it.
    public static void main(String[] args)
    boolean decode = false;
    if (args.length == 0) {
    System.out.println("usage: java Base64 [-d[ecode]] filename");
    System.exit(0);
    for (int i=0; i<args.length; i++) {
    if ("-decode".equalsIgnoreCase(args[i])) decode = true;
    else if ("-d".equalsIgnoreCase(args[i])) decode = true;
    String filename = args[args.length-1];
    File file = new File(filename);
    if (!file.exists()) {
    System.out.println("Error: file '" + filename + "' doesn't exist!");
    System.exit(0);
    if (decode)
    char[] encoded = readChars(file);
    byte[] decoded = decode(encoded);
    writeBytes(file, decoded);
    else
    byte[] decoded = readBytes(file);
    char[] encoded = encode(decoded);
    writeChars(file, encoded);
    private static byte[] readBytes(File file)
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    try
    InputStream fis = new FileInputStream(file);
    InputStream is = new BufferedInputStream(fis);
    int count = 0;
    byte[] buf = new byte[16384];
    while ((count=is.read(buf)) != -1) {
    if (count > 0) baos.write(buf, 0, count);
    is.close();
    catch (Exception e) { e.printStackTrace(); }
    return baos.toByteArray();
    private static char[] readChars(File file)
    CharArrayWriter caw = new CharArrayWriter();
    try
    Reader fr = new FileReader(file);
    Reader in = new BufferedReader(fr);
    int count = 0;
    char[] buf = new char[16384];
    while ((count=in.read(buf)) != -1) {
    if (count > 0) caw.write(buf, 0, count);
    in.close();
    catch (Exception e) { e.printStackTrace(); }
    return caw.toCharArray();
    private static void writeBytes(File file, byte[] data) {
    try {
    OutputStream fos = new FileOutputStream(file);
    OutputStream os = new BufferedOutputStream(fos);
    os.write(data);
    os.close();
    catch (Exception e) { e.printStackTrace(); }
    private static void writeChars(File file, char[] data) {
    try {
    Writer fos = new FileWriter(file);
    Writer os = new BufferedWriter(fos);
    os.write(data);
    os.close();
    catch (Exception e) { e.printStackTrace(); }
    // end of test code.

  • Does anyone have good flow techniques for UI using LCDUI?

    I've been writing J2ME applications for quite some time and I find that designing the ui flow can sometimes be a real headache so I was wondering if anyone had good ideas about controlling the flow when designing a UI using LCDUI.
    Thanks
    Ian

    I see that 288 other interested parties have viewed this posting, but I do not see a response.  I have a short program in basic that we created some years ago that I was about to convert to LabView.  We created the program for both flange taps and pipe taps.  If you were successful in creating a LabView version, I would love to share it.  If not, I will continue working on my version and post it here later.

  • Does anyone have any idea of why itunes uses 50% and Apple mobile device uses anther 50% computer usage ?

    When I plug in my iphone my CPU goes to 100%. 50% itunes and 50% Apple mobile device. when trying to shut down, MD crash report uses 50% CPU

    Since upgrading to iTunes 10.5....which doesn't work correctly yet....Apple Mobile Devices Services is typically running at 50% or greater
    Did you gettting any answers????

  • Anyone have an example of a PCI-6250 Digital and Analog Aquistion with Analog Post-Trigger?

    Hey All,
    We're trying to set up a post trigger data capture of parallel absolute strobed Gurley 17-bit encoder data (ignoring MSB for 16-bit aquisition) with an analog signal that is the output of a torque load cell.  The trick is to use the analog signal level as a post-trigger to stop the data aquisition.
    1) can the analog signal be recorded and used as the trigger?
    2) does anyone have an example using the PCI-6250 (or 6251)
    Thanks in advance for your help,
    -Drewksi 

    Hi Drewski,
    You can use the APFI0 line as an analog trigger for your signal. However, in this case you need to connect your analog signal to both the analog channel you want to acquire at and the APFI0 line.
    Assuming you are using LabVIEW,you can check the "Acq&Graph Voltage-Ext Clk-Analog reference.vi" example. This examples uses an external clock but it works also with the internal clock. All you have to do to change the control to onboard clock.
    You can find this example in LabVIEW Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Measurement >> Voltage
    Best Regards,
    Faris
    Bueller

  • Some of my apps refuse to open. For example, google crome gives me the message that it quit unexpectedly and gives me the option to submit a report to no resolve. Does anyone have suggestions?

    Some of my apps refuse to open. For example, google crome gives me the message that it quit unexpectedly and gives me the option to submit a report to no resolve. Does anyone have suggestions?

    Welcome to the Apple community.
    Does anyone have suggestions?
    Trash the spyware (Chrome) and use Safari.

  • Is there any way of exporting a clip (example 1 hour) into 4 seperate 15 min clips at the same time? Or does anyone have any ideas along the same lines to save time? Add my skype baconhousevidz if you can help or are unsure of what im asking

    Is there any way of exporting a clip (example 1 hour) into 4 seperate 15 min clips at the same time? Or does anyone have any ideas along the same lines to save time? Add my skype baconhousevidz if you can help or are unsure of what im asking
    thanks everyone

    BaconHouseVidz wrote:
    … at the same time…
    in hope to speed things up?
    no, no effect.

  • Fire fox crashes and freezes if i use it too much (kind of a good thing). For example if i use stumble fire fox will start to slow down then freeze completely. Does anyone have a solution or should i just switch to chrome?

    Fire fox crashes and freezes if i use it too much (kind of a good thing). For example if i use stumble fire fox will start to slow down then freeze completely. I am using windows XP pro and a pretty decent computer. All software is up to date and i do no have a virus. I have even tried to disable my add-ons and plug-ins but it did not make a difference. Does anyone have a solution or should i just switch to chrome?

    Please provide a crash id -> https://developer.mozilla.org/en/How_to_get_a_stacktrace_for_a_bug_report
    Do the issues still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode

Maybe you are looking for

  • Mapping Templates

    Hi everybody. I´ve got a doubt about mapping templates. I have 4 mappings that are basiclly the same. Ive created a template and I use it in the 4 mappings. But I find this problems: There are fields that have differents mappings in the 4 mapping so

  • Smartform Decimal value display and column length increase

    Hi, I have following questions for you. 1) I need to display a decimal value in a column of table in smartform. I am able to do so, if the value is 23.38 its coming fine, but if the value is 23.00 it is coming like 23. can i do somethin so that i can

  • How do I disable someone from reading my emails?

    I have thunderbird installed on a PC which is used by multiple users. I have set up the master password for thunderbird, yet one can read the emails from my account without inputting the master password.

  • Error loading operating system after factory reset CQ61 windows 7

    Its a Compaq CQ61-306SA running windows 7. I did a factory reset and after a while got a black screen with ERROR LOADING OPERATING  SYSTEM.It never came with any discs or copy of windows so is there any way of fixing this problem. Please help am gett

  • Order of starting startup classes

    I am using WLS 4.5. Is there a way to tell the server in which order to start the startup classes? I have tried putting them in certain order in the properties file, but that certainly does not do it. Any other tricks?