Applescript help - keystroke part does not work

Hi guys, I'm new to Applescript and would like some assistance. I have an application called iVPN that I would like to start with some applescript code - just one problem in that it requires the admin password at startup.
I tried the following, but once the dialogue box appears to enter the password, nothing happens. It seems to stop just before the "delay 10" line. I've also tried it with just the keystroke line, but nothing happens (no password appears in the dialogue box that pops up).
Any help greatly appreciated, Thanks!.
tell application "iVPN" to open
tell application "System Events"
delay 10
key code 48 using {command down}
keystroke "password here"
key code 36
end tell

I had you download the wrong file.
The new name is XTool-2.0.dmg.tgz Notice the missing src.
I simplified the example applescript file. You need to write your applescript file as needed.
The basic plan for you is to move the mouse to the button then click the button.
--Move mouse to input field.
move mouse {100, 10} 
click mouse
--fill in the data.
--move mouse & click button
move mouse {120, 10} 
click mouse
Robert
   First, there is the XTools scripting addition, which will give AppleScript the ability to move the mouse. 
   Dowload from:
      http://www.lestang.org/osax/XTool/
   click on:
      XTool-2.0.dmg.tgz 
   Installation :
   Drag XTool.osax from insite the image to one of the following locations (create the directory if it does not exist) :
   a : ~/Library/ScriptingAdditions/
   b : /Library/ScriptingAdditions/
   c : /System/Library/ScriptingAdditions/
   I have it in directory /System/Library/ScriptingAdditions/ 
   My other two directories do not exit: ~/Library/ScriptingAdditions/ & 
      /Library/ScriptingAdditions/
   see download file XTool ReadMe.rtf for documentation
log "  --- Starting on " & ((current date) as string) & " --- "
set {x, y} to position of the mouse
display dialog "mouse at " & x & " " & y giving up after 3
display dialog "Move mouse to where you want to find coordinates, you have five seconds." giving up after 5
set {x, y} to position of the mouse
beep
display dialog "New mouse position at " & x & " " & y giving up after 5
-- Go after time message
move mouse {10, 10}
delay 5
-- click mouse
-- center mouse
-- find the size of the display with a unix command
do shell script "/usr/sbin/system_profiler SPDisplaysDataType | grep 'Resolution'" -- get info
tell the result to set {DisplayWidth, DisplayHeight} to {word 2, word 4} -- get resolution
move mouse {DisplayWidth div 2, DisplayHeight div 2} -- center mouse
Message was edited by: rccharles

