VBS objshell.AppActivate doesn't work with Windows Task Scheduler

Hi all,
This script do the following : 
Open Adobe Flash media Live Encoder with an encoding profile
Activate the Adobe Flash... Window
Send enter key to start encoding
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run """C:\Program Files (x86)\Adobe\Flash Media Live Encoder 3.2\FlashMediaLiveEncoder.exe"" /p ""C:\Users\process\AppData\Roaming\Adobe\Flash Media Live Encoder 3.2\profile.xml"""
'Loading time
WScript.Sleep 5000
objshell.AppActivate ("Adobe Flash Media Live Encoder 3.2")
WScript.Sleep 5000
objShell.SendKeys "{ENTER}" 'start encoding
This script perfectly works manually, but the objshell.appactivate command doesn't work when i run it with the windows task Scheduler.
Any ideas ? Thx

Hi to all! I have found workaround for this issue - I wrote vbs, made run it via bat file, and converted the bat file to exe
vbs
Set oShell = CreateObject("WScript.Shell")
If oShell.AppActivate ("Connecting error to Bee") Then
WScript.Sleep 2000
oShell.SendKeys "%{F4}"
End If
bat
start C:\Users\User\Desktop\close.vbs
bat to exe
Advanced BAT to EXE Converter v2.83
I know it's some weird solution but it is working with Win Task Scheduler correctly. Try it ;)
In some cases you need to mark checkbox "run this program as an administrator" and (or not) disable UAC.

