Screen bell on active window

I am trying to get screen to trigger the bell action on the active screen window. It currently works for only inactive screen windows. Is this even possible?
.screenrc
setenv LC_CTYPE en_US.UTF-8
defutf8 on
startup_message off
bell_msg "^G"
hardstatus alwayslastline
hardstatus string '%{= 9g}[ %{G}%H %{= 9g}][%= %{= 9w}%?%-Lw%?%{= 9R}(%{W}%n*%f %t%?(%u)%?%{= 9R})%{= 9w}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{= C}[ %Y-%m-%d %c ]%{W}'
# Default screens
screen -t rss
screen -t irssi
If this isn't possible with screen, is tmux or any other terminal multiplexer capable of such?

Hi it's not that elegant but you can usethe following code i wrote:
it uses ClearClipboard software and it's basicly an automated printscreen
int BmpID,Available=0,Width,Height,RowB,PixDepth,Error,Status;
int *ColorTable=NULL;
unsigned char *Bits=NULL; unsigned char *Mask=NULL;
LaunchExecutable ("c:\\Program Files\\ClearClipboard\\ClearClipboard.exe");
Delay(1);
keybd_event(VK_SNAPSHOT,0xd4, 0, 0);
keybd_event(VK_SNAPSHOT,0xd4, KEYEVENTF_KEYUP, 0);
ProcessSystemEvents();
ClipboardGetBitmap (&BmpID, &Available);
AllocBitmapData (BmpID, &ColorTable, &Bits, &Mask);
GetBitmapData (BmpID, &RowB, &PixDepth, &Width, &Height,ColorTable, Bits, Mask);
SaveBitmapToJPEGFile (BmpID, strFull, 0, 100);
DiscardBitmap(BmpID);
free(Bits);
free(Mask);
free(ColorTable);
Hope it helps....
Kobi Kalif
Software Engineer