Similar Messages

  • HELP! Scroll does not work on pressario CQ60 touchpad.

    Hi,
    I know this has been covered before but I am very illiterate in this subject and need step by step instructions, please bear with me.
    I have a Compaq Pressario CQ60-300EV, the scroll function on the touchpad stopped working very suddenly after only two months. Also when i type i often accidentally touch the touchpad, i have tried to turn this off but this does  not work, the light colour does change.
    I have read replies that say go into:
                     control panel-mouse-settings then change the horizontal whatever it is,
    I don't appear to have anything under mouse that says horizontal.
    Please help I'm desperate.
    Thanks
    Clarebear

    Sorry, I have wasted your time. Woo hoo! Its fixed!
    Thanks anyway, i would have clicked the Kudos star anyway.

  • F4 search help on ECP does not work

    Hello experts,
    Using a WBS with ECP and displaying the cost amounts, the F4 search help on 'Base unit of Measure' does not work. Please let me know if anybody has encountered this before and if so whether it is a SAP error or whether there is some setting which has not been configured correctly.
    Any help would be appreciated
    regards

    Same here

  • Help! Truecrypt does not work in Maverick. It is missing the fuesfs.kext file in /Library/Filesystems/fusefs.fs/Support/ location

    See Above error message,

    Is there a link to the official Truecrypt latest version download?
    The only official version I see does not support Mac OS X Mavericks (10.9):
    • 2012-02-07
    TrueCrypt 7.1a
    Released
    http://www.truecrypt.org/docs/supported-operating-systems
    Supported Operating Systems
    TrueCrypt currently supports the following operating systems:
    Windows 7  (32-bit and 64-bit)
    Windows Vista  (32-bit and 64-bit)
    Windows XP  (32-bit and 64-bit)
    Windows Server 2008 R2  (64-bit)
    Windows Server 2008  (32-bit and 64-bit)
    Windows Server 2003  (32-bit and 64-bit)
    Windows 2000 SP4
    Mac OS X 10.8 Mountain Lion  (32-bit and 64-bit)
    Mac OS X 10.7 Lion  (32-bit and 64-bit)
    Mac OS X 10.6 Snow Leopard  (32-bit)
    Mac OS X 10.5 Leopard
    Mac OS X 10.4 Tiger
    Linux  (32-bit and 64-bit versions, kernel 2.6 or compatible)
    Note: The following operating systems (among others) are not supported: Windows RT, Windows 2003 IA-64, Windows 2008 IA-64, Windows XP IA-64, and the Embedded/Tablet versions of Windows.
    Thank you.

  • Help, my Bridge does not works well with my AfterEffect. does not preview .ffx files

    Hi,
         I have some problem with my Bridge. When i browse preset from my After Effect in Bridge, it won't preview all of the After Effect preset(*.ffx), but my Bridge works well with photoshop files, it will preview all the photo files inculding .PSD. Does anyone knows what's the problem? Anyone knows how to fix it? I need help to fix this problem to get my work in AfterEffect, it is very hard to get things work it won't preview the preset. Thanks.
    Best Regrads,
    Chongkkmy

    Found this link, does it address your problem?
    http://forums.adobe.com/click.jspa?searchID=769246&objectType=2&objectID=1794899

  • Help! Demo does not work

    Hello, friends,
    I met a problem while I tried to run the XML sample 'WebStore B2B Exchange'.
    I am using Oracle8.1.7, Apache WebServer 1.3.12 and Apache JServ 1.1. Most of things are OK now, except that when the XSQL servlet wants to creat an AQ connection with oracle database, the application terminates errorly.
    The following sentence is what I found in the JServ.log file:
    Servlet Error:
    java.lang.NoSuchMethodError: oracle.jdbc.driver.oracleConnection: method getTypeMap()Ljava/util/Dictionary; not found
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java)
    at org.apache.jserv.JServConnection.run(JServConnection.java)
    at java.lang.Thread.run(Thread.java:479)
    I think the problem is still how to configure the Apache JServ or some other parts.
    Sincerely hope that some friends could help me to solve this problem.
    Thanks a lot in advance!
    Xiangnan

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>java.lang.NoSuchMethodError: oracle.jdbc.driver.oracleConnection: method getTypeMap()Ljava/util/Dictionary; not found
    <HR></BLOCKQUOTE>
    I see that you are using 8.1.7, but the WebStore demo was built and tested using 8.1.6. This is just a guess, but maybe you should use a different JDBC driver. Here are some things to try:
    - Edit setbxbenv.bat to configure the sample app environment. Down near the bottom of this file are some lines you can uncomment to use classes111.zip and xsu111.jar. Then comment out the lines that use classes12.zip and xsu12.jar.
    - Edit jserv.properties to configure Apache JServ as described in the XSQL Servlet Release Notes (by default, it is installed in c:\xsql\doc\relnotes.html). The Release Notes explain how to configure JServ to use the Oracle JDBC 1.x drivers instead of the Oracle JDBC 2.0 drivers.
    If you still have problems, please post follow-up questions to the OTN Sample Code discussion forum.
    Thanks and regards,
    -rh

  • Problem with activation of Office 2010 Professional, 'help' web link does not work

    I am having problems activating a copy of Office Professional 2010 purchased retail. I am being told that the product key is not valid, though I have re-entered it twice. I click on the 'more information' link but the page doesn't load: http://wwwppe.dns.microsoft.com/howtotell/geo/content.aspx?pg=geo_off&displaylang=en?ERR=0xc004c003&LCID=1033&MSG=4&PID=02257-210-6072776-49466&ErrorCode=0xc004c003
    Please advise what I should do.
    Thanks

    Could you please follow the instructions below, run the commands in green, and paste your output?
    Open anelevated command prompt
    a.The
    path below is the default install path, so it may be different if you've customized your install
    b.If
    you’re using 32b Office on a 64b OS, you may need to run it from the “Program Files (x86)” folder
    c.Start,
    search for ‘cmd’, right click on the command prompt window and select “Run as administrator”
    d.cscript
    "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" /dstatusall
    Trigger activation
    a.Launching
    an Office application will then prompt you for activation via the UI. Alternatively you can trigger it using this command:
    b.cscript
    "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" /act
    Check the status
    a.The
    following command will show the licensing status. Alternatively in the Office UI you can view the status by clicking File, Help.
    b.cscript
    "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" /dstatusall
    Ted Way [MSFT], Program Manager, Microsoft Office: Enterprise Licensing, Group Policy, and 64-bit Office

  • HELP, Scrolling cotent does not work

    So i just updraded to Lion and every guesture works except for scrolling content down or up, i dont know why that is. but i tried messing with the settings and i still cant get it work. please help

    Answering my own question, I found an app called "ScrollReverser.app" that is a freebie, and works with Snow Leopard.
    http://www.macupdate.com/app/mac/37872/scroll-reverser
    Works fine, and it sits in the toolbar where you can change the direction anytime you want.

  • The search in the help of ADDT does not work!

    Pleas fix it. Adobe is still having zero-support for ADDT customers and formers Interakt customers.

    Hi Francesco,
    Pleas fix it
    they can´t, unless you´re notifying the Adobe staff the designated way :: by using the "Feature Request/Bug Report" Form :: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Phone does not work - Help

    we moved our phone  we need help because it does not work when we reconnect... Comcast phone call disconnected twice from my cell phone. And now it rings busy - phone number 800-934-6489 and 800-266-2278. We called again from another cell phone and are not being connected to an agent after 3 minutes.

    herbiep wrote:
    I have tried all day to reach Comcast.  I guess they are getting a dose of their own bad service.  No phones working.Online chat is usually faster than the phone queue....you can do this here:  https://www.comcastsupport.com/ChatEntry/Protected.aspx

  • JasperReports does not work outside Netbeans

    Hi guys,
    Background story: application with a couple of forms, the data can be stored and saved from a sqlite database. In the end the forms need to be saved as a PDF.
    Netbeans 6.7, JasperReports 4.0.2.
    Libraries in my Classpath: Commons-beanutils, Commons collections, commons digester, commons javaflow, commons logging, iText, Jasperreports
    I tried to use JasperReports for this matter. It runs perfectly when in Netbeans, and my PDF is generated.
    However, when I try to run the compiled .jar file from windows explorer... the whole JasperReports part does not work at all.
    I made a simple example showing my problem. It produces a nice 1 line PDF when in netbeans, but outside Netbeans, nothing again.
    Could you give me some advice on this? Or maybe an alternative for JasperReports?
    Thanks alot,
    Elwin
    package jasperreportsproject2;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import net.sf.jasperreports.engine.*;
    import net.sf.jasperreports.engine.export.*;
    import java.util.*;
    * @author Elwin
    public class Main {
         * @param args the command line arguments
        public static void main(String[] args) {
            String fileName = "test1.jrxml";
            String outFileName = "test.pdf";
            HashMap hm = new HashMap();
                // Fill the report using an empty data source
            try {
                JasperPrint print;
                JasperReport jasperreport;
                jasperreport = JasperCompileManager.compileReport(fileName);
                print = JasperFillManager.fillReport(jasperreport, hm, new JREmptyDataSource());
                // Create a PDF exporter
                JRExporter exporter = new JRPdfExporter();
                // Configure the exporter (set output file name and print object)
                exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outFileName);
                exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
                // Export the PDF file
                exporter.exportReport();
                } catch (JRException ex) {
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    }The xml file used to build the report
    Test1.jrxml
    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="HelloWorld" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30">
         <property name="ireport.zoom" value="1.0"/>
         <property name="ireport.x" value="0"/>
         <property name="ireport.y" value="0"/>
         <detail>
              <band height="200" splitType="Stretch">
                   <staticText>
                        <reportElement x="0" y="0" width="500" height="20"/>
                        <textElement/>
                        <text><![CDATA[Hello Report World!]]></text>
                   </staticText>
              </band>
         </detail>
    </jasperReport>

    Another for xsql:
    Producing PDF Output with the FOP Serializer
    at
    http://www.stanford.edu/dept/itss/docs/oracle/10gR2/appdev.102/b14252/adx_j_xsqladv.htm
    NA
    http://nickaiva.blogspot.com

  • My microphone does not work. pavillion dv7-1129wm running windos7

    Please friends I need help my microphone does not work since installing windos 7, andreinstalled the sound and nothing and download the codes and nothing, not what else to do .... I need your help thanks.

    I don't know if this is related: [http://discussions.apple.com/thread.jspa?threadID=2160988&tstart=660]
    It's a Skype problem. The program automatically selects the DIGITAL input. You need to change it to the RealTex internal microphone.
    From Skype, go into Tools -> Options -> Audio Settings and make sure the microphone is selected instead of the digital input.
    I think it would also help to verify the microphone is working at all. I don't have experience with external microphones so you'll have to wait for other suggestions as to that, unless you can do it yourself.

  • I updated to Yosemite, now my laptop keyboard does not work in MS Word for Mac. Help!

    I updated to Yosemite, now my laptop keyboard does not work in MS Word for Mac. Help! Any suggestions for fixing this?

    Did you ever get a solution to your problem? Because I am having the same problem. I was actually in the middle of using Word when the keyboard stopped working. But it works in other apps, including in Excel.
    Thing is that my laptop just got back from Apple for repairs and they replaced everything but the display - including the hard drive.
    So not only do I have plenty of hard drive space, but it should be virus and error free otherwise.
    I have only installed a few programs and redownloaded some of my files from places like Dropbox, but otherwise is essentially a new system.
    Oh - and it came with Yosemite, so I did not upgrade to Yosemite and still Word doesn't work.
    I've always had trouble getting Word to play nice with my Mac but that was also with the old, full hard drive.
    This is a fresh install. And since I lost all my files, I only had like 1 old file I have downloaded from email and accessed and was in the process of
    creating a new file when it crashed. I got no error, the keyboard just stopped working (to type). I also cannot even get Word > Preferences to even open,
    so it is completely unresponsive.
    I did a Google search and under the Microsoft communities two suggestions to that person were that there may be multiple copies installed -
    I have only the one - and that one is in the wrong place - again, I only have the one and it installed to the Hard drive (visible in Launchpad / Apps).
    Another suggestion was that there was some problem with the updates. I ran updates and they installed fine. That helper suggested that the user
    may have had different updates that worked for the other Office apps (Excel, PPT etc.) but not Word and that was at least part, if not all of his problem,
    but all my Office apps show the same update version 12.3.6, so that cannot be the issue with me.
    I've not yet tried uninstalling and reinstalling, but as I got no errors on the original install or updates, I'm not sure if that would fix it.
    I've found that Mac just doesn't play nice with some programs at all.
    And even though I have a factory installed version of Yosemite on a new, fresh hard drive, even when I booted up, my iPhoto app (which is empty) crashed. I am not sure if my iPhone or iPad was charging at the time, but I don't think so. iPhoto that I still have not even used has crashed several more times since, most notably when plugging in my iPhone / iPad to charge, namely when I declined to upload photos (by default) to DropBox. That may not be related at all, but thus far seems the only other problem I have encountered until this Word problem.
    I'm on a MacBook Pro, Sept. 2009, running OS X Yosemite 10.10.1 factory installed from Apple repairs running Office: 2008 for Mac (Home and Student edition).
    Please advise if you found a resolution and what it was.
    Thanks

  • Why does iMessages does not work properly ? Please help me ! Its works better with the previous version if compared with the latest iOS

    Why does iMessages does not work properly ? Please help me ! Its works better with the previous version if compared with the latest iOS

    Many, many thanks for both of you Todd and Rick.
    to Rick:
    I suppose you mean the Color Settings in Project Settings as follows:
    - Working Space: None
    - Match Legacy ... Gamma Adjustments checked ON
    But it does not correct the colors in effects. And checking or unchecking Make Movie/Output Module Settings/Color Management/Profile/Preserve RGB does not make any difference.
    to both of you:
    Those parts of the video image that does not have color effects are just fine. In these parts the color is preserved when reimporting to FCP. However, those parts having color effects (except Levels, as decribed earlier) have altered color results. So, only the parts having effects affecting color are misinterpreted in the image area. The mismatch is of course seen in AE, before making the movie.
    What I ment with "Color Management not working properly" is that (instead of "disabling" it) Color Management does not seem to be able to correct this "misinterpretation" or difference in effect handling between AE 6 and 10.
    So, would you have any solution for this problem?
    Again, many thanks for your fast replies!

  • I have recently upgraded my iMac Intel G5 iSight to OS 10.6.8 and now the internal mic does not work with skype or facebook. I can here static when playing back clips. Do I need to update firmware or reload old sys parts

    I have recently upgraded my iMac Intel G5 iSight (iMac5,1) to OS 10.6.8 and now the internal mic does not work with skype or facebook. I can here static when playing back clips. Do I need to update firmware or reload old system parts. I have zapped PRAM. The blue indicator in system audio panel will appear for a second as I slide the bar for internal mic but then it disappears. Is there a fix?

    The sound seems very faint but can here static on playback.

Maybe you are looking for

  • Some email addresses won't send - sometimes.

    I just upgraded to Lion. Here's my unusual issue: Some of the emails I try to send using Apple Mail get rejected by my ISP's outgoing mail server ( I am required to use the ISP's outgoing server to send mail using password authentication). I can't se

  • How to Deliver Materials for customerOrder

    hi, Can u pls tell me how to deliver material for customer order. or how to  change status of salesorder regads Guru

  • Link between qualification and course

    Hi expert, How can I know the course type and/or course if I know the qualification ?? Some BAPI, some Table ?? tks a lot, bye.

  • Some Out-Variables are not filled when one is missing (Oracle-Client 10)

    Hello everybody, we have a problem in our applications, written in C++ using OCI. All works fine with Oracle Client 8 and 9, the problem occurs when using Client 10. A simple example: select 1, 2, 3, 4, 5 from dual; I have 4 out-variables, the 3rd on

  • Resizing a box with AS

    I have a box graphic made in Flash on the screen. The size of the box is 100 pxls x 150 pxls. I also have 3 buttons on the screen. When the first button is pressed the box will resize to 200 pxl x 300 pxls. When the second box is pressed it will resi