Close/know if an Openbox menu is opened

Hi all!
I'm tryíng to simulate a start menu from a launcher in tint2-svn. I want it to open right above tint2, either when I click the launcher or when Super_L key is pressed. I also have an "open menu right here" bound to Ctrl+Super_L. This is what I've done:
In rc.xml, I have these lines:
<keybind key="Super_L">
<action name="Execute">
<command>lanzar menu</command>
</action>
</keybind>
<keybind key="C-Super_L">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
"lanzar" is a script that makes all my dirty work. "lanzar menu" just runs
xdotool mousemove 0 $(( `xrandr | grep '*' | cut -dx -f2 | cut -d\ -f1` - `grep panel_size ~/.config/tint2/tint2rc | cut -d\ -f4` )) key Ctrl+Super_L mousemove restore
In my tint2rc,
launcher_item_app = /home/exodoom/.config/tint2/tint2menu.desktop
refers to a .desktop file with
Exec=lanzar menu
Everything works as expected. Shall I press Super_L or click the launcher, the menu opens in the correct position. However, I'd like a second click (or key press) to close the menu, not to open a new one. Is there any way to check if root-menu (or whatever) is opened? If so, is there a way to close it (I mean a more elegant way than xdotool key Escape)?
Thanks in advance.

Yes, i agree with you that the code is much more simpler and cleaner like you suggest. Unfortunately i do not decide the architecture of the application and i need to follow the specification.
Thank you anyway!

