Monitoring access to the clipboard/PrimarySelection?

// mainly a desktop problem, might also fit in the programming section, don't know, move as needed.
While writing a little password manager for myself, I stumbled about the problem how to properly enter data into forms. I use xclip to fill the clipboard (C-v), but I need a way to do this two (or more) times in a row and it should be fast and automatic.
Say, I'm on a website and need to fill out the usual login and password, then I've got these options to do it.
1. call the script, adding login to clipboard and password to primary selection (or the other way round)
2. call the script, add login to clipboard, wait time X, add password to clipboard
3. call the script multiple times, keeping track of what has been delivered at the last run
Ideally, I'd like to go with option 2), problem being, that whatever I choose for time X may be too short or too long, thus interupting the workflow. So basically I need a way to globally check, when the clipboard's contents are pasted into any application, so the script could react to it.
ie, pseudo-code
get contents
add contents[login] to clipboard
watch clipboard for access
add contents[password] to clipboard
watch clipboard for access (or wait time X in case I don't login for any reason)
overwrite clipboard
I'm using awesome, fvwm and sawfish on my systems, thus it should be a generic way to do it, ideally no hard deps on qt/gtk-stuff or the like and it doesn't need other (graphical) addons like managing multiple clipboard entries. Should work with clipboard, since not every application I use can paste from the primary selection without using the mouse, which I'd like to avoid.
So the question is, is there such a thing floating around I couldn't find, yet? Does it need to be written? Possible at all?

See https://developer.mozilla.org/en/Using_the_Clipboard

Similar Messages

  • How do I enable the clipboard options on my MacBook Pro?

    I need to post information into a discussion thread for class. I copied the information from Pages and I tried to paste the information in the compose section of the discussion board. Every time I try this an error message pops up on my screen...
    Copy, Cut, Paste is disabled in your Mozilla browser. You can use keyboard shortcuts instead or visit http://www.mozilla.org/editor/midasdemo/securityprefs.html for more information on how to grant access to the clipboard. However, when I proceed to this website there isn't anything that's helpful to me. Help!!!!

    ''Samarion22 wrote:''
    You can use keyboard shortcuts instead
    You can press '''Command + V''' on your keyboard to paste.
    * [[Keyboard shortcuts - Perform common Firefox tasks quickly]]
    ''Samarion22 wrote:''
    visit http://www.mozilla.org/editor/midasdemo/securityprefs.html
    If you absolutely need to grant websites access to your clipboard, you can try the following extension.
    * https://addons.mozilla.org/firefox/addon/allowclipboard-helper/

  • Copying to the clipboard is disabled. How can I fix this?

    WHen I am inside any application in Firefox (oe Google Apps, etc.) ANY application, I receive the following message when trying to use Edit, Copy
    Your browser does not allow access to your computer's clipboard.
    Instead, please use Ctrl-C for Copy, Ctrl-X for Cut and
    Ctrl-V for Paste, or use your browser's Edit menu.

    You are probably better off / much safer using copy and paste yourself
    But this is what is referred to
    * Security Policies - MozillaZine Knowledge Base <br>http://kb.mozillazine.org/Security_Policies
    * Granting JavaScript access to the clipboard - MozillaZine Knowledge Base<br> http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard

  • After recording text using the dragon dictation app, it is converted, it can be copied to the iOS system clipboard for use in any app, how does the user access the clipboard to retrive this information if it is no longer on the screen?

    after recording text using the Dragon dictation app, it can be copied to the iOS systme clipboard for use in any app, how does the user access the clipboard to retrive this information if it is no longer on the screen?

    You need to do a long-press in any data entry field, then select Paste.

  • Labview freeze when accessing a custom menu with data on the clipboard

    This one has got me stumped:  When selecting a custom menu item with data on the clipboard the GUI freezes.  Freezes are longer for more data and longer for older versions of Labview.  I wrote the test code, attached, but the example "Menu Selection Demo.vi" shows the same behavior.
    Running Labview 2011 here are some freeze delays for my laptop (a bit slower machine) with various amounts of text data on the clipboard:
    Clipboard size        Delay
    1.3MB                   2.1 sec
    2.6MB                   4.9 sec
    3.8MB                   17.2 sec
    14MB                    253.3 sec
    The delay appears to be non-linear.  A doubling of the clipboard data size more than doubles the delay and a tripling of the clipboard data size produces a delay of almost 10X!  Things are also much, much worse on my ancient version 8.2.1 (over a 40 second freeze for 1.3MB and it goes up from there).
    Note that the freeze also occurs on programs with a custom menu when exiting.  This would seem to suggest it might have something to do with the timeout, but why timeout should vary with clipboard size and not with the value wired to it makes this feel even more like a bug in the custom menu functionality.
    This seems to be related to known issues in Labview 2011 #39604 49UBP4LE (http://www.ni.com/white-paper/13168/en#39604_by_Da​te) that was first reported in version 8.2.1.  This known issue relates to Labview freezing when large amounts of data are copied from Labview to the clipboard.  No fix has been implemented since this was originally reported in 2007.
    This freeze also occurs when shortcuts to menu items (such as Ctrl + L) are used when large amounts of data are on the clip board.
    Thus far this has been 100% repeatable and I have not been able to find a way around it.  I also haven't found anything else similar on the forums or on the web.  It appears to be a GUI freeze with Labview still running in the background, which is also odd.
    My work-arounds at this point are either to not use the clipboard (bad), programatically clear the clipboard several times each second (worse) or remove all custom menu functionality and replace those functions with onscreen controls.  So, for now, I'm removing custom menu items because my users need the clipboard and I can't have massive delays making my data acquisition code look crashed.
    Any ideas would be helpful.  This one has me scratching my head...
    Attachments:
    Menu_Clipboard_Lv2011.vi ‏17 KB

    Well, doing Microsoft Word, Excel and what else on a computer that is used to run an important production test, is a very bad idea. There is no way that you can guarantee, that one of these applications is not causing some interruption to the currently running time critical task. Word and Excel and just about any other computer application can crash, lock up the computer or eat your breakfast while you are doing seemingly harmless things.
    The issue with the clipboard in LabVIEW is indeed a problem that exists for a long time and I hope they fix it sometime, but the fact remains, that you should NEVER use a computer for other tasks while you run a test or other manufacturing related application on it, when a failure of that application can cost you more than a few pennies.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Accessing and using the Clipboard

    It is very seldom that I need to use the Clipboard, so I never can remember how to accesss it on the rare occasions that it is useful.  I FINALLY found it today, but I don't want to have to go through this again, Therefore, I have two qustions:
    (1) Is there a way to put it in FAVORITES? If so, how?
    (2) There is now a link in my Clipboard that I want to send as an E-mail attachment. Unfortunately, I can't copy it. How to I remove/copy something on my Clipboard?

    It is very seldom that I need to use the Clipboard, so I never can remember how to accesss it on the rare occasions that it is useful.  I FINALLY found it today, but I don't want to have to go through this again, Therefore, I have two qustions:
    (1) Is there a way to put it in FAVORITES? If so, how?
    (2) There is now a link in my Clipboard that I want to send as an E-mail attachment. Unfortunately, I can't copy it. How to I remove/copy something on my Clipboard?

  • I keep clicking on save to clipboard on my iPhone 5s, but have no idea how to access the clipboard !!

    Where is the clipboard on iPhone 5s? So aggravated!

    Where are you clicking on "save to clipboard"?

  • Application no longer allowed access to the desktop in Mavericks

    HI I have a particularly irritating problem.  For a while now any application that attempts to access the desktop upon initial startup or to save a file to it will hang requiring a force quit from the finder.  Installations go without a hitch.  This problem only appears when apps either default to the desktop on first run or when they are directed to save a file from them to the desktop.  Drag and drop operations from local folders like documents and downloads or external drives or folders to the desktop have to problem doing so.  I have run repair permissions on my main drive.
    Partial System log showing current app problem.
    Apr  5 00:48:53 Qube xpcproxy[735]: assertion failed: 13F1066: xpcproxy + 3438 [D559FC96-E6B1-363A-B850-C7AC9734F210]: 0x2
    Apr  5 00:48:59 Qube.local launchservicesd[59]: Application App:"System Preferences" asn:0x0-4c04c pid:723 refs=7 @ 0x7fcd315bb440 tried to be brought forward, but isn't in fPermittedFrontApps ( ( "LSApplication:0x0-0x4e04e pid=733 "SecurityAgent"")), so denying. : LASSession.cp #1481 SetFrontApplication() q=LSSession 100005/0x186a5 queue
    Apr  5 00:48:59 Qube.local WindowServer[104]: [cps/setfront] Failed setting the front application to System Preferences, psn 0x0-0x4c04c, securitySessionID=0x186a5, err=-13066
    Apr  5 00:48:59 Qube.local com.apple.preference.security.remoteservice[729]: Error loading /Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio:  dlopen(/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHD Audio, 262): no suitable image found.  Did find:
      /Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: no matching architecture in universal wrapper
    Apr  5 00:48:59 Qube.local com.apple.preference.security.remoteservice[729]: Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0x7fed034ce7e0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (bundle, not loaded)
    Apr  5 00:49:01 Qube.local WindowServer[104]: window 1f5 is already attached to window 1f2
    Apr  5 00:49:03 Qube.local WindowServer[104]: _CGXGetWindowOrderingGroup: Operation on a window 0x1f5 requiring rights 0x5 by caller System Preferences
    Apr  5 00:49:25 Qube.local HandBrake[740]: Invalid color System, labelColor (warning given only once)
    Apr  5 00:49:32 Qube.local HandBrake[740]: find_shared_window: WID 506
    Apr  5 00:49:32 Qube.local HandBrake[740]: CGSOrderWindowListWithGroups: invalid window ID (506)
    Apr  5 00:49:35 Qube.local HandBrake[740]: nsc_smb XPC: handle_event error : < Connection invalid >
    Apr  5 00:50:08 --- last message repeated 1 time ---
    Apr  5 00:50:19 Qube com.apple.launchd.peruser.501[193] (fr.handbrake.HandBrake.402016[740]): Exited: Terminated: 15
    Apr  5 00:50:25 Qube.local spindump[746]: Saved hang report for HandBrake version 0.10.1 x86_64 (2015030800) to /Library/Logs/DiagnosticReports/HandBrake_2015-04-05-005025_Qube.hang
    Apr  5 00:50:35 Qube.local iTunes[701]: BUG in libdispatch client: kevent[EVFILT_WRITE] delete: "No such file or directory" - 0x2
    Apr  5 00:55:57 Qube.local sandboxd[109] ([398]): ntpd(398) deny file-read-data /private/var/run/resolv.conf
    Any Ideas on what to do so I can get functionality back on my system.  Currently I am on a late 2007 iMac extreme edition 2.88gighertz model with 4 gigs of ram.  I am running the latest updates to Mavericks.  Overall its not a problem with programs that I can set or open with no preference to start but there are some programs that default to the desktop upon initial startup.  These are effectively unusable at present.  Thanks in advance for the help.
    RIF

    Repairing disk permissions with Disk Utility only apply to system and apps that are installed using an installer.  To repair/reset Home folder permissions see this post by Linc Davis:
    Linc Davis
    Re: Reset Home Folder Permissions and ACLs not working?
    This helped meRe: Reset Home Folder Permissions and ACLs not working?
    Apr 30, 2014 10:06 PM (in response to plcmms)
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Or you can do it from the Recovery volume as described by machack in this post:
    macjack My Swamp
    Re: Where did my HOME folder go?
    Feb 27, 2012 7:28 PM (in response to Baba)
    1. Restart holding down the Command and R keys.
    2. You’ll be at the Repair Utilities screen. Click the Utilities item in the Menu Bar, then click Terminal.
    3. In the Terminal window, type resetpassword and hit Return.
    4. The password reset utility window launches, but you’re not going to reset the password. Instead, click on icon for your Mac’s hard drive at the top. From the dropdown below it, select the user account where you’re having issues.
    5. At the bottom of the window, you’ll see an area labeled Reset Home Directory Permissions and ACLs. Click the Reset button there.
    The process takes a few minutes. When it’s completed, restart.

  • Your account does not have access to the forums system.

    Greetings, My name is Jeff, I'm from Netwrix Corporation, which is a Microsoft partner. I have a problem with accessing Microsoft TechNet forum. After signing-in to my account: [email protected], I go to TechNet
    forum, and get a message that:  "Your account does not have access to the forums system." And also I've noticed that all my posts were deleted from TechNet forums. Can moderators tell me why did that happen? Why didn't I receive any warning
    about my account suspension? 
    I've already submitted 2 tickets to MSDN Site Feedback Inquiry but didn't receive any answer.
    I've called Microsoft TechNet at 800-344-2121 and Professional
    Support team at 1-800-936-5800.  But everybody send me to the MSDN Site Feedback Inquiry from which I didn't get any answer.
    Anybody can help me with my problem?

    Hi,
    Is this the profile you're referencing?
    http://social.technet.microsoft.com/Profile/netwrix
    It doesn't appear to be banned, but you're definitely right about there being no activity listed.
    I'd suggest contacting the forums team directly by sending an email to fissues (at) microsoft [dot] com. The admins do monitor this forum, so you'll probably get a response here as well.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content)

    I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.

    Another View.
    the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot.

  • "Ease of Access - Make the Mouse Easier to Use" will not turn off Auto-maximize

    I have a dual monitor setup and any window that I drag over to the right hand monitor gets auto-maximized. A red border appears around that monitor when I position a window (any window) in it. The left hand monitor works normally. I can make the window smaller,
    but if I try to move it from the top of the monitor or from the left side then it auto-maximizes.
    This problem does not occur if I log onto my wife's user account, so it must be something in the settings for my account.
    I see many people asking how to turn off the snap feature, and I have checked the "Prevent Windows from being automatically arranged..." box in the "Ease of Access" item in the control panel" - but this does not fix the problem.
    My tale of woe seems a bit different than what I have seen described in various forums.
    Has anyone seen this problem and solved it?

    Hi,
    Here's the way to disable auto-maximize via the registry:
    1.Run Registry Editor (RegEdit).
    2.Navigate to the following registry key:
    HKEY_CURRENT_USER\Control Panel\Desktop\WindowArrangementActive
    3.In the right-pane, double click (or right click and select Modify) on WindowArrangementActive, and set its REG_SZ value to 0 to disable ; 1 to enable.
    4.Close Registry Editor.
    5.Log off and log on again, or restart computer for the change to take effect.
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • How can I migrate data from an old MBA to a new one without having access to the screen of the old one? The screen of the old MBA is damaged !

    How can I migrate data from an old MBA to a new one without having access to the screen of the old one? The screen of the old MBA is damaged !

    If your "older" MBA has a Thunderbolt port then it isn't that old. See Target Disk Mode about how it's used. Note that without a monitor you won't be able to tell from the screen when it has fully started, and if it succeeded in starting in TDM. If it did, then the hard drive should appear on the Desktop of your new computer. You can then access it to transfer your files. You can even use Migration Assistant or any backup utility to transfer data. Just don't try to transfer system files.

  • 10.6.8 upgrade - I want Apple to fix it, not me have to do the work.  I no longer have access to the header menu for the desktop.  No History, no QUIT.  Is Apple aware? Planning a fix for the fix?

    I installed the 10.6.8 upgrade over the weekend and now have no access so the main desktop menu.  I am having to hit power off button to power down.  The links work for one application load after I boot up.  Cannot tell if it is is just Safari or not.  DOes Apple monitor these postings and do additional testing to correct?

    balto,
    You'll have to forgive me but being from an IT background there are certain things you take for granted, such as backups!
    That said when I really needed my Time Machine backup a couple of years ago, it did an epic fail on me.  Ever since I have been backup paranoid.
    I now have approx 6 current backups of data including one offsite.  Call me over cautious but its better to be safe than sorry!!  I now use a combination on Time Machine and Carbon Copy Cloner to produce periodic backups and also bootable clones.  With external drives being so cheap these days there really is no excuse.
    So taking on board your comments and those of others  :-
    i)     Take a backup, either via Time Machine or some other cloning route such as Carbon Copy Cloner.
    ii)     Repeat step i) but to another disk.
    iii)     Download the COMBO OS update - NOT the delta one.  It will take longer but its worth it.
    iv)     Turn off Mac
    v)     Disconnect ALL external peripherals except keyboard/mouse e.g those devices required to boot.
    Vi)     Turn off Mac
    vii)     Boot Mac in Safe mode by press shift key whilst switching on the Mac and leave shift pressed until Apple logo appears.  Mac will take longer to boot but will present user login with red Safe mode tag.  Login.
    viii)     Run a permissions repair from Disk Utility.
    ix)     Run COMBO updater and allow the Mac to reboot.
    x)     Login as normal but immediately run permissions repair again from Disk Utility.
    xi)     Reboot Mac for final time again and all should now be well.
    Think that should just about do it though as with everything be careful and use at your own risk.
    Regards
    NIALL 8-)

  • Internet access to the SolMan

    Hi,
    I want to know if it is possible to reach the SolMan via Internet access?
    We want to give the project members access to the project documentation in the Roadmap.
    Until now I could not find any practical links. But I have heard that´s possible via cFolders.
    Can somebody help, please?
    Thanks a lot.
    Cheers

    Hello,
    If you want to have access to documents which are located on the project documentation tab, one possible work around is to display the document attributes dialog.
    From this dialog, you can generate an URL by using the push button with title Create.
    This will generate a URL and put it in the clipboard. Then you can send this URL to your project members.
    If you want to access the whole project documentation tab, I don't think that there is any functionnality.
    Best regards,
    Thierry

  • I cannot copy off the clipboard. I move the copy icon, get support.mozilla instead

    I can't paste from the clipboard. I move the paste icon to the toolbar and get support.mozilla instead. If I clip on this the paste function is not available

    I have my Time Capsule set up and can access it remotely, however, I cannot copy anything to the TC disk from my desktop. 
    Sorry but do you mean you cannot copy from local LAN to the TC, or from a remote location to the TC.
    What OS is on the computer.. it is a common issue with Mavericks.. where the networking giants have gone back to tin cans and string.
    I recommend a full reset of the TC to factory.
    Change all naming to SMB type.. it is so important now with Mavericks which is SMB by default.
    SMB uses names that are short.. <10characters is great.. keep it less than 20 max.
    No spaces.
    Pure alphanumeric.
    ie when apple setup suggests a name like
    Fred Blog's Airport Time Capsule.. it breaks every rule. It is over long.. has spaces and illegal character.
    So change all names.. eg TCgen4 (replace number with actual Gen if you like.. or just name it TC).
    Call wireless TCwifi (or TC24ghz and TC5ghz if you want separate naming for the bands).
    Then in finder.. use Go, Connect to server.
    Type in
    AFP://TCname  (where TCname is whatever you have now named your TC compliant with the rules above)
    If that fails
    AFP://TCname.local (Mavericks gets domain name issues.. it needs the domain and is local by default.)
    or
    AFP://TCIPaddress. eg AFP://10.0.1.1 which is router address by default.. only use if the ip is static.
    The computer will hopefully discover the resource and now you can type in your password.. public by default.. or whatever you changed it to.
    Now try copying files to the TC.

Maybe you are looking for

  • Please help me create the indexes for this XML

    Hi Mark and others, What is the way to create the correct index for this kind of XML (I posted earlier)? I created the indexes without using those prefixes without any problems but they do not seem to be used during processing. For 300 statutes, it t

  • Using a HDTV LCD for mirroring

    Hello all, I have a 20" imac and have been looking at buying a Samsung LE32R41BDX for a new TV, half the reason for this is so I can mirror the imac and watch DVD's etc. The Samsung has a resolution of 1366x768 with 800:1 contrast and 500cd/m2. it al

  • Easy setup for 1440cbr

    I have footage shot in 1440cbr on a JVC Everio GZ-HD7. Does anyone have an idea of what easy setup preference I should use for this project? Thanks.

  • Error when adding forigen key (table or view does not exist)

    Hi i write the foreign key name and select the the table from the combo and also the field and click apply it gives me error message says :- error table or view does not exist vendor code 942 any help? thanks in advance. .

  • Report based on Material group

    Dear all, Actually our Business wants a report based on the material group and G/L account. For each material group what are the accounting documents generated and the G/L account triggered with amount. Example : mat.grp         G/L account(121001)