Similar Messages

  • Screen capture of active window in LabWindows at run time

    Hi NI,
    We at KPIT are building an application which gathers data from an ECU over RS-232. We have completed our UIR file and tested basic send recieve. We would like to automate the test report generation. For this, we need to capture the GUI window (containing graphs, text boxes etc.) after the end of the test. Currently we are doing this manually using the standard Alt+PrintScreen fucntionality provided by Windows. Is there a way in LabWindows to capture the GUI form/screen/tab automatically through an API call ?
    Regards,
    -Ashish

    Hi it's not that elegant but you can usethe following code i wrote:
    it uses ClearClipboard software and it's basicly an automated printscreen
    int BmpID,Available=0,Width,Height,RowB,PixDepth,Error,Status;
    int *ColorTable=NULL;
    unsigned char *Bits=NULL; unsigned char *Mask=NULL;
    LaunchExecutable ("c:\\Program Files\\ClearClipboard\\ClearClipboard.exe");
    Delay(1);
    keybd_event(VK_SNAPSHOT,0xd4, 0, 0);
    keybd_event(VK_SNAPSHOT,0xd4, KEYEVENTF_KEYUP, 0);
    ProcessSystemEvents();
    ClipboardGetBitmap (&BmpID, &Available);
    AllocBitmapData (BmpID, &ColorTable, &Bits, &Mask);
    GetBitmapData (BmpID, &RowB, &PixDepth, &Width, &Height,ColorTable, Bits, Mask);
    SaveBitmapToJPEGFile (BmpID, strFull, 0, 100);
    DiscardBitmap(BmpID);
    free(Bits);
    free(Mask);
    free(ColorTable);
    Hope it helps....
    Kobi Kalif
    Software Engineer

  • Microsoft Word consistently becomes active window when clicking between dual screens and programs

    13" MBP
    2.3 ghz i5
    8GB Ram
    Running 10.9.2
    Microsoft Word 2011
    Dual screens with amazon Mini Display to VGA adapter
    When I am running word between an external monitor and my MBP, Microsoft word always interrupts any clicks between programs and between screens to become the active window. This is especially annoying when I am trying to navigate between MacMail and Chrome, or any other programs.
    The problem doesn't exist when I click between programs on the MBP, but only when I select windows between the two screens. Or programs on the external monitor.
    Word is up to date, as is my MBP.
    Please don't punt me to Microsoft, they're the worst!
    Thanks!

    There is a workaround for this problem, which was posted by Highestwater on the Microsoft Community thread for this bug and worked for me as well:
    Go to
    System Preferences > Mission Control >
    and UN-check the box labeled "Displays have separate Spaces" (see image below)
    The original poster on this thread may already be aware of this workaround, because he/she mentioned that the "separate Spaces" option is checked. But if you can live without the extra Mavericks dual display features (like going full screen in 1 display only, switching spaces independently on each display, and having a menu bar on each display), then uncheck this option and the "stealing focus" bug seems to disappear. For me the bug is so annoying that it's worth it to lose the extra features. Just yesterday I closed a Word document I was working on by mistake because I clicked on a Finder window on my other display and immediately pressed command-w to close it, without realizing that the focus had switched to my word document which closed instead. It was saved, but this sort of stuff interrupted my work enough to be both an annoyance and a time drain.

  • I tried to open a bookmark and it opened in an active window as a frame, not a separate tab or window. What's going on?

    I've been having problems with Firefox hanging (seems related to Flash on a particular website). Through hours of troubleshooting yesterday, including on the phone with my ISP's help desk, it was recommended I "refresh" Firefox. I've done that before, and I did it yesterday again. This morning I opened Firefox to my home page (my ISP's portal), checked my email, logged out of email, closed that tab, opened two other forums and Photobucket--three tabs open in the window--to post photos and contribute to discussions in both forums. When done, I logged out of both forums and Photobucket, closed each tab separately, then quit Firefox. (While in Photobucket, Flash crashed several times....but that's not unusual with Photobucket in my experience. It's a different problem I am still dealing with....but forget it right now....) As part of yesterday's "refresh", I set Firefox to empty the cache and cookies and other files upon quitting.
    Later in the day today, I opened Firefox, my ISP's portal opened as usual and expected (my "Home page"). Sometimes, rather than close that window/tab, I just open a bookmark and it opens in that same window, but replacing the previous window and its contents. That is normal operating procedure for me. You know, rather than having two windows open where I'll have to close the first one, I just have the bookmark open in place of the original window/contents.
    Today (and it's happened before today, but only infrequently), the bookmarked page opened as if it was a frame in the active window....that is, my ISP's portal occupies about 3/4 of the window, but over on the left side of the window (not another tab or window, but in the very same window) is a slender partial view of the bookmarked page. This new web page--totally unrelated to the original page--has a scroll bar at the bottom, but can't be made to fill the window....the previously opened web page acts as a barrier to seeing the "new" frame/web page. While I can grab the right border of this "new frame" and drag it to the right, it still can't push the "old" original web page out of the way....the old page reaches some minimum limit and I get a split screen view of two entirely different web sites contained in exactly the same active window.
    The "new" frame has an "x" in the upper right corner, so I could close it.....but my question is, why did it open in a completely different company's web page/window....how can two web pages from completely different organizations/companies/websites occupy the same active window in Firefox? I have screenshots.....attached. And, oh yes, besides the HOW and WHY of it, how can it be prevented (or is the best thing to just right click and open it in a new tab or window.....??????) That still doesn't satisfy me....I'm someone who needs to know WHY something happened that should not have happened. It makes me crazy when something strange happens and the "solution" is to change MY behavior. (You know, like if YOU were the problem, but I have to change MY behavior instead of fix what's wrong with YOU.....when fixing YOU might render the entire situation obsolete.)
    Thanks for whatever you can suss out.....

    You do not have the properties in the Bookmarks Manager (Library), but you should have it if you right-click a bookmark the Bookmarks Toolbar or in the bookmarks sidebar.
    On Mac you probably do not have it if you right-click an item in the Bookmarks menu (this menu is under control of the Mac OS), but I assume that this should work if you click the "Show your bookmarks" button on the Navigation Toolbar that is next to the star to bookmark the current tab and right-click an item in the bookmarks list that opens.

  • My itunes in pc fails to secure link with itunes store it shows the process bar it automatically quits the process it also does not shows any on the screen. i am using windows xp service pack 3. what shoul i do?

    my itunes in pc fails to secure link with itunes store it shows the process bar it automatically quits the process it also does not shows any on the screen. i am using windows xp service pack 3. what shoul i do?
    Diagnostics test
    Microsoft Windows XP Professional Service Pack 3 (Build 2600)
    ECS G31T-M7
    iTunes 10.5.2.11
    QuickTime 7.6.9
    FairPlay 1.13.37
    Apple Application Support 2.1.6
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 4.0.0.97
    Apple Mobile Device Driver 1.57.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.5.502
    Gracenote MusicID 1.9.5.115
    Gracenote Submit 1.9.5.143
    Gracenote DSP 1.9.5.45
    iTunes Serial Number 0012ABAC07F3CCB0
    Current user is an administrator.
    The current local date and time is 2011-12-31 14:06:21.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is not supported. (16005)
    Video Display Information
    Intel(R) G33/G31 Express Chipset Family
    **** External Plug-ins Information ****
    No external plug-ins installed.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:        {7599FAD1-1BB9-4AC6-80AF-404253DC519E}
    Description:            Atheros L2 Fast Ethernet 10/100 Base-T Controller - Packet Scheduler Miniport
    IP Address:             192.168.1.5
    Subnet Mask:          255.255.255.0
    Default Gateway:    192.168.1.1
    DHCP Enabled:      Yes
    DHCP Server:         192.168.1.1
    Lease Obtained:     Sat Dec 31 13:46:09 2011
    Lease Expires:       Tue Jan 03 13:46:09 2012
    DNS Servers:         192.168.1.1
    Active Connection: LAN Connection
    Connected:             Yes
    Online:                    Yes
    Using Modem:        No
    Using LAN:             Yes
    Using Proxy:           No
    SSL 3.0 Support:     Enabled
    TLS 1.0 Support:     Enabled
    Firewall Information
    Windows Firewall is on.
    iTunes is enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was unsuccessful.
    The network connection timed out.
    Connection attempt to firmware update server was unsuccessful.
    The network connection timed out.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2011-12-31 14:00:02.
    **** Device Connectivity Tests ****
    iPodService 10.5.2.11 is currently running.
    iTunesHelper 10.5.2.11 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27C8.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27C9.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27CA.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27CB.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB2 Enhanced Host Controller - 27CC.  Device is working properly.
    No FireWire (IEEE 1394) Host Controller found.
    Connected Device Information:
    rawkiss’s iPhone, iPhone 3G running firmware version 4.0
    Serial Number:       86931UEAY7H
    **** Device Sync Tests ****
    Sync tests completed successfully.

    I have found a fix after doing additional research through this forum. Tech Note #328730 addresses this problem and it works for Photoshop Album 3.2 even though it was written for release 1.0.
    Here is a link that will take you directly to the Tech Note:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=328730
    When using this fix the Tech Note indicates:
    "Imported image data and tags are lost when you re-create the My Catalog.psa file, so you need to reimport images and reapply any tags"
    however it did retain the captions (at least it did for me).

  • How do I stop iTunes from starting up in the other active Windows sessions?

    I have multiple (3) user accounts on a windows (Vista) computer. When I start iTunes from one account iTunes wants to also start up on each of the active windows accounts and continues to attempt to start iTunes after some time period (90 seconds?).
    I get a error screen on the attempts for the User that should not be starting iTunes that reads:
    You cannot open the application "iTunes" because another user has it open.
    Ask the other user to quit the application, then try again.
    I want iTunes to run within only one account. How do I stop iTunes from starting up in the other active accounts?

    Connect iPhone - iTunes will launch
    select iPhone in iTunes' left column
    in iTunes' main window untick "Automatically sync ..."

  • How can I get Expose to show only and all active windows, regardless of app

    Sometimes I have two applications running with several finder windows hidden on the dock. I'd like to know how I can (or if I can) get Expose to show only the Active windows - not the ones on the dock. With this new upgrade, it seems that all open windows that are on the dock appear in a row at the bottom of the screen, which takes up real estate - can I turn that function off so just the open, undocked windows of all apps show?

    Sounds like you opened a message in a new window. Have you tried closing that window and see what happens?
    If that is not it maybe you can post a screen shot of what you are seeing.

  • IMac 27 Late 2009 with Random black screen at startup of Windows 7!

    Hi, I'll try to explain the my random black screen issue as best I can.
    I have a boot camp partition with Windows 7 x64 Ultimate installed.
    I used the USB method to install, all goes well and Windows 7 gets installed, I update drivers, install boot camp etc. all is good, right!
    My problem is that everything seems to be in working order, but the built in LED screen will only get lit/active in 1 out of 5 times at startup of Windows, eg. the built in screen stays black/off (black screen issue), like the install issue on iMac 27 I7 w/ATI 4850.
    NOTE! When booting OS X the built in LED screen gets lit/active on every startup.
    So what I did was connect a second LCD monitor via Display port to DVI, this monitor/screen has no issues, it gets lit/active on every startup of Windows, even if the built in screen/monitor stays black/off (black screen issue).
    NOTE! I have tested both the latest drivers from Apple (10.4 19/MAR/2010, found on the USB install method) and AMD ATI Catalyst Driver (10.8 25/AUG/2010). The issue remains on both Apple released drivers and AMD ATI released drives.
    1. So to me it seems like there are some detection/communication issues between the built in monitor and the video card on Windows 7, as there is no issue detecting and activating a monitor connected to the display port.
    Are we missing a monitor driver in Windows that OS X has, or is this a hardware issue that Apple knows about and compensates for in OS X with on load firmware, driver or a kernel fix?
    2. Does anyone else have this issue on their 27" iMac Late 2009 I7, ATI HD 4850 machine?
    If yes, did you manage to solve it?
    Thanks for any help on this issue.
    Cheers,
    Kevin

    Hi, I've seem to have found out the source of the problem.
    The issue is related to heat, and an iMac 27" gets hot pretty fast.
    If I boot the iMac straight after first start into Windows 7 I seem to get a lit built-in display at all times. I can also boot OS X first and then into Windows 7 and the built-in screen get lit every time as long as the iMac isn't hot.
    Strange thing is that the monitor connected to the display port gets lit every time. So I can only assume that the heat only interfere with output to the built-in LED screen.
    So this iMac is going to an Apple premium reseller for service, and I'll tell you guys how it went.

  • Urgent!! How to capture the active windows

    I want to write a program to capture the active windows in the Windows desktop. Can anyone help me. I know to use class "Robot" to capture the screen, but how to determine the position of the active windows in the desktop.
    Thanks...

    This code could work to capture the desktop screen:
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    Image imgs;
    try{
         Robot r = new Robot();
    Rectangle rect = new Rectangle(0,0,d.width,d.height);
    imgs = r.createScreenCapture(rect);
    }catch(AWTException awe) {
    System.out.println("robot excepton occurred");
    Try this!!!

  • Why does Spaces automatically switch away from my active window?

    I'm having the weirdest problem. As of a few days ago, whenever I use an app in full screen mode, this thing happens: after about ten or twenty seconds, the app will switch away from my active window, and show the desktop. What's also weird about it is that there's no switch away from the app - in the menu bar (which was previously hidden, because I was in full screen mode), it'll show that whatever program I was using (ie, Chrome), not Finder. Again, to be clear: the window is switched out of view, and I can see my desktop, but the app I was using is still active.
    This problem only happens in full screen mode, and seems to be happening across the board with all the apps I regularly use (iCal, Word, Chrome, Excel, to name a few).
    Thanks for the help.

    This just started for me today and I have no idea what's causing it.  I almost always have a full-screen Chrome space running and it worked fine for me for as long as I've had this machine, but suddenly for no reason it wants to do this autoswitch thing.  It is incredibly frustrating even if it is a simple swipe to get the screen to go back across it makes watching a video or reading a page nigh impossible.  Is there a solution for this at all or even a workaround?

  • Activity window isn`t working

    HEY
    I have tried to download videos from Youtube, Putlocker and Facebook, trough the activity window,
    but every time, i try to download the relevant video, it opens up in a new tab with only the video and
    isn´t downloading it, like it usually do in the downloading window.
    This really bugs me, because all the sites Youtube, putlocker (except for facebook) i tried before
    and at that time it worked. I really hope you can help me!
    (Mac OS X version 10.7.3)

    Hi..
    Might be corrupted preferences (.pllist)
    Quit Safari.
    Open the Finder. From the Finder menu bar top of your screen click Go > Go to Folder
    Type this exactly as you see it here:
    ~/Library/Safari
    Click Go
    Move the Downloads.plist file from the Safari folder to the Trash.
    Relaunch Safari to test.

  • Safari not displaying active window

    Safari has stopped displaying any active windows. Safari is open and the menu says windows are open but I cannot see them. When I open a new window it seem to flick off to the right of the screen like there is a second monitor. All I see is the normal desktop. I cannot see any safari window.
    Please help with possible causes and fixes

    Thank you to all that responded. I seem to have fixed the problem by merging screens in the displays utility. I do appear to have two screens/displays set up, the other is Sony tv monitor. This was a leftover from when I experimented with Twonky, not a huge success.
    I am using osx 10.8 latest update and will be looking for a way to delete this other monitor set up when I get home later today.

  • Lasso tool problem, using alt key, no click within 5sec causes loss of active window focus

    I have been using Photoshop since ver. 4 and have never seen this happen.  The only difference is now I'm on Windows 7 64bit.  Did not have this problem with XP.  Current version CS3 Extended.
    Problem: While using Lasso tool with the alt key if I do not make a mouse click in 5 seconds Photoshop's active window loses focus for a split second and then the first point of my selection and the last point will connect.  Thus, wasting my time and my attempt at a selection.
    I have task bar buttons to "Never combine".  I see for that split second what appears to be another program button opening but it is so fast that I cannot see if there is a name on the task bar button.  The current Photoshop button moves to the right and back too fast.  This all happens very quickly as the window loses focus.
    I first thought it was some another program but after many searches found nothing I can identify as the cause.
    Right before posting this I had a thought and did a test that concluded in the 5 sec rule. For over a minute I held down the alt key and made a mouse click within the 5 second window of time and there was no loss of window focus.  While still holding down the alt key in this same test but not making a mouse click within 5 seconds the window lost focus and the tool stopped with my selection.
    I have a wireless Logitech M305 mouse that this morning updated the driver to its current version 5.20.51, Control Center version: 6.20.50.
    I have not tested a wired mouse, yet.
    Any help would be appreciated.  Anyone else seen this?  Windows 7 64 bit the culprit?????
    Message was edited by: golfnut333

    UPDATE
    After I removed Photoshop from Norton 360's Administrative Settings_Silent Mode Settings_User-Specified Programs, I did not have the problem with the lasso tool that I first had with loss of window focus.  I then put Photoshop back in the 360's settings and the lasso tool still worked, BUT...............
    After a couple of days of not using Photoshop and turning computer on and off in that time, I tried Photoshop again and the same problem, it came back.  Loss of focus after 5 seconds of not clicking mouse.  So, once again I open Norton and took Photoshop out of the User-Specified Programs and the problem went away, no loss of focus.
    So, I will see if after a couple of days of turning on and off the computer and NOT putting Photoshop in the Norton's User-Specified Programs setting if the problem stays fixed.
    I don't have to have Photoshop in the Norton's setting I just thought that it would be a good idea so Norton didn't try to do any background processes or whatever while I was working in Photoshop or I was rendering a filter or something.
    Another thought I also have the Full Screen Detection setting ON.  I do use Photoshop in Full Screen mode so maybe when having both the Full Screen mode and User-Specified Programs setting selected it makes something go wacky.
    Hope this helps anyone having the same problem I "did".  Will post back after a few days to let you know if focus problem is gone.
    If it does relieve the problem then I will leave Photoshop off the list in Norton.  No sense in trying to fix something that really doesn't matter, really.
    UPDATE 2
    January 8, 2011, I tried the lasso tool again and it still appears to be working. I did my standard test of holding the alt key and clicking to make selections then not click for 5 seconds or more and I did not lose window focus.  I do not know why the Norton 360 setting triggers the loss of focus but since I turned that setting off I'm not having any problem.
    Will update again if something changes.
    Anyone else out there with the same problem that was solved using this method?
    Message was edited by: golfnut333

  • Active window dimensions???

    All of my images open way too small in the Photoshop active work window.  (CS6)  Is there a way to reduce the overall size of the active window?

    You're not really making sense, I'm afraid. Whjat are the actual pixel dimensions of the images? What DPI settings? What zoom level? What screen? What system?You need to provide more info and possibly screenshots...
    Mylenium

  • Active Window/Airplay as external monitor

    When I activate Airplay to my AppleTV (as a extended monitor), the active window remains on my laptop.  It should toss the active window up to the AppleTV screen, since that is my active workspace.  IOW, I want it to behave as if I plugged in a physical monitor.
    Thank you for your attention.
    (And excuse my pidgen terminology.)

    Only windows that were last on that display. For instance, if I have a Quicktime video open on the AirPlay display then close the quicktime window, the next time that videos opens with the AirPlay display connected it will open on the AirPlay display (it's last open position). Additionally, if you have a window that was on an external or AirPlay display when that display was disconnected, when you reconnect the AirPlay display the window will return to its previous position.
    What I think you are encountering is an intended behaviour in 10.9, where windows try and restore to their last commanded position, and, in your case, one (or more) or the windows was last placed on the AirPlay display, so it moves there when you connect the AirPlay display.

Maybe you are looking for

  • Page number problem  in xml report

    hi all, I have created one xml report  for purchase order I want to print the page number and po number for each page , to achieve this i have inserted at header section the page number as "1" but it is displaying for only 1 and 3rd and 5th pages and

  • Unable to Install Adobe Reader 8.1.2

    I downloaded the Adobe reader 8.1.2 and when I try to Install or Remove the program it comes up with an error that the application is on a network that cannot be found. I then do a search for the .msi file and even this cannot be found. When I try to

  • Margin 0 auto is not working in IE

    This has got to be something super simple, but I'm missing something. My div will not center in IE.  I've broken it down to as basic as I can get it, but still no centering. http://gtworkspace.com/junk/newIndex.html

  • SAP PI calling the webservice generated through BRF+

    Hi All, The scenario is SAP ECC(IDoc) --> PI --> SAP MII . The data coming from ECC in the IDoc will be in a third party format, but we want MII to receive data in SAP format. For this we have decided to use BRF. I want to know that how can I use the

  • Why doesn't the PS CC font preview show font families any more? Now i have to scroll through 4,400 fonts every time!

    why doesn't the PS CC font preview show font families any more? Now i have to scroll through 4,400 fonts every time!