Bring window to front - appactivate does not help :(

Hello
I am coding with vbscript.
I have a need to make certain that sendkeys commands are sent to the proper program.
I can use this to activate a window:
success = WshShell.appactivate("MyProgram")
if success then WshShell.sendkeys "(% ) N"
But in Windows XP and 7 the window does not come to front. The program is activated, BUT left blinking on the taskbar below. And the key N is sent to any program that is currently open on top, for example windows explorer, which now minimizes.
How can i make sure that the command "(%) N" is sent to MyProgram? I have not been able to find a solution for this dilemma.

Thanks for the info
The developer replied the situation cannot be changed.
Is there other, a better way, i could send key commands to the program, instead of sendkeys?
The concensus here is 'No'.  You cannot do what yo aretrying to do.  The developer should be able to explain why.  We have tried.
Window sprotect its programs well.  It attempts to prevent rogue capture of teh mouse input while allowing for a certain amount of automation.  SendKeys is rapdly coming into disuse due to changes to the way Windows forms are generated and managed.
If a developer wants to allow remote control then they will provide an automatin intreface that will allow you t ocommunicate with teh program.. Ideas like 'SendKeys' are a leftover from DOS basic and Windows 98 and earlier.  Microsoft has made no attempt
to keep thi sworking in newer systems while it still supports most existing use of teh feature.
What you are trying to do is 'LEGACY'.
Perhaps if you reqord your question to ask how to accomplish some objective then we can point you at a solution.  SendKeys is not that solution.
jv

Similar Messages

  • The front camera on my iPod touch 4th generation is frozen. I cannot use it. Updating software does not help. This started right after I bought it, new from BestBuy. What can I do?

    The front camera on my iPod touch 4th generation is frozen. I cannot use it. Updating software does not help. This started right after I bought it, new from BestBuy. What can I do? When i go to the camera, it is stuck on a black screen. the only way to use my camera is through other camera apps, but if I try to switch it to the front camera, it freezes again.

    If you still have the problem after retoring the iPOd to factory defaults/new iPod then The iPod is likely defective and replacement is required.  You can make an appoinment at the Genius Bar of an APple store or take it back to BestBuy if within warranty

  • TS3212 I cannot get the new iTunes to start in Windows Vista. I get an error that states "This application has failed to start because MSVCR80.dll was not found". Reinstalling does not help.

    I get an error that states "This application has failed to start because MSVCR80.dll was not found". Reinstalling does not help.I have tried removing iTunes and reinstalling, I have tried "repairing" option at reinstall, nothing seems to work.

    Read this:
    iTunes 11.1.4 for Windows - Unable to install or open - MSVCR80 issue

  • I have instaled creative clouds, but when i open, my creative cloud shows empty window. I have reinstaled, and does not help.

    I have instaled creative clouds, but when i open, my creative cloud shows empty window. I have reinstaled, and does not help.

    follow solution 2 here, CC desktop lists applications as "Up to Date" when not installed

  • [AIR] May I catch "bring window to front" event?

    Hi,
    I wonder who is responsible for bringing windows to front when user click on that window (application contains more Windows components inside). Is it operating system or AIR runtime? Or perhaps AIR runtime send event to operating system which does it? In this case there would be some chance to catch and stop propagation of that event not to let operating system bring that window to front. Am I right? Any idea how to do it?
    //pyso

    This thread explains my experiences with the toFront() method on Windows 98. It works, but only if the frame has been hidden for about 20 seconds.
    http://forum.java.sun.com/thread.jsp?forum=57&thread=426257

  • Having a problem with Firefox using Hotmail email. Inbox - as checking messages it freezes up or a 1 item window follows cursor and does not allow you to enter

    I am having a problem accessing Hotmail email messages via Fireflox server. When I am in the Inbox, reviewing messages, it either freezes up or a "1 item" small icon window follows cursor and does not allow me to enter messages or do anything. Have to log off and start over. Suggestions>?

    Can you detect any pattern to it, whether related to messages with attachments, or particular advertising on the page, etc.?
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    (Usually the dialog will refer to live.com rather than hotmail.com, that's normal.)
    Then try reloading the page and logging in again. Does that help?

  • On my MacBook with Lion Safari does start, does not react immediately after trying to open it. Installing a new Safari does not help. Removing parts of Safari in the Library did not help. Where can I find and remove all components (LastSession ...)?

    How can I reset Safari with all components? On my MacBook with Lion, Safari does not start, does not react immediately after trying to open it. Installing a new Safari does not help. Removing parts of Safari in the Library does not help. Where can I find and remove all components as LastSession and TopSites?

    The only way to reinstall Safari on a Mac running v10.7 Lion is to restore OS X using OS X Recovery
    Instead of restoring OS X in order to reinstall Safari, try troubleshooting extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.
    If it's not an extensions issue, try troubleshooting third party plug-ins.
    Back to Safari > Preferences. This time select the Security tab. Deselect:  Allow plug-ins. Quit and relaunch Safari to test.
    If that made a difference, instructions for troubleshooting plugins here.
    If it's not an extension or plug-in issue, delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • Windows Vista and iTunes does not work

    First Time sorry for my bad English, I'm from Germany and my English is not the best.
    I have the new Windows Vista but iTunes does not work good.
    And I have to use it, to manage my music on my iPod.
    When there will be a Vista compatibles Version of iTunes??
    And when will come an 64-Bit Version?
    Thanks for Help,
    Karsten

    iTunes running under VISTA does not recognize media burned by iTunes Backup (v7.0.2) from a non-Vista machine.
    The original machine recognizes the media just fine, but the new VISTA machine does not recognize the dvd at all.
    Anyone else having a problem with VISTA recognizing burnt media?

  • IPod touch 2nd G won't hold charge. Restore does not help. removing all apps. Still discharges. What gives?

    iPod touch 2nd G won't hold charge. Restore does not help. Removed all apps and it still discharges even if not turned on and used for anythig. What gives?

    If it is warranty, bring it back to the Genius bar and insist on a replacement.  If out of warranty, you can get a replacement iPod with a new battery for $79 at the genius bar.

  • A pop-up window requiring a response does not close after being responded to.

    A club membership database uses pop-up windows to request preferences for displaying information on the database. The window should close after the preference is saved. This closing occurs with Internet Explorer, but not with Firefox. The requested information cannot be retrieved unless the pop-up closes.

    Force Quit .
    Press command + option + esc keys together at the same time.    Wait.
    When Force Quit window appears, select  Safari, if not already.
    Press Force Quit button at the bottom of the window.      Wait.
    Application will quit.
    If this does not help, press the power button for 7 or more seconds.
    Computer will shut down.
    Restart.
    Hold the shift key down and launch Safari.
    Best.

  • Window 10 build 10041 does not work with Intel 82579V Gigabit Ethernet on ASUS motherboard

          
    I originally posted this question here:
    answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_update/window-10-build-10041-does-not-work-with-intel/6729892f-83aa-4822-b20a-ea84f4fd06c7
    and was asked to post it on this forum...
    I updated a computer I have which is a quad core i7 that I built and includes an ASUS motherboard with Intel 82579V Gigabit Ethernet built in. Windows 10 preview 9926 worked fine with this network adapter. Window 10 build 10041 does not, and I have tried
    it twice so far. I even went as far as buying a Thunderbolt-Gigabit Ethernet Adapter (Broadcom, sold by Apple)... and while it installed the driver automatically, it did not work either. Each time you try to view the properties of either of them, it locks
    up or give an error. In fact, doing much of anything with the Intel adapter icon assures you of not being able to do a clean reboot... have to kill power.  I have finally gone back the previous version 9926, which has its issues but no where near as bad
    as not having any network connectivity!  Does anyone have this issue and a workaround? 
    Note, there are two images on the windows 10 preview forum that I posted this question on. I could not post the full link as I was getting a message here that links and graphics are not allowed.

    Thanks Roger, I posted the following yesterday in the other thread (thinking it was this thread - confusing after they moved it here)... It may be that the new driver fixes the issue that 10041 has with it, but I have not tried that yet. If I do I will update
    this... Thanks!
    I have more information about this, which basically exonerates any issue with the Intel 82579V Gigabit Ethernet hardware or software. I have 3 computers with Windows 10 preview so I have multiple angles to see issues from. With this I have found a culprit
    (but I suspect not just the only culprit) in this above mentioned problem...
    10041 build combined with installing (or attempting to install) CISCO VPN Windows 7 64bit 5.0.07.0440-k9 client causes the issue mentioned above. I confirmed this on a completely different machine with a totally different Ethernet adapter. First machine
    is an ASUS motherboard in a tower system I built, with the Intel 82579V Gigabit Ethernet hardware built in. Second machine is a Gateway Laptop from 2008 which has a Marvell Yukon 88E8057 PCI-E Gigabit adapter built in. Build 10041 will work fine with my 2008
    laptop, including the MS VPN client (which I have tested). However, if you attempt to install or even uninstall the Cisco client you will have to do a recovery to a restore point (as I have done twice) in order to get your network working again. Installing
    or attempting to install (because it never even does install properly and times out), CISCO VPN client will render your entire network unusable. Going back to a restore point saved me and I am still running 10041 but I can't use CISCO VPN client any longer.
    I could with build 9926, including on all 3 machines. I now have 9926 on two machines and 10041 on only the 2008 laptop. 
    Hopefully this above information helps someone resolve the issue. I will also mention, even though my network is working on the 2008 laptop, I still can't go into the Control Panel\Network and Internet\Network Connections and right mouse click on the Marvell
    Yukon 88E8057 PCI-E Gigabit adapter icon. I get an error when clicking on Properties menu popup : "An unexpected error has occurred". So something is still up with my network adapter driver or windows software, but it could be a side effect of all
    that has happened with the Cisco software install attempts under 10041.
    Another note: CISCO Anyconnect also has the issue.

  • TS1363 I have itunes in windows 8 but it does not recognise my ipod. Any tips on getting it to work and be able to Sync?

    I have itunes installed on my computer, I have a new laptop with windows 8. It does not seem to recognise my ipod and therefore I cannot sync it. Any ideas on how to rectify this?

    Error -69 suggests a possible problem with the source files on your computer. Check the source disk for errors and backup if you don't already do so. See HT1210: iTunes displays a -69 error when syncing iPod for more details.
    The SyncToy backup program is also a good way to identify exactly which files cannot be read. Repeated runs may succed in copying files which won't copy over on the first attempt.
    See also Corrupt iPod classic.
    It may also help to disable any AV software while syncing or set exclusions on the media folder and the iPod's drive.
    tt2

  • Xfce broken completely and reinstall does not help...

    Dear All,
    I installed Xfce and it was working just fine until I got a strange error with unmounting a usb stick. After that the Xfce panel somehow disappeared after reboot. I don't remember exactly what I did, but now it is completely broken - I see only the "tips and tricks" window after login. No panel, no wallpaper - just nothing.
    I removed xfce4 and xfce4-goodies completely and wiped all relevant config files, which I managed to find. Then I installed xfce again and it does not help!
    Many thanks in advance for any help!
    Last edited by yesint (2009-12-02 14:30:45)

    Try deleting anything related to xfce in your home directory and start xfce again, also do not save the session, I have found that saving the session can cause problems like this.

  • My ipad says your Apple ID has been disabled. Ready to throw this out the window. Apple store could not help. The instructions on the web are useless. Anyone found the solution?

    My ipad says your Apple ID has been disabled. Ready to throw this out the window. Apple store could not help. The instructions on the web are useless. Anyone found the solution?

    Sorry, does this link work
    http://www.apple.com/support/appleid/
    I ended up having them call me then was able to give them 1 of my secret questions right and they reset things so I could reset all my secret questions.
    Try going into contact support and see if you can schedule a call. There seems to be some issues with peoples' id's and this update. iTunes thought that I'd never bought anything from my computer or device before, and I clearly had, so it's like it got confused. THen I tried to get my questions reset, but the mail never came, which is why I just got a phone call because I felt it was 'real person' time.

  • Windows XP SP 3 does not recognize HP Scanjet 3770 after downloading and installing driver

    Hello !
    I have a second hand HP Scanjet 3770 scanner.
    After downloading and installing driver there is only 1 icon on my desktop - Image Zone.
    There is not icon of HP Director software, neither on desktop nor in C:\Program files\HP folder
    Windows XP SP 3 does not recognize HP Scanjet 3770 after downloading and installing driver (Image Zone software)
    There is another scanning HP device installed on the same computer - all-in-one HP Photosmart C 4280
    What I have to do ?
    Thank you !

    Some things that pop in my head- your CD/DVD drive may need cleaning (laser eye). There are discs to do this or you can use a cotton swab sometimes to wipe the laser. OR- the last recovery may have been the last fatal strain on the CD/DVD drive and it is now not functioning. Maybe you could borrow the drive from the other Dv4 and try it- or  borrow/buy a USB CD/DVD drive to try.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

Maybe you are looking for

  • How to print on the photo paper or vise versa

    Hey there, I have HP Photosmart 7510.  sometimes i need to print a photo from my iPhone but the printer is out of photo papers, so how can i change the setting to print the desired photo on the regular paper ? Also on my mac, from where can i choose

  • Business Activity Monitoring for BPEL Processes

    Hello, IEP is capable of monitoring real time events, Real time business event collection and processing. In that case, can we use IEP to monitor BPEL process activities with activity data. One very big part, the ability to provide functionality for

  • Youtube videos are not playing back

    Youtube videos are not playing back in Safari 5.1.7. I've also checked this in Firefox 16.0.2. I am running OS 10.6.8. Why is this happening? I need this capabilitiy for my work efforts. Thanks (in advance)!

  • Specification table & Field

    can any body guide me  what is  table & field for specification what is table and field  for  specification and  attribute characteristics ( selected set) in result recording  screen,because i want to data in alv report numerical and non numaricals

  • Autofill performance in iTunes 7?

    I just upgraded to iTunes 7, and am trying to autofill my 512k shuffle - and it is slowwwwwww! It was never "fast" with iTunes 6, but on 7 this is literally going to take overnight to autofill. Any thoughts on how to fix it, or should I go back v6? t