Similar Messages

  • JFileChooser() not working with windows task scheduler

    I have a program that would send emails with attachments to users. The program should be ran according to the scheduled time, and because of that I use task scheduler to do it for me. I did all necessary steps to make this happen. (create .bat file to activate/run the jar file then task scheduler will trigger the .bat file if it hits the stated schedule.) The problem right now is that when the program is ran or is triggered by task scheduler, it gives off this error:
    java.lang.NullPointerException
    at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source)
    at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)I tried running it manually by using the .bat file and it works fine with no errors or whatsoever. I'm suspecting it has something to do with jFileChooser() because It wont retrieve the attachments in the default directory, but I'm not sure, there might be other causes. Here's the function that retrieves the attachments in the default directory:
    public String getMyDocument(String filename)
         JFileChooser fr = new JFileChooser();
         FileSystemView fw = fr.getFileSystemView();
         return fw.getDefaultDirectory().toString()+"\\"+filename+".xls";
    }PS.
    All required attachments are present in the default directory, no misspelled words or misplaced characters. I also did some research but so far i haven't found any solutions yet.

    gimbal2 wrote:
    sabre150 wrote:{quoteStrange code anyway to use a filechooser to get a directory, especially when apparently no actual GUI is created. My immediate thought when I saw the code. I'm not even sure there is a default directory if the component is not realized but I have never checked. I would like to suggest to the OP that he uses the "user.home" directory but again I have never checked where that points when used with the task scheduler. It could be that it is not defined and that file chooser uses this as the default if not explicitly set. This is why I suggest that the OP writes out the value.

  • My i pod nano first generation doesn't work with windows 8

    My i pod nano first generation doesn't work with windows 8

    Howdy yvesmd,
    Thanks for using the Apple Support Communities.
    If your iPod nano is not being recognized in iTunes on your Windows computer, then I'd like you to please follow the directions in the link below.
    Apple - Support - iPod - iPod nano Troubleshooting
    Cheers,
    Alex H.

  • AT-AO-10 doesn´t work with Windows 2000

    I have an AT-AO-10 board that doesn’t work with Windows 2000. I have reserved two IRQs for legacy devices (non plug and play) in BIOS. The AT-AO-10 has got assigned these IRQs, a DMA and a base address that are free, and there aren’t any hardware conflicts, but the board doesn't pass the MAX's text.
    In Windows 'Information System', the board is shown in 'Forced hardware', but I don’t know that is a problem.
    If the board is unplugged, error messages are the same.

    Hello;
    You didn't mention what version of the NI-DAQ driver you are using over there. Anyway, my suggestion to you is to uninstall the NI-DAQ driver you have installed, remove the board, reboot the machine, download and install the latest NI-DAQ version (6.9.3) from NI web site.
    Try the installation with the new driver, and if that is still not working, the best bet is to try the same installation on a different machine to double check if the hardware is not defective.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • Issues with Windows TasK Scheduler

    Hi!
    I'm having two issues recently with Windows Task Scheduler, and I'm wondering if anyone else has experienced this and know of a resolution. We are on Windows Vista.
    Error value 2147750687 - The task we are using has been running successfully since day one, all of a sudden, two concurrent jobs got triggered the other day, thus one of them failed and gave us this error. Why would the scheduler kick off two jobs start at the same time? How can that happen? The settings are "run with the highest privileges" and run whether user is logged on or not".
    Error value 2147549186 - On this one, the task was running as scheduled, no errors in the log, then all of the sudden, after 10 minutes into the job, it re-started “due to a failure”. The settings are set to restart after 5 minutes, 3 attempts, but since it was running, and our logs do not identify any issues, what could have caused the scheduler to think there was an error?
    Joe

    Hi LordTim,
    >>However, I cannot get Access to load<<
    How did you load the Access? Did you use Access object to automate the Access applicaiton?
    If I understood correctly, did Access load successfully when you in a normal script?
    If yes, I think the issue may relative to the Task Scheduler. I suggest that you get more effective response from
    Windows Community forum about Task Scheduler issue.
    Regards & Fei
    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.
    Click
    HERE to participate the survey.

  • Install disk doesn't work with Windows Vista

    I just bought a new HP Color LaserJet Pro MFP M277dw and the install disk isn't compatible with Windows Vista.  Apparently there's no ful feature option for Windows Vista on an HP laptop.  After several hours of work I downloaded several drivers and got the printer to print, but the scan function doesn't work that well without the HP software which hasn't been created for Windows Vista.

    I am having a very similar problem but do not have an answer either.  I am running an X61 Type 7676A12 with a Lenovo ACP50 port replicator FRU part number 40Y8160.  I am running Windows XP Pro.  The port replicator has never been very great and would not restore the external monitor picture properly when the laptop had been in sleep mode however it was serviceable if not optimal.  After downloading and installing the October MS security updates the machine would get a BSOD when the port replicator was plugged in.  Remove the replicator and reboot and it worked ok.  Plug it in again and BSOD.  I tried upgrading the drivers from 5.1.4a to 7.1.1.03Aug07 and then to 7.1.2.  No go.  Emailing Targus with the problem got no response.  The port replicator is now relegated to my junk heap of useless rubbish.

  • Flash Player doesn't work with Windows 8.1

    Just purchased a new computer it has Windows 8.1 on it--Wanted to watch a You Tube video---and it said to update Flash Player--well It doesn't work at all.  Nothing I can do to make it work---any ideas on how I can get this to work--or what ever it takes for videos, and graphics.
    Sibyl

    Hello @EssieScott,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that your new HP computer running Windows 8.1 is not playing YouTube videos and are you are seeking assistance. I am providing you with a link to a Internet Explorer Forum post: Youtube videos in windows 8.1 will not play, which offers up solutions to resolve the issue you are describing. I recommend you review this thread and apply the steps suggested.
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Fn + F6 to lock/unlock touchpad doesn't work with Windows 10

    Hello,i have G580 i'v done an upgrade from 8.1 to windows 10so i'v have a small issue with touchpad :Fn+F6 to lock touchpad doesn't work when it was working as well in 8.1scrolling line at touchpad doesn't work to. so how to fix it, or will lenovo release drivers for windows 10 as she did for previous windowsis getting newer driver from elantech or synaptic website will resolve the problem ? cuz i did install 8.1 driver elantech and keyboard+mouse stopped working before reseting windows 10 upcoming driver. Best regards.

    I have the same problem. Untilthey update the ELAN driver I go in to Settings, Devices, Mouse and Touchpad, Additional Mouse Options and disabel  the ELAN driver. You can still turn it back on with Fn F6, but you have to go through the same steps again to turn it off. The nice thing is, it doesn't go back to enabled after awhile when you havent' been using the laptop.for awhile as it did before. The bad side is it takes about half a dozen key strokes to get to he disable. Hope this helps for now.

  • Media player hotkeys doesn't work with Windows Media Player 11

    Hi;
    I upgraded my windows media player 10 to 11 version. Now my hotkeys doesn't work. I was wondering if there is a way to solve this problem.

    Hi
    Do you mean the Toshiba Control buttons which control the WMP function like play, pause, stop, etc
    On some Toshiba notebooks the Toshiba control buttons can be configured manually.
    Please check this in the control panel -> Toshiba controls.
    If you will be not successful I would recommend reinstalling the Toshiba utility again

  • HP Pavilion G6 1006sh external display doesn't work with Windows 8.1

    Hi All,
    After performing a clean install of Windows 8.1 Professional on my Pavilion G6 1006sh I can not use my external Samsung monitor connected on HDMI port.
    The windows install went smoothly without any issues the OS had builtin drives for all of the devices. So there is no unknown hardware in device manager there is sound, wifi, LAN, etc. As for video card I can see two different devices. There is a Generic Windows VGA and there is an AMD Radeon HD 7400M installed. The AMD Catalyst software was installed successfully. In windows graphic properties I can choose from two different video outputs, one is the General Windows VGA the other one is the Radeon. However windows detects monitor connected only on General VGA (which is the inbuilt notebook display) and nothing on Radeon so I can not use my external monitor.
    Of course I tried to restart laptop / monitor many times, unplug / plug HDMI cable but no success. When I plug HDMI cable into laptop the monitor displays a message that it is connected but there is no incoming signal. The HDMI port both on monitor and laptop is working I used the same configuration with Windows 7 x64 Professional without any issues. It is only the operating system that changed.
    I tried to remove the General VGA device in order to force using Radeon but after restarting there was nothing displayed on the screen, I couldn't see anything neither on inbuilt nor on external monitor so I had to restore a previously saved system configuration.
    I tired to install the latest graphic driver to Radeon downloaded from AMD site but Windows crashed and restarted during the install process.
    Please help me with this issue or make a statement that this version of Windows is not supported on this machine so I have to revert the previous system.
    Configuration:
    modell: HP Pavilion G6 1006 SH
    RAM: 2x4 GB
    OS: Windows 8.1 Professional x64 (HUN)
    OS drivers: installed and updated automatically by windows
    Antivirus: Symantec Endpoint Protection 12.1
    Thanks,
    Zoltan
    This question was solved.
    View Solution.

    Hi there @nzole 
    Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel.
    I understand that you installed Windows 8.1 onto your system, but now you cannot detect an external monitor with HDMI. I am happy to help you with this.
    First, in answer to your question, this model is not supported for windows 8.1. It was only sold in versions that were configured for Windows 7.  That would mean there are no drivers specifically customized by HP for this model for Windows 8.1.  It is possible you could find an appropriate drive from a model that does support Windows 8.1 that may be close enough in terms of hardware, that its driver could work, but there is no guarantee.
    Here is the support page for your model:  HP Pavilion g6-1006sh Notebook PC
    HP Products - What If I Don't See My Operating System?
    Do you still have the Recovery partitions, or did you make a set of recovery disks, prior to installing Windows 8.1?
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • FIOS Email: Doesn't work with Windows Live Mail?

    I have follow the instructions posted in mid April 2015 for changing the email settings and they do not work at all with Windows Live Mail. 
    Unable to send or receive messages for the Verizon (text deleted by me) account. An incorrect password was entered. The next time you send or receive messages, you'll be asked to enter your user name and password for this account.
    Server Error: 0x800CCC90
    Server Response: -ERR [AUTH] Authentication failed
    Server: 'pop.verizon.net'
    Windows Live Mail Error ID: 0x800CCC92
    Protocol: POP3
    Port: 995
    Secure(SSL): Yes
    I am using the exact same identical password I used successfully to access webmail.  I confirmed the port settings of 995 (incoming) and 465 (outgoing) are being used in the set up. I noticed various versions of Outlook (Express, 2010, etc) have instructions posted here but not Windows Live Mail. Do the new settings not work on the client?

    Update: I did find the instructions posted at http://www.verizon.com/Support/Residential/Announcements/general-announcements01.htm?CMP=EMC-CVZ_ZZ_... and they DO NOT WORK
    Followed them to the letter step by step and still cannot access when using Webmail.  Here is the response:
    Unable to send or receive messages for the Verizon account. An incorrect password was entered. The next time you send or receive messages, you'll be asked to enter your user name and password for this account.
    Server Error: 0x800CCC90
    Server Response: -ERR [AUTH] Authentication failed
    Server: 'incoming.verizon.net'
    Windows Live Mail Error ID: 0x800CCC92
    Protocol: POP3
    Port: 995
    Secure(SSL): Yes

  • Kuler API doesn't work with Windows 8 apps

    Hi, I've been trying to get the Kuler API to work with my app for Windows 8 (I'm using C# and XAML). For example:
    string feed = await client.GetStringAsync("https://kuler-api.adobe.com/rss/get.cfm?listType=" + type + "&itemsPerPage=" + items + "&timeSpan=" + timeSpan + "&key=" + key);
    However this throws a Http Request Excepion and tells me: "The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF".
    This request worked absolutely fine a while ago but now it throws that exception. If I paste the url into a web browser like Chrome it works fine because Chrome ignores errors like this. Is there any way of fixing this problem? Thanks.
    Edit: if the issue can't be resolved, can anyone give an update as to when the new API system is going to be in operation? I haven't heard anything since May and it's now July.

    See:
    *https://support.mozilla.org/kb/windows-media-or-other-plugins-stopped-working
    There has been a change in where Firefox searches for plugins and the plugins folder in the Firefox program folder is no longer scanned for plugins, so Firefox won't find them anymore if they are installed in the plugins folder instead of the "browser\plugins" folder that Firefox now scans.
    You can set the plugins.load_appdir_plugins pref to true on the about:config page to make Firefox scan the "<install>/plugins/" directory for plugins like the WMP plugin (np-mswmp.dll).
    You can alternatively move plugins from "<install directory>\plugins\" to "<install directory>\browser\plugins\" (create this folder when missing) to make Firefox find them again.
    *http://www.ghacks.net/2013/05/15/why-you-may-have-lost-access-to-plugins-or-extensions-in-firefox-21/
    *http://mike.kaply.com/2013/04/24/major-changes-coming-in-firefox-21/

  • Creative Console Launcher doesn't work with Windows 8

    I trying to install Creative Console Launcher on Windows 8 x64,but i get the following error:
    error.PNG
    Unsupported with Windows 8! Without this program,my headphones Tiamat 7.1,work without bass!
    Sorry for bad english,i hope you understand me!Thank you!

    See:
    *https://support.mozilla.org/kb/windows-media-or-other-plugins-stopped-working
    There has been a change in where Firefox searches for plugins and the plugins folder in the Firefox program folder is no longer scanned for plugins, so Firefox won't find them anymore if they are installed in the plugins folder instead of the "browser\plugins" folder that Firefox now scans.
    You can set the plugins.load_appdir_plugins pref to true on the about:config page to make Firefox scan the "<install>/plugins/" directory for plugins like the WMP plugin (np-mswmp.dll).
    You can alternatively move plugins from "<install directory>\plugins\" to "<install directory>\browser\plugins\" (create this folder when missing) to make Firefox find them again.
    *http://www.ghacks.net/2013/05/15/why-you-may-have-lost-access-to-plugins-or-extensions-in-firefox-21/
    *http://mike.kaply.com/2013/04/24/major-changes-coming-in-firefox-21/

  • Time Machine doesn't work with Windows Server 2008

    At work we use a Windows Server running with Windows Server 2008 to backup our work via Time Machine. All my collegues are running Snow Leopard appart from on that runs under Leopard because it's a G5.
    A few weeks ago I installed Lion to try it before upgrading all the computer and found that time machine won't work. Apperantly I found that it is due to an AFP connection.
    Can anyone tell me if I can do anything apart from trying to use another Backup Software like Data Backup?
    Would really like to use Time Machine as it's SUPERB ;-)
    Regards

    Perhaps that drive is too small to use for Time Machine. Your Time Machine drive needs to be at least twice the size of the drive it is backing up, preferably 3 times.

  • Wireless router doesn't work with Windows 8

    Does anyone have experience with attempted installs of wireless routers using windows 8? I have tried to install three devices but they will not install for windows 8 and I can't find a single one that is. I don't need the internet just a router for my home wireless. Printer, mp3, etc. If you look at all of the Linksys specs online, none of them say they are compatible with windows 8 just up to 7. I have tried to install two Linksys routers and two Belkin routers and none of them will install due to windows 8 being my OS. I use a verizon hotspot for my 4g internet.

    To sfd1117:
    I am able to see your post in this thread: http://community.linksys.com/t5/Social-Media-Support/Facebook-com-WRT110-Internet-access-problem/m-p.... I’ve posted a reply but let me post it here:
    If other devices are connecting without any problem through the router then the problem might be on the new laptop. First thing that you can try is check if the laptop can detect other wireless networks. If it can, try connecting to the other network. If it’s able to connect then it must have something to do with the wireless settings of the router. If it can’t then the problem might be on the built in wireless card of that laptop. Before calling the laptop manufacturer though, you can still try changing a setting (channel) on the router and see if the windows 8 laptop will be able to connect. For instructions, refer to this link: Changing the Wireless Channel on a Linksys Router.
    By the way, what is the model number of your router?

Maybe you are looking for

  • Errorpage

    If we don't put try-catch statement in a JSP file, we will be automatically forwarded to the errorpage when an exception occurs. How do I pass a parameter along with it? Specifically, I want to pass URL name of the original page so that the errorpage

  • OSX Yosemite + iTunes 12 no longer sees iPad or iPod Touch

    I have an iMac (2013 model) which I recently upgraded to Yosemite. All went smoothly. iTunes was also upgraded to the latest version. Having bought some new music, I wanted to sync my iPad (3, retina) and iPod Touch with the playlists / music. Howeve

  • Why does captivate 5 scorm 2004 change the pass/fail status when using complete/incomplete

    SUMMARY:  I am trying to use SCORM 2004 reporting but I am finding out ADOBE does not diffentiate between COMPLETE/INCOMPLETED and PASSED/FAILED variables in the SCORM 2004. RESULT: I can not accurately get the passing/failing status from the course.

  • Oracle Forms 6i - mySQL (Commit Problem)

    Hi, i'm using Oracle Forms Builder 6i to connect to mySQL 3.23.49 via Oracle Open Client Adapter for ODBC 6.0.5.35.0 Now I have a problem of controlling which form to commit if more than one form are opened. E.g. I need to open 2 forms (eg. A, B) and

  • Select-option

    Hi, On selection screen  i have to display 4 select-options and 2 checkboxes. My requirement is as soon as i enter into selection screen out of 4 select-options it should display only 2 and rest should be hidden and if i check the below checkboxes th