Similar Messages

  • Does anyone know how to default Menu navigation to open to specific folder

    Does anyone know how to default Menu navigation to be opened to a specific folder when User first log on to PEOPLSOFT with peopleTool version 8.48 or above?

    There are several notes on Oracle Support with a few options...
    E-Portal: How to Redirect a User To Specific Component Page at Login? [ID 649958.1]
    E-PORTAL: What Methods Are Available To Redirect Users To A Specific Page At Login? [ID 757458.1]
    Regards,
    Bob

  • Obtap - An openbox menu generator like none before. (BETA)

    (When I say none before I mean none that I could find. If I could find one, I wouldn't have to make this then. Anyway..)
    Hey guys, I'm here to present my project 'obtap'. It's inspired by obmenugen, a great menu generator written in D which I've used before obtap. The reason I don't use it anymore is because it wasn't as customizable as I'd of liked it to be and that's why I've made obtap.
    I've developed a small (under <150KiB, only using the C++ standard library which means you don't have to install any dependencies) Openbox menu generator that's grown to do many things:
    obtap can generate pipe menus, static menus, a dynamically updating menu (basically a menu with it's contents a pipe menu).
    obtap can easily add separators for menu layout and edit entries in such ways of renaming/merging categories, setting entry categories, renaming entries and deleting entries.
    obtap has command line options to specify menu type (pipe, static, dynamic), the configuration file and the output.
    The selling point, I'd say at least, is that obtap can (but doesn't have to) load desktop files from directories as entries, which you can then process with the above methods.
    Here's my menu:
    That's created using this configuration file:
    # Jookia's obtap configuration file.
    output(~/.config/openbox/menu.xml)
    type(openboxDynamic)
    locations(/usr/share/applications,/usr/share/applications/kde4)
    extensions(desktop)
    obeyOnlyShowIn(GNOME,KDE,XFCE)
    ignoreCategories(GTK,GNOME,Qt)
    alphabetize(true)
    customEntry(Logout;shutdown-dialog.py)
    customEntry(Reconfigure Openbox;openbox --reconfigure;Utilities)
    customEntry(Nitrogen;nitrogen;Settings)
    replaceCategoryName(AudioVideo;Multimedia)
    replaceCategoryName(Game;Games)
    replaceCategoryName(Graphics;Multimedia)
    replaceCategoryName(Utility;Utilities)
    replaceCategoryName(System;Utilities)
    replaceEntryName(GNU Image Manipulation Program;GIMP)
    deleteEntry(Root Terminal)
    deleteEntry(Open Folder with Thunar)
    menuEntry(separator;Applications)
    menuEntry(categories)
    menuEntry(separator)
    menuEntry(entry;Logout)
    Here's how to get it from the GitHub page.
    git clone git://github.com/Jookia/obtap.git
    cd obtap
    make
    bin/obtap -c goodies/example.conf
    openbox --reconfigure
    That'll create a dynamic example menu and update Openbox.
    To edit it, edit example.conf or copy it to ~/.config/obtap.conf and run obtap without the '-c goodies/example.conf'.
    You can also install it by using the PKGBUILD in the goodies folder.
    I don't have much to say. Uh.. Thanks for reading and if you do use it, I'd love to know.
    Last edited by Jookia (2010-11-07 22:35:46)

    Ok here's for the verbose result, it's pointing to "`/.config/obtap.conf" which is resulting
    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <openbox_menu xmlns="http://openbox.org/3.4/menu">
    <menu id="root-menu" label="" execute=
    "/home/martin/obtap -c /home/martin/.config/obtap.conf -t openboxpipe -o -"
    />
    </openbox_menu>
    It's have an exactly same results like when you first time invoke obtap before install it to your /usr/bin
    Here's the obtap output schema
    <openbox_pipe_menu>
    <separator label="Applications"/>
    <menu id="menu-utilities" label="Utilities">
    <item label="Shutter">
    <action name="Execute">
    <command>shutter</command>
    </action>
    </item>
    <item label="Bulk Rename">
    <action name="Execute">
    <command>/usr/lib/ThunarBulkRename</command>
    </action>
    </item>
    <item label="UNetbootin">
    <action name="Execute">
    <command>su -c /usr/sbin/unetbootin</command>
    </action>
    </item>
    <item label="Cairo Composite Manager">
    <action name="Execute">
    <command>cairo-compmgr</command>
    </action>
    </item>
    <item label="SUSE Studio Imagewriter">
    <action name="Execute">
    <command>imagewriter</command>
    </action>
    </item>
    <item label="Avahi Zeroconf Browser">
    <action name="Execute">
    <command>/usr/bin/avahi-discover</command>
    </action>
    </item>
    <item label="Htop">
    <action name="Execute">
    <command>htop</command>
    </action>
    </item>
    <item label="Terminator">
    <action name="Execute">
    <command>terminator</command>
    </action>
    </item>
    <item label="GSmartControl">
    <action name="Execute">
    <command>"/usr/bin/gsmartcontrol-root"</command>
    </action>
    </item>
    <item label="GParted">
    <action name="Execute">
    <command>gksu /usr/sbin/gparted</command>
    </action>
    </item>
    <item label="gVim">
    <action name="Execute">
    <command>gvim</command>
    </action>
    </item>
    <item label="Thunar File Manager">
    <action name="Execute">
    <command>Thunar</command>
    </action>
    </item>
    <item label="CoverGloobus">
    <action name="Execute">
    <command>covergloobus</command>
    </action>
    </item>
    <item label="Squeeze">
    <action name="Execute">
    <command>squeeze</command>
    </action>
    </item>
    <item label="Disk Utility">
    <action name="Execute">
    <command>palimpsest</command>
    </action>
    </item>
    </menu>
    <menu id="menu-settings" label="Settings">
    <item label="Notifications">
    <action name="Execute">
    <command>xfce4-notifyd-config</command>
    </action>
    </item>
    <item label="Openbox Configuration Manager">
    <action name="Execute">
    <command>obconf</command>
    </action>
    </item>
    <item label="TintWizard">
    <action name="Execute">
    <command>tintwizard</command>
    </action>
    </item>
    <item label="File Manager">
    <action name="Execute">
    <command>thunar-settings</command>
    </action>
    </item>
    <item label="Removable Drives and Media">
    <action name="Execute">
    <command>/usr/lib/xfce4/thunar-volman-settings</command>
    </action>
    </item>
    <item label="Qt Config ">
    <action name="Execute">
    <command>/usr/bin/qtconfig</command>
    </action>
    </item>
    <item label="CoverGloobus Configuration">
    <action name="Execute">
    <command>covergloobus-config</command>
    </action>
    </item>
    <item label="Preferred Applications">
    <action name="Execute">
    <command>libfm-pref-apps</command>
    </action>
    </item>
    <item label="Customize Look and Feel">
    <action name="Execute">
    <command>lxappearance</command>
    </action>
    </item>
    </menu>
    <menu id="menu-network" label="Network">
    <item label="IcedTea Web Start">
    <action name="Execute">
    <command>/usr/bin/javaws</command>
    </action>
    </item>
    <item label="Avahi VNC Server Browser">
    <action name="Execute">
    <command>/usr/bin/bvnc</command>
    </action>
    </item>
    <item label="Firefox - Safe Mode">
    <action name="Execute">
    <command>firefox -safe-mode</command>
    </action>
    </item>
    <item label="Avahi SSH Server Browser">
    <action name="Execute">
    <command>/usr/bin/bssh</command>
    </action>
    </item>
    <item label="Firefox">
    <action name="Execute">
    <command>firefox</command>
    </action>
    </item>
    <item label="Midori">
    <action name="Execute">
    <command>midori</command>
    </action>
    </item>
    <item label="XChat IRC">
    <action name="Execute">
    <command>xchat</command>
    </action>
    </item>
    <item label="Pidgin Internet Messenger">
    <action name="Execute">
    <command>pidgin</command>
    </action>
    </item>
    </menu>
    <menu id="menu-development" label="Development">
    <item label="Qt Designer">
    <action name="Execute">
    <command>/usr/bin/designer</command>
    </action>
    </item>
    <item label="CMake">
    <action name="Execute">
    <command>cmake-gui</command>
    </action>
    </item>
    <item label="Qt Linguist">
    <action name="Execute">
    <command>/usr/bin/linguist</command>
    </action>
    </item>
    <item label="OpenJDK Monitoring &amp; Management Console">
    <action name="Execute">
    <command>/usr/bin/jconsole</command>
    </action>
    </item>
    <item label="Geany">
    <action name="Execute">
    <command>geany</command>
    </action>
    </item>
    <item label="Qt Assistant">
    <action name="Execute">
    <command>/usr/bin/assistant</command>
    </action>
    </item>
    <item label="OpenJDK Policy Tool">
    <action name="Execute">
    <command>/usr/bin/policytool</command>
    </action>
    </item>
    </menu>
    <menu id="menu-multimedia" label="Multimedia">
    <item label="Document Viewer">
    <action name="Execute">
    <command>evince</command>
    </action>
    </item>
    <item label="DeaDBeeF">
    <action name="Execute">
    <command>deadbeef</command>
    </action>
    </item>
    <item label="Mirage">
    <action name="Execute">
    <command>mirage</command>
    </action>
    </item>
    <item label="VLC media player">
    <action name="Execute">
    <command>vlc</command>
    </action>
    </item>
    <item label="GIMP">
    <action name="Execute">
    <command>gimp-2.6</command>
    </action>
    </item>
    </menu>
    <menu id="menu-openbox" label="Openbox">
    <item label="Reconfigure Openbox">
    <action name="Execute">
    <command>openbox --reconfigure</command>
    </action>
    </item>
    </menu>
    <separator/>
    <menu id="menu-openbox" label="Openbox">
    <item label="Reconfigure Openbox">
    <action name="Execute">
    <command>openbox --reconfigure</command>
    </action>
    </item>
    </menu>
    <item label="Logout">
    <action name="Execute">
    <command>shutdown-dialog.py</command>
    </action>
    </item>
    </openbox_pipe_menu>
    I guess the problem is "Htop" is a CLi program and normally when i want to invoke unetbootin / imagewriter, i'm using "gksu <command>" using manual menu.xml configuration.
    Hope it's help

  • I just downloaded the trial of Photoshop.  Every time I try to open it, it comes up with an error message and closes less than 5 seconds into being opened.

    I just downloaded the trial of Photoshop.  Every time I try to open it, it comes up with an error message and closes less than 5 seconds into being opened.  Does anyone know how I can fix this?  I tried rebooting my computer and reinstalling photoshop.  Thank you!

    i7 is quite fast. that's what i am on too. You may need to
    It would be necessary that you have to use "Adobe Creative Suite Cleaner Tool". (see Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 )
    The order varies depending on your individual needs:
    1. Maybe you have to activate/deactivate, so please have a look there:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    2. Sometimes, we know in the meantime, the "opm.db file" is the culprit. In this case you should delete it.
    3. Did you already try "uninstalling and re-installing"? Be careful with (de)installing aso. by (de)installing by your own resources. As much as I regret it and as strange as it may seem I fear it's a challenge for Adobe's Creative Cloud Cleaner Tool. Sometimes - for whatever reasons - CC doesn't "want" to work. In this case you should CC completely delete and reinstall by help of Adobe Creative Cloud Cleaner Tool. (A try to uninstall by own resources is not enough!)
    I quote: Adobe Creative Suite Cleaner Tool helps resolve installation problems for Adobe Creative Cloud and Adobe Creative Suite (CS3-CS6) applications. The tool removes installation records for prerelease installations of Creative Cloud or Creative Suite applications. It does not affect existing installations of previous versions of Creative Cloud or Creative Suite applications.
    Please use: http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html   and follow the prescribed sequence of operations
    4. If necessary and for further questions click through http://helpx.adobe.com/contact.html or http://helpx.adobe.com/de/contact.html or
    Det finns också ett svenskt språkiga chatt. http://helpx.adobe.com/se/contact.html and if "open" please use chat, I had the best experiences. I quote from Adobe's employee Preran: The chat button is activated as soon as there is an agent available to help.

  • Tools Panel Flyout menu automatically opens

    Hi, guys. I'm sorry if this has already been answered (I searched (the forum and the Internet), checked the stickies, and looked through this forum.) I found a solution for Windows but not for Mac.
    I'm using Photoshop CS4 Extended on a 2010 MacBook Pro with Mac OS X 10.6.4 and when I click (left click on mouse or physical click on trackpad) any of the tools on the (left) tool bar the hidden tools/flyout menu automatically opens, then I have to select the tool from the menu or click to close it before continuing my work. However, if I single finger tap (not click), it works as I expect (no flyout menu). Is there a way that I can fix this so that when I click (left click on mouse or physical click on trackpad) on a tool, the tool selects and the flyout menu doesn't open until you hold down the mouse/trackpad physical button. (The way it should be/originally was)
    Ex.
    Now: Click the Lasso tool > lasso menu opens (lasso, polygonal, magnetic) > select lasso > work
    Was/What I'd like: Click the Lasso tool > default lasso becomes selected > begin work
    Thanks in advance for any help, I really appreciate it.

    How is slower dragging an improvement? What do we need to do to not make our workflow slower, or at least as fast as it was 10 years ago? Or are we looking at slower processes for the other tools, too, and will it soon take us a minute to draw a circle?

  • HOWTO: Openbox Menu Icon in PyPanel

    Using Openbox and PyPanel (or similar) and are tired of either having to minimize windows or adjust maximum window size to leave space for right-clicking on the desktop?  Do you have a keyboard shortcut set up to open the menu, but also want to be able to use the mouse to open the menu easier?  I have a solution!
    Create an icon to launch the Openbox application menu on PyPanel.
    This will allow you to click on an icon on PyPanel which opens the OpenBox menu, similar to Gnome's application menu.
    Example:
    Requirements:
    Openbox Window Manager
    PyPanel (dock/panel application)
    xdotool
    obkey - to edit key shortcuts to OpenBox's rc.xml (not required, but used in this howto)
    Recommendations:
    archlinux-artwork
    Procedure:
    1) If you don't already have PyPanel installed, install it now (as root).
    pacman -S pypanel
    2) Launch pypanel in an application launcher, or the terminal (as normal user):
    pypanel &&
    3) Install xdotool (allows for launching keyboard shortcuts via command line) (as root)
    pacman -S xdotool
    4) If you do not have obkey installed, install it with yaourt (recommended) or download the tar.gz and run the python script:
    yaourt -S obkey-git
    OR
    Go to the obkey site or download the .tar.gz by clicking here
    Extract the .tar.gz:
    tar -xvf ./obkey-dev-abf0bb12.tar.gz
    Enter the obkey-dev directory:
    cd ./obkey-dev
    Run obkey and point it to the openbox rc.xml (as normal user!):
    ./obkey ~/.config/openbox/rc.xml
    5) In obkey, find an existing key or create a new key binding by clicking "Insert sibling key" at the top. Note: Ctrl+alt combinations did not seem to work for me to create this menu launcher.
    - If it's an existing key, select it, then click on the action in the bottom right-hand pane.  A window should pop up.  Find and select "ShowMenu"
    - If it's a new key, select it, enter in the key combination you want to use in the key (text) box (for example, C-M for Ctrl+M), then click the green "Insert Action" button at the bottom.  Click on the new "Focus" action.  A window should pop up.  Find and select "ShowMenu"
    In the ShowMenu action, at the top there should be a box for "menu:"  Enter in "root-menu" in this box.
    Now save by clicking the green arrow + hard drive in the top left corner of obkey.  Now you should be able to use that key combination to open the root-menu. If not, try restarting the X Server.
    Example:
    6) This is optional, but if you want a nice Arch icon for your new menu launcher, you can grab mine.  If you want to use your own image, it cannot be .svg, so I converted a .svg icon to .png from the the official Arch Artwork package (archlinux-artwork in the repos).  If you want to just use mine:
    Enter the following commands to get the image and set it up for the next step:
    mkdir ~/.icons/archlinux/icons/
    wget -P ~/.icons/archlinux/icons/ http://img297.imageshack.us/img297/1378/archlinuxiconcrystal128.png
    7) Open up your ~/.pypanelrc with your favorite text editor (e.g. nano or gedit). 
    Scroll down to a line starting with "LAUNCH_LIST"  Most likely it will have a line like this by default:
    ("gimp-2.2", "/usr/share/imlib2/data/images/paper.png")
    Change the line to the following to use xdotool and the key you assigned in step 5, as well as the icon image we just downloaded (Note: make sure to change /home/user to your specific home directory!):
    ("xdotool key ctrl+m", "/home/user/.icons/archlinux/icons/archlinuxiconcrystal128.png")
    Next, locate a line about 15 more down starting with "APPICONS."  Change this value from 0 to 1.
    APPICONS = 1 # Show application icons
    Finally, about 20 lines down, you will see a section for Panel Layout.
    There are 5 sections for the panel:  Desktop, Tasks, Tray, Clock, and Launcher.  They can be assigned, in order of left to right on the panel, with numbers 1-5 and 0 for disabled.  Choose a location you want your Launcher to be and set the value from 1-5.  You can play around with this by setting the values, then restarting pypanel.
    Here is how I have set mine (I disabled Desktop since I only use one desktop/workspace and do not need it to say which one I am on):
    DESKTOP = 0 # Desktop name section
    TASKS = 2 # Task names section
    TRAY = 3 # System tray section
    CLOCK = 4 # Clock section
    LAUNCHER = 1 # Application launcher section
    8) Finally, kill and restart PyPanel and enjoy!
    killall pypanel && pypanel
    9) Tell me how it went, what you think, what I could improve on, etc!
    Last edited by CheesyBeef (2009-03-24 22:22:39)

    Vighi wrote:
    Very nice guide got it working almost straight away :-)
    Had to restart X in order to get key-binding to work though. And I put /home/username/.icons/archlinux/icons/archlinuxiconcrystal128.png instead of ~/ because somehow I got couldn't find logo error when pypanel started.
    BTW sexy pypanel look you have. All the info in your .dotfiles link? will get to it tomorrow I guess. Thanks!
    Thanks very much for using my guide and responding!
    I will fix that ~/ directory problem and say to use the home directory. 
    And yes, that configuration is in my .dotfiles at the moment   You can follow that link or just grab it here: http://dotfiles.org/~CheesyBeef/.pypanelrc
    Thanks again!

  • [SOLVED] Strange Openbox menu behaviour

    Hi,
    so, I've searched the forums in order to find a solution for my problem, but not found anythihg that works for me. So, problem is that my openbox menu won't execute any commands that I add to ~/.config/openbox/menu.xml file. After editing that file, I run
    openbox --reconfigure
    command (no any error messages), but again, it simply won't execute the command that I've written. I have also changed permissions, so that I have read/write access. But, strange is that if I delete menus in menu.xml that I don't need, save those changes, and run reconfigure command, those menus are not any more in openbox menu, just as it should be.
    It seems that only commands that I want to execute will not work. I' ve also installed obmenu and tried editing stuff there, but again the same problem-deleting menus works fine, but executing commands not. It is obviously that problem is not in obmenu, but in menu.xml file or somewhere else, but I don't know
    where.
    So, any ideas? Did someone experienced the same problem and found a solution? All ideas are welcome
    Last edited by brunux (2010-05-09 16:32:54)

    In my menu.xml all the programs are surrounded by <command></command> tags instead of  <execute></execute>tags.
    I've tried with your suggestion, but it doesn't work. For example, running firefox works fine with <command></command> tags, but it is the default
    part of the code, where I didn't change anything.
    <item label="Firefox">
    <action name="Execute">
    <command>firefox</command>
    <startupnotify>
    <enabled>yes</enabled>
    <wmclass>Firefox</wmclass>
    </startupnotify>
    </action>
    </item>

  • In System Prefereneces, when I am in Desktop and Screen Saver, I am unable to remove folders. I can click the "-" and the folder appears to be gone, but when I close and then reopen System Preferences, and open Desktop and Screen Saver, the folder reappea

    In System Prefereneces, when I am in Desktop and Screen Saver, I am unable to remove folders. I can click the "-" and the folder appears to be gone, but when I close and then reopen System Preferences, and open Desktop and Screen Saver, the folder reappears in the list. I have tried deleting preferences "plist" but I am totally unable to remove the folders.

    I've seen one other report like yours, and I think the issue is caused by a bug, but I don't know what triggers it.
    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • How to integrate OpenBox menu with Tint?

    Having tint shorter than screen width is not an option, because it looks terrible.
    Any ideas?

    Could you explain a bit more what it is exactly you're trying to accomplish.  How are you trying to integrate the openbox menu with tint?
    For example: right-clicking free space on tint panel brings up OB menu.
    Current workaround works (tint not stretched to screen width - I'm clicking empty space on sides of tint panel) but I was hoping for more "elegant" solution.
    According to tint manual:
    "3.7 Mouse
    customize mouse action with : none, close, toggle, iconify, shade, toggle_iconify
    mouse_middle = none
    mouse_right = close
    mouse_scroll_up = toggle
    mouse_scroll_down = iconify"
    Why not just use the hotkey to bring up the openbox menu?
    Not being able to do everyday tasks efficiently with a mouse is a big no-no.
    Besides that, combo of OB + Tint + Trayer is great.
    Last edited by mute (2008-10-10 22:42:56)

  • How to know if a UDF form is opened else then using a TRY CATCH ?

    I'm looking for any way to find out if the UDF form is visible
    else then trying to open it in a try catch and if it's not sending a key.  This if very ugly, slow and not really my kind.
    I tried to iterate through all the forms in SBO_Application.Forms but it's not there.  All I see is the main form
    I just need to make sure the UDF form is visible when Inventory form is loaded so I can put a value in one of the UDF
    If there's a better way I'm buying it

    Hi Marc,
    Rather than putting your data in the UDF in the UDF side form, you can add a control to the main form (during the load event of the form) and bind this to the UDF through the DBDataSource that is already available on the main form. This means that you don't need to worry about whether the UDF form is open or not because you can always read or write to your UDF data from the main form.
    Alternatively, the UDF form TypeEx property is always the same as the main form but with a minus sign in front. Therefore, if you know the TypeEx and FormTypeCount of the main form then you can use the GetForm method of the Application object to get the UDF form.
    oForm = _sboApp.Forms.GetForm("-" + oMainForm.TypeEx, oMainForm.TypeCount);
    You'd still need a try/catch around this and if it raises an error then activate the 6913 menu to open the UDF form.
    Kind Regards,
    Owen

  • Everytime I close a tab a new blank tab opens on its own.

    Hi,
    I'm using Firefox 6.0.2 and it's a while that I'm facing this problem. Anytime I click the little X to close the tab (sometimes I have to click it 2-3 times) it closes the tab but a new blank tab opens itself. For example when I start with 1 tab, open 3 tabs from that page so I have 4, I want to go to another site and close everything about my first site. Then Firefox gives me the new site + 4 blank tabs that can't be closed.
    When I open Firefox it works well but after 10-15 minutes or I don't know maybe 1 hour or so this problem appears.
    I did not install any new plugin or extension (maybe updated my existing plugins) .
    It's not a virus,malware or anything. I'm using Avast home edition (Free) and it updates itself every day several times. I also scanned my system with tdsskiller (read on a forum that solves the problem, but it didn't).
    I'm using firefox for years, but this problem is happening only from a week ago.
    Win7 64bit
    Gigabyte M52LT-D3P
    Amd Phenom 955 Black Edition
    Radeon 5570 HD
    2X2GB Ram

    do you have any toolbars or extensions installed in windows control panel > software or in firefox addons-manager > extensions, that might cause this behaviour? try running firefox in [[Safe Mode]] (close all other instances of firefox and open the browser while holding the shift key) and see if the problem is persisiting there to diagnose the issue...
    ''edit: you also have the "Fun Web Products Plugin Stub for 32-bit Windows" plugin installed, that comes bundeled with some toolbars''
    from the system details you've submitted it appears that you are using a out of date version of firefox and a out of date version of the java plugin - both are a severe security issue! there were [https://www.mozilla.org/security/known-vulnerabilities/firefox.html dozens of vulnerabilities fixed] since the release of firefox 6. and java versions before 6 update 31 are vulnerable to drive-by-infections (your pc can get infected with malware by simply visiting a website), which are widely exploited in the wild.
    i'd recommend that you update both programs as soon as possible: visit getfirefox.com &, java.com; and although you already have a working anti-virus software in place, i'd suggest that you run another full scan of your system with the free anti-malware tool from www.malwarebytes.org in addition (tdsskiller was just a scanner for rootkits).

  • Close a notepad window in labview after opening it with system exec

    Is there a way to close a notepad window within Labview after opening the window using the System Exec function?
    Also can Labview send characters to Notepad so they show up in its window?

    You can send a quit message to another window by using one of the VIs in a collection of windows interaction VIs called winutil32 (or something similar), but you will have to know the window name. Try searching for it on this site.
    You could probably also use the windows PostMessage function to send characters to another window, but that would require learning how to work with DLLs in LV, reading up on the function at the MSDN site and implementing it. Another, more simple but less secure, way is to use the windows Keybd_Event function to simulate keyboard clicks. If the notepad window has the focus, it will receive those clicks. Try searching this site or google for things like "Keybd_Event LabVIEW" or "simulate keyboard".
    Try to take over the world!

  • After using Tab Groups earlier today, now anytime I close FF with more than 1 tab open, FF does NOT ask me to confirm before closing

    After using Tab Groups earlier today, now anytime I close FF with more than 1 tab open, FF does NOT ask me to confirm before closing. FF always has asked me to confirm in the past and no settings were changed prior to trying the Tab Groups. Then when I reopen FF all the tabs that I had open are still there. I've tried refreshing FF and clearing history but that didn't work. It's almost as though FF thinks the window and tabs I have open are a tab group and it won't let me get rid of that group. How do I stop the Tab Groups now that I got them? Or is there something else going on? None of this was happening until I played with the Tab Groups this morning. I was curious what it was --- that's going to get me killed one of these days lol.

    Thanks. Somehow the "Show my windows and tabs" box had gotten checked. I know I didn't check that box and the "Warn me when closing multiple tabs" box has always been checked. Like I said, it was all working fine until I tried the tab groups so I'm wondering if maybe that checks the "Show my windows and tabs" box by default?
    Anyway, it's fixed now. Thanks so much!

  • "Running" openbox menu?[SOLVED]

    Is it possible to issue a command to open the root openbox menu(then menu that pops open on desktop right click)?  I want to use that as a button in pypanel...  Thanks for your time in advance.
    Last edited by isolier (2009-01-24 17:56:45)

    I asked myself the same question and found a great application called xdotool. I added it on AUR. One of its usage is to simulate a keypress. Simply add this code somewhere in the <keyboard> section of your rc.xml:
    <keybind key="A-C-q">
    <action name="ShowMenu">
    <menu>root-menu</menu>
    </action>
    </keybind>
    Then, just lauch your menu with:
    # xdotool key ctrl+alt+q
    A launcher in pypanel would look something like this:
    LAUNCH_LIST = [
    ("xdotool key ctrl+alt+q", "/usr/share/pixmaps/openbox.png"),
    Of course, you can change the keyboard shortcut, etc...
    Hope this helps.
    -T
    Last edited by rttommy (2008-01-30 00:23:26)

  • [FIXED] Openbox - menu won't change no matter what i do..grrr..

    Hi, I can't seem to be able to change the openbox menu, whether by manual edit thru menu.xml or using the graphical end obmenu. Restart PC, openbox --reconfigure, openbox --restart, nothing seems to be working.
    _xinitrc_
    http://pastebin.com/tNCQ5MXT
    _menu.xml_
    http://pastebin.com/juhvhCV3
    _My current ugly not working openbox menu_
    http://i.imgur.com/xiIuLK6.png
    thanks guys.
    Last edited by MrPotato (2014-01-06 13:41:28)

    Ha-ha! What do you know it worked. Dude you're awesome, thanks! If you don't mind I'm asking, what went wrong the first time?
    Last edited by MrPotato (2014-01-06 13:40:44)

Maybe you are looking for