Send key sequence to specific window in awesome

I need send key sequence to foobar2000 running on wine.
I think it could be done by focusing foobar window somehow, pasing to it key sequence "ctrl+c" or other, and then focus back to previous window
Can i do this in awesome? How? Any reference is appreciated.
I have dual monitor setup. It would be, nice, that by sending key sequence, i wouldn't  need to switch to workspace where foobar runs. If it is
impossible then no big deal, just need to go back to previous focused window.
ps: I can't live without foobar2000. I need this to be able set songs rating. I have foo_runcmd wich allows me to send most of commands trout cmd, but i wasn't able to change songs tag with it.

You could try xdotool:
http://www.archlinux.org/packages/commu … 6/xdotool/
http://www.semicomplete.com/projects/xdotool/

Similar Messages

  • Send key sequence through socket.

    Hi!
    I have programmed an application which makes a socket-connection to a telnet-server. All this have went good. The problem I'm having is sending keysequences. Let's say that I want to perform a "Ctrl-c"... how do I do this?

    You may have to listen for keyPressed method calls (KeyListener), not just keyTyped, to watch for the control key being pressed. If you see the control key pressed, begin your translation into control characters or special key sequences. Then when keyReleased says the control key has been released, stop your translation.
    e.g. I believe the CTRL plus the keypad Minus key do not send an intelligent keyPressed event. So you'll have to watch for the combination yourself, then send the codes you want to represent that down the stream.

  • What is the key Combination to send CTRL-BREAK Key sequence on MacBook Pro

    I need to send a CTRL-BREAK key sequence to a router via console terminal. what is the key Combination to send CTRL-BREAK Key sequence on MacBook Pro
    I can't seem to find any documentation on how to send a CTRL-BREAK sequence
    TIA

    In the Terminal application, select the 'Help > Terminal Help' menu item. In the help window that opens, click on the link 'Shortcuts for Terminal.' Scroll down to the line beginning 'Send break.'

  • Hyper-V on Windows 8.1 64 bit, "Could not send keys to the virtual machine"

    Hi,
    I newly installed Windows 8.1 (not an upgrade, fresh install from corporate network) on a Dell Precision T7600 workstation and enabled the Hyper-V feature with the matching management. I created a couple of 2 GB RAM, 2 virtual CPUs VMs and am trying to install
    Windows Server 2k8R2 and 2k12 on them. After a network boot, during the first couple dialog boxes for Windows setup, I am unable to use the keyboard. When I try to boot from an ISO, the VM get stuck on a black screen "Starting Windows". In either
    case if I use the VM connection window menu to paste from clipboard or send ctrl+alt+del, I get the error:
    Virtual Machine Connection
    Could not send keys to the virtual machine.
    Interacting with the virtual machine's keyboard device failed.
    I search online for this error and did not find others experiencing it.
    I tried to shutdown and reset both VMs, I stopped and restarted the Hyper-V service. Neither helped. I am not sure what other step I can take at this point.
    Also, I configured a virtual switch as external network on one of the two Intel network adapters. Both connect to a gigabit switch. "Allow management operating system to share this network adapter" is checked. Both VMs are on the same virtual switch.
    Senior Soft. Dev. Eng. | Microsoft IT | Microsoft Corporation

    Hi,
    Can you find any information in event log about this issue?
    Based on my research, it seems that the Dll file related to Hyper-v was corrupted.
    I suggest you try using the following command to repair your system.
    1.Open an elevated command prompt: press Win+X, then click Command Prompt(Admin),and press Enter.
    2.At the command prompt, type the following command, and then press ENTER:
    Dism /Online /Cleanup-Image /RestoreHealth
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Finder Window - command 1, 2, 3 or 4 key sequences don't work

    Help with this one would be greatly apprecieated. In a finder window, command 1, 2, 3 or 4 key sequences don't work. In fact, command 2 sleeps the computer instead of displaying the icons in List View
    Please help

    Got it!
    It's not Command-1 but Command-Alt-1, etc.
    Did it change recently? I don't know...

  • Key Sequence To Return To Login Window Without User Logging Out

    Anyone know the key sequence to return to the login window without requiring the user to log out?
    I know this is possible from the menu bar when you have fast-user switching enabled, but I'm trying to get rid of that menu bar icon but I'm looking for an alternative.

    Create a script in Script Editor with the following:
    do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend"

  • Sending Keys through VM Console incorrect Ascii mapping (openSUSE)?

    Hi All,
    I'm using a Hyper-V environment, and using Powershell to send keys via the console to the SUSE VM for setup
    scripting. This all works fine with CentOS, Debian, Fedora and Ubuntu.
    However, with SUSE 13 when I sent keys from powershell using the following commands:
    $VMConsole = Connect-VMConsole
    $KB = $VMConsole.VSMKB
    $KB.TypeText("root")
    It does not work. On further investigation I found that using TypeKey or TypeText it sends the keystrokes using
    standard ascii table as found at:http://www.bluesock.org/~willg/dev/ascii.html
    However, SUSE interprets using a different ascii table, found at: http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
    I can provide this by sending:
    $KB.TypeKey(0x6B)
    This produces the character + on the console.
    Whereas, it should produce the character: k
    This only seems to happen on OpenSUSE (at least it doesn’t happen on CentOS, Ubuntu, Debian or Fedora).
    Have you got any ideas? I’ve tried resetting the keyboard to US layout on the SUSE VM, and I’ve also tried
    using loadkeys us.
    Cheers
    Will

    Hi Will,
    Sorry that mistake .
    You are using deploylinuxVM powershell , right?
    In its fuctions I found this class " Msvm_Keyboard " , it has methods "
    TypeText "  and  " TypeKey "
    TypeText method of the Msvm_Keyboard class
    "Simulates a series of typed ASCII characters. This routine may not be used to simulate the input of non-ASCII characters."
    Parameters
    asciiText [in]
    Type: string
    The series of ASCII text characters to type.
    TypeKey method of the Msvm_Keyboard class
    “Simulates a press-release key sequence."
    Parameters
    keyCode [in]
    Type: uint32
    The virtual key code of the key to press. For the list for virtual-key codes, see
    Virtual-Key Codes.
    As you mentioned :
    "$KB.TypeKey(0x6B)
    This produces the character + on the console."
    It seems Method Typekey invoked the Virtual-Key Codes
    not Ascii .
    Hope this helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • My left shift key on Macbook Pro Retina (15") is behaving like the F11 key (show/hide open windows).  The key behaves the same for the laptop keyboard and for an external Apple keyboard?  This just started in last week after 6 months of use

    My left shift key on Macbook Pro Retina (15") is behaving like the F11 key (show/hide open windows). 
    The left shift key behaves the same on the laptop keyboard and on an external Apple keyboard. 
    This just started in last week after 6 months of use.  The right shift key and other keys on the keyboard all appear to work correctly.
    Suggestions greatly appreciated.

    I have a solution to this issue now after a discussion with Apple Support.  Some where in the last few weeks, there was a change in the key that would do a Show Desktop under the Mission Control settings in the System Preferences.  Even though the key sequence that was shown for the Show Desktop setting did not include the Left SHift key, by changing this first to having no key sequence and applying that and then changing it back to the F11 key, the Left SHift key issue that I was having has cleared up.
    A second issue that was uncovered was that the SSD had some issues (uncovered when I ran Disk Utility using the Repair Disk key).  I had to restart and use the Disk Utility through the Command R sequence to get to the stand alone Disk Utility.  The SSD appears to be running better as a result as well.
    Hope that this is of use to someone else in the future.

  • Bpc 7.5 - not sending data on a specific application

    Hi I use SAP BPC 7.5 SP7 patch 1 with Microsoft Sql Server 2008.
    I moved my AppSet from a server 32bit to a server 64bit.
    On 32bit server everything works fine.
    On 64bit server (64bit configurations written in BPC installation guide applied + no error in Server Manager > DIagnostic): I can't send data on a specific application I have.
    On 64bit server: I precessed all dimensions and all applications and then I even optimize. Nothing change.
    I have to applications: A and B.
    On Application A I can send data correctly.
    On application B in my Input schedules when I send data: everything seems to work fine but afer data refresh on my sheet the value disappear and nothing is written into FactWB table. No error displayed.
    Those input scheules are the same I have and working on 32 bit server.
    No errors into Windows event viewer so... what can I check or do more? How can I fix it?
    Edited by: Francesco Andolfi on Feb 10, 2012 7:56 PM

    Hi Francesco,
    have you tried modify application on B?
    have tried if you can send data through a new simple input schedule?
    Kind regards
    Roberto
    Edited by: Roberto Vidotti on Feb 10, 2012 8:35 PM

  • Lion Terminal Application key sequence "cntl-shift-E-c-." doesn't work???

    This key sequence "control shift E c ." terminates my Linux console application session which used to control a second Linux session
    If I am unable to enter it, I must end the terminal window to end the console session
    The sequence worked on Snow Leopard by default, but does not work on the Lion Terminal Appication
    I get a "beep" when entering the E
    Anyone solved this problem?
    Thanks,
    ...Jim

    Thanks for your insights
    Although I haven't tried it yet, I think the "Return-Tilda-Period" sequence will drop my ssh connection
    made to my desktop linux system (where I was running the console command) and end the console command
    I really wanted to preserve the terminal log files on the MacBookPro
    I went to the Los Gatos Apple Store Genius bar this morning with 2 MacBookPros (Lion and Snow Leopard)
    After a lot of experimentation, DJ was able to discover that control prefaced commands are insensitive
    to case on Lion. They are always upper case.  So am able to terminate the console command run
    from an ssh session on my desktop linux workstation using Terminal from the the MacBookPro (Lion)
    using the sequence cntl-e-. which is passed through
    Control C will not work, this sequence cntl-Ec puts the input into a mode where around 20 commands
    can be passed to the console application.  These commands include buffer playback form the console
    input-output log, bumping a user who had attached before you, disconnect, and some others
    Background:
    The linux "console" application attaches the caller to the serial console port of a connected linux system
    The sequence with the shift key I use on a lot of terminal emulatiors (Windows putty, other linux terminal
    simulators, the "Termainal" app on Snow Leopard all accepted this command sequence (cntl-shift-E-c-.)
    and passed it to the application that was connected.  Now I am able to disconnect from Lion without killing
    the MacBookPro Terminal session

  • Interrupt Key Sequence? Is there one?

    Hey everyone... a quick question.
    Sometimes I'll forget to leave the 'abort' button in the menu bar and then I write a bit of code that hangs up somewhere and can't stop it.  So I have to kill labview to get out. 
    Is there a key sequence (like 'open-apple . ' for anyone who ever used hypercard on macs) which will interrupt the program?
    thanks,
    jonathan

    Hi,
    I alway use a vi that runs on start up. I usually call it "Stop All.vi". This vi gets all vi's in memory (application property node), and then in a for loop opens references to each vi and aborts (vi method) it. If LabVIEW hangs up, I open this vi from windows explorer (or desktop, or recently opened) and all vi's are aborted.
    When you aborting all vi's in memory, don't forget to check if the name equals "Stop All.vi", or "Stop All.vi" itself will be aborted!
    If you didn't make such a vi at front, you can use task manager to stop LabVIEW (but don't press "end now"!). Then LabVIEW will prompt with a dialog. If you cancel the shut down, you'll still get a change to save all modified vi's.
    Regards,
    Wiebe.
    "IEC" <[email protected]> wrote in message news:[email protected]..
    Hey everyone... a quick question.
    &nbsp;
    Sometimes I'll forget to leave the 'abort' button in the menu bar and then I write a bit of code that hangs up somewhere and can't stop it.&nbsp; So I have to kill labview to get out.&nbsp;
    &nbsp;
    Is there a key sequence (like&nbsp;'open-apple . '&nbsp;for anyone who ever used hypercard on macs) which will interrupt the program?
    &nbsp;
    thanks,
    jonathan

  • One Key Recovery 8.0 - windows 8.1 - create new partitions

    Dear Members,
    Looks like I am again back to the start of the loop regarding the one key recovery after checking with Lenovo customer support. Can you help me on the below. However, I still feel that the well documented procedures for One Key Recovery 8.0 is missing rather than just explaining the navigation. I have z50-70 59436412 laptop with prebuilt windows 8.1
    Apart from other (recovery,OEM, others) partitions I have 2 partitions which are C (windows 8.1) 890 GB and D (drivers) 25 GB However I want to create additional partitions (4) to organize my files. Can I directly go to diskmanagement and shrink the C volume to around 300GB and then create more number of partitions from the available space?
    Is it mandatory to create a recovery media pendrive with bootable OS? As per Customer support "YOU NEED TO MAKE A RECOVERY MEDIA PENDRIVE WITH BOOTABLE OPERATING SYSTEM AS CHANGING THE NUMBER OF PARTITIONS WILL BREAK THE OKR METHOD AND OKR WILL NOT WORK!!! i.e., I will not be able to reset my laptop to factory settings when I create more partitions.  Can some one confirm this?  Also, if I make a bootable OS, and during restore doesn't it prompt for a key to make the windows OS as genuine??  Can I make a bootable OS on multiple DVDs (as one DVD isn't enough)?  Is the approach same as in the case of making on one DVD?
    I haven't took the system backup. I want to make more partitions (shrink C volume and create 5 more partitions for easy maintenance). Will I be able to restore my system back to factory settings (using NOVA key) eventhough there is number of partitions mis-match (initially 2, now around 6 paritions)? I am not worried about my data, as I will have backup of important files into external hard disk which I will restore later using other software
    Can I have partition based backup and restore using OKR 8.0?
    If I have a system image after creating all the partitions then will I be able to restore using this image without issues?
    Say if the harddisk is crashed and I have the backup image on external OS. Can I restore the image back on the new harddisk? Should the number of partitions be same? Also, should the size of each partition also be same?
    Suppose I have a partition on harddisk itself to store backup images (img1,2,3,4,5) and when I need to restore to image 3, and after successful restore, I am sure that will loose the image 4 and image 5 on this partition.  Can I be able to restore my system to say image 2 if needed in future when I am running on image 3.  Also, is there any limit on the number of system restore for a specific image?
    Awaiting your suggestions.  Sorry, if this is been asked repeatedly by any others.
    Thanks,
    Cheeli.
    Solved!
    Go to Solution.

    Disclaimer: I dont use OKR .
    Based on the documentation and posts I have read about OKR, it requires your HDD partitions to remain the same size as factory shipped. What the Lenovo customer support center stated to you is correct! ANY change to the C or D partitions sizes will cause OKR to FAIL.  (there are posts stating such failure after changing the partition sizes).
    The OKR create recovery media is designed to work with a Pendrive.  It will not work with a DVD.
    You could try running Windows backup with the backup being stored on the C drive or on a second HDD/usb,etc.
    FYI.  A HDD can only hold 4 regular partitions.  Above 4, you would have to allocate EXTENDED partitions. 

  • Hi, i have problem when installing itune. it said:  Could not open key HKEY_LOCAL_MACHINE32\SOFTWARE|Microsoft\Windows\CurrentVersion\Run. Verify that you have sufficient access to that key, or contact your support personnel. please help me!

    hi,
    i have problem when installing itune. it said: 
    Could not open key HKEY_LOCAL_MACHINE32\SOFTWARE|Microsoft\Windows\CurrentVersion\Run. Verify that you have sufficient access to that key, or contact your support personnel.
    Please help me i can't do anything without itune

    For "Could not open key/write value" errors when reinstalling try b noir's user tip:
    "Could not open key: UNKNOWN\Components\[LongStringOfLettersAndNumbers]\
    [LongStringOfLettersAndNumbers]" error messages when installing iTunes for Windows.
    The technique can be applied to the branch of the registry mentioned in the error message.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Nokia 2700 bluetooth key sequence (broken display)...

    Hi all, I have a nokia 2700 thats screen is broke after i dropped it. I need to get some things off and need to know the key sequence for turning on my bluetooth so i can browse it with my mac, i tried to download a plug in but need isync which i dont have and cant afford so if anyone can tell me how to turn bluetooth on i would be so so so greatful!

    Unfortunately it is a bit complicated as your phone does not support copy/paste. There is a workaround though, make a full backup of your phone with Nokia Suite (as you are using Mac, you'll need to get an access to a Windows PC to do this).
    If you do not have another Nokia 2700 available, your only option to get the data is to use an application that can open up the backup file and show it's contents. Please see this thread for more information on that. Please note that it is not an official Nokia application, so we cannot provide you with instructions on how to use it.
    Hope this helps,
    Puigchild
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • Is it possible to send keys from LabVIEW.?

    Is it possible to send keys from LabVIEW.?
    (In VisualBasic this is possible through the sendkeys command.)

    Hey I think i can help you
    Inport picture with edit >inport picture from file.
    Paste it into you frontpanel ctrl+v
    Place you Graph control and pant it with transparent.
    You must pant both the scale and the draw area with transparent.
    Try also to use the Reorder funktion in the toolbar to get the picture in
    background.
    Esben
    Click here for Free Video!!
    http://www.gohip.com/freevideo/
    wrote in message news:8b82k8$bjq$[email protected]..
    > Hi!
    > Does anyone know to insert a picture in the background of a graph and to
    > plot over it ?
    > I tried with the Edit Control command to import a picture (*.emf, *.bmp,
    > *.xmf) from the clipboard to a graph indicator but the only thing I got
    > was
    a blank window.
    >
    > The other possibility would be to export the data to an excel worksheet
    > and to plot an excel chart with the background already set-up but I'd
    > rather use only one application.
    > Can anyone help ?
    > Thanks.
    >
    > Fabrice
    >
    >
    > Sent via Deja.com http://www.deja.com/
    > Before you buy.

Maybe you are looking for

  • Faces is missing so many faces... any way to get it to rescan?

    Is there a way to get Faces to re-scan my library (without losing what I already have tagged)? It took about 2 hours for it to scan my library initially but as I go through and tag, I am seeing hundreds upon hundreds of photos where perfect faces are

  • Help needed in getting the Role Description from BOL Entities

    Hi All, I am trying to retrieve BP Role and BP Role Description and display the details at the top of account over view page. I am fetching the BP Role details using 'BuilRolesRel'. but i am not able to find any BOL Query to get Role Description. Any

  • Problem with MAC to PC conversion

    I downloaded a sequence onto my PC created on a MAC.  The sequence loads and identifies the clips, but it doesn't link with my source videos even after many attempts with Link Media.  It comes up as "File Format not supported."  I had sent copies of 

  • Is there a way to capitalize a string using batch rename regex in Bridge?

    Has anyone had success using more advanced pieces of regex to properly rename strings? I want to Capitalize the 3rd back reference in a file name, and although I believe I'm following the proper way of doing so via Replacement Text Case Conversion, B

  • Need to use 16GB Ram for Rendering

    Hello everyone, i have 2 x 3GB Quad Core 16GB RAM. i am trying to use my full memory or at least 10GB of memory for rendering in After Effects. Any help will be very much appreciated. Whenever i render it shows i am using 3GB of RAM (default), but i