Documentation on GUI scripting

I am looking for some detailed documentation on GUI scripting. I am trying to figure out the click command so that I may use it in fireFox.
Robert

Chances are, your problem isn't with click because its options are very straightforward:
click
click (verb)cause the target process to behave as if the UI element were clicked (from Processes Suite)
function syntax
set theResult to click UI element ¬
at list
result
UI element
direct parameter optional UI element The UI element to be clicked.
at optional list when sent to a "process" object, the { x, y } location at which to click, in global coordinates
The problem is more likely to be how to work out the UI Element you want to click. Many applications make this less than obvious since it's often an object in a pane of a window and you need to know all the parts. If that is the case, get a copy of Prefab's UI Browser which does all the hard work of working out the UI element.

Similar Messages

  • Hidden Methods/Properties of GUI Scripting Library

    Hi
    Is it possible that there are some "hidden" Methods or Properties on several dispatch interfaces of the GUI Scripting Library? I am wondering about this as I've seen DISPID's that are used by certain client applications that are not defined in the type libraries, e.g.: 0x2F7C3F on the _Dsapfewse interface
    Is there any additional documentation about those dispatch interfaces?
    thanks

    Hi Aleh,
    you could prompt the user for user name and password from your application and then set this data through SAP GUI Scripting on the login screen.
    You could also run an event handler for EndRequest that checks if the new screen is still the login screen, but that might be confusing for a user.
    Best regards,
    Christian

  • NWBC Side Panel and SAP GUI Scripting

    Hi,
    I was hoping someone might be able to clarify the SAP GUI scripting requirements for using the NWBC side panels. In the help documentation it states:
    As of NWBC 3.5 patch level 6 or NWBC 4.0 and SAP GUI 7.20 patch level 13 or 7.30 final release, it is no longer necessary to enable SAP GUI Scripting on the client PC, except if you are using Property Collector. That means, it is no longer necessary to enable front-end scripting through registry key (HKLM and HKCU) for using side panels in NWBC. However, it is still necessary to install SAP GUI Scripting and to enable it for the server (at least read-only).
    Some of our users are getting pop up messages that say "The scripting support is not installed"... interestingly they don't actually appear to be opening a side panel when they get this message.
    I noticed that these users don't actually have SAP GUI scripting installed at all, so not that it is just not enabled, it is not installed in these cases. So does the above section from the help documentation mean that SAP GUI scripting must be installed on the client PC but it does not actually have to be enabled?
    That's how I am currently reading it... but perhaps someone can clarify for me, or someone else has had a similar experience.
    Thanks,
    Simon

    Hi Simon,
    As written in the documentation you quoted:
    Simon Kemp wrote:
    Hi,
    I was hoping someone might be able to clarify the SAP GUI scripting requirements for using the NWBC side panels. In the help documentation it states:
    As of NWBC 3.5 patch level 6 or NWBC 4.0 and SAP GUI 7.20 patch level 13 or 7.30 final release, it is no longer necessary to enable SAP GUI Scripting on the client PC, except if you are using Property Collector. That means, it is no longer necessary to enable front-end scripting through registry key (HKLM and HKCU) for using side panels in NWBC. However, it is still necessary to install SAP GUI Scripting and to enable it for the server (at least read-only).
    Meaning: SAP GUI Scripting need to be installed on the client PC, although it is not required to activate it:
    Regards,
    Claudia

  • Error in executing eCATT GUI Script

    Hi
    I am getting following error (in bold) while executing eCATT GUI Script. This happens only for GUI Scripts and not for TCD scripts. Please help me to solve this issue.
    <b>0000000195  Test Scrpt ZGUI_SCRIPT4 Version 1 - SECATT [Without Interruption]
    R01 800 SANDEEPK1 E 620 sapnw10 Windows NT MSSQL 26.05.2006 12:42:29
    ZGUI_SCRIPT4 [0,109 sec] Version 1 ZGUI_SCRIPT4
    Tgt System TEST_ECAT->ECATT_SAPNW10_800_E->T90CLNT090 (R01 800 ALEREMOTE E 620 sapnw10
    Windows NT MSSQL)
    Error in eCATT function SAPGUI
    Destination ECATT_SAPNW10_800_E RFC error
    service 'sapgw-1' unknown / CPI-C error CM_PRODUCT_SPECIFIC_ERROR.</b>
    Thanks in Advance.
    Regards,
    Sandeep K.

    Hi Sandeep,
        My self , Sreedhar D, working eCATT using SAPGUI recording.
        i think ur problem is resolved. Can u help for the below issue.
          Scenario:       
           And i working on testing server which does not have any trasaction, i have to record the transaction using RFC connection to different machine.
           I did all the that process and able to connect  remote machine.
          i started doing the recoding in SAPGUI after creation of sys. Data container by specifying RFC connection.
            I recorded the script, but when i try to execute the same this attached error r coming.
           But i recorded the same using TCD(Recorded) using remote connection and able to sucessfully execute.
           One more thing also, we used write the script for reading the test data from Excel and pass as parameters using TCD(Recording).
    Below is the error
         Target sys ECATT_SAPTD120_400_E_0002
         Destination ECATT_SAPTD120_400_E_0002 RFC Error
          Waiting for ur response. Thanks in Adavance.
    Sreedhar d

  • SAP GUI Scripting Wizzard Windows7 does not work

    Dear Experts,
    I am quite a novice when it comes to SAP GUI scripting (let alone any other development), therefore my question might be rather stupid. After my PC was migrated from XP to Windows 7 it is no longer possible to use the SAP GUI scripting wizzard. When you select it from the menue, simply nothing happens.
    Does anyone have an idea what I need to do to have this useful tool back on my PC?
    We are running SAP GUi 7.1
    Thanks for your help
    Theo

      Here is SAP GUI wizard replacement tool...its in auto IT - enjoy
    http://www.autoitscript.com/forum/topic/149540-sapwizardudf/
    I had the tech guys here install ,  the latest GUI patch level 15,
    and the script development tools not working issue has been fixed
    They (SAP?) removed the 'script development tools' menu option!?
    I have not installed the MS hotfix, but
    My question is,  it true the 'Script development tools' is gone?
    Other methods
    a) This (free) non SAP solution seems to work however...any other ideas?
    Scripting Tracker Lite
    http://scn.sap.com/docs/DOC-32728
    b) The Activate GuiXT tool in SAP GUI also does give you some clues in the element window
    and could be an alternative way , to get control names.
    eg a radio button is R[P_CONTROL_ID] when it should be radP_CONTROL_ID
    c) The SAP script recording and playback ,  to a vbs script will give you the control names also, if you edit the script.
    You must of course have GUI scripting on in rz11
    I can't read this note https://service.sap.com/sap/support/notes/1633639 - need a password!

  • Variables in a SAP GUI Script

    Hi All,                                                                                -
    Can somebody tell me, how can I use a variable instead of hardcoded value into a SAP GUI script?
    Because the recorded file is a vbs-file, I have tried to declare a variable as usual:
    Dim Count As Integer
    Count  = 58
    But when I try to execute the updated script, even without assigning the Count variable to any places from the script, an error occurs u2013 u2018expected end of statementu2019 (the same error also occurs if I use Count instead of 58). Actually I want to replace all occurrences of number 58 in the script below. Can anybody help me?
    Thanks,
    Svetlana
    If Not IsObject(application) Then
       Set SapGuiAuto  = GetObject("SAPGUI")
       Set application = SapGuiAuto.GetScriptingEngine
    End If
    If Not IsObject(connection) Then
       Set connection = application.Children(0)
    End If
    If Not IsObject(session) Then
       Set session    = connection.Children(0)
    End If
    If IsObject(WScript) Then
       WScript.ConnectObject session,     "on"
       WScript.ConnectObject application, "on"
    End If
    session.findById("wnd[0]").maximize
    session.findById("wnd[0]/usr/tabsTS_SCRIPT_EDITOR_0202/tabpECSC_ED/ssubTR_SCRIPT_REF1:SAPLECATT_MAIN:0402/cntlCC_ECSC_EDITOR/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell").contextMenu
    session.findById("wnd[0]/usr/tabsTS_SCRIPT_EDITOR_0202/tabpECSC_ED/ssubTR_SCRIPT_REF1:SAPLECATT_MAIN:0402/cntlCC_ECSC_EDITOR/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell").currentCellColumn = "DATA"
    session.findById("wnd[0]/usr/tabsTS_SCRIPT_EDITOR_0202/tabpECSC_ED/ssubTR_SCRIPT_REF1:SAPLECATT_MAIN:0402/cntlCC_ECSC_EDITOR/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell").contextMenu
    session.findById("wnd[0]/usr/tabsTS_SCRIPT_EDITOR_0202/tabpECSC_ED/ssubTR_SCRIPT_REF1:SAPLECATT_MAIN:0402/cntlCC_ECSC_EDITOR/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell").modifyCell 0,"DATA","M_FORMOFADDR"
    session.findById("wnd[0]/usr/tabsTS_SCRIPT_EDITOR_0202/tabpECSC_ED/ssubTR_SCRIPT_REF1:SAPLECATT_MAIN:0402/cntlCC_ECSC_EDITOR/shellcont/shell/shellcont[0]/shell").insertRows "58"
    session.findById("wnd[0]/usr/tabsTS_SCRIPT_EDITOR_0202/tabpECSC_ED/ssubTR_SCRIPT_REF1:SAPLECATT_MAIN:0402/cntlCC_ECSC_EDITOR/shellcont/shell/shellcont[0]/shell").modifyCell 58,"PNAME","M_FORMOFADDR"
    session.findById("wnd[0]/usr/tabsTS_SCRIPT_EDITOR_0202/tabpECSC_ED/ssubTR_SCRIPT_REF1:SAPLECATT_MAIN:0402/cntlCC_ECSC_EDITOR/shellcont/shell/shellcont[0]/shell").modifyCell 58,"PTYP","I"
    session.findById("wnd[0]/usr/tabsTS_SCRIPT_EDITOR_0202/tabpECSC_ED/ssubTR_SCRIPT_REF1:SAPLECATT_MAIN:0402/cntlCC_ECSC_EDITOR/shellcont/shell/shellcont[0]/shell").setCurrentCell 58,"PTYP"
    session.findById("wnd[0]/usr/tabsTS_SCRIPT_EDITOR_0202/tabpECSC_ED/ssubTR_SCRIPT_REF1:SAPLECATT_MAIN:0402/cntlCC_ECSC_EDITOR/shellcont/shell/shellcont[0]/shell").firstVisibleRow = 53
    session.findById("wnd[0]/usr/tabsTS_SCRIPT_EDITOR_0202/tabpECSC_ED/ssubTR_SCRIPT_REF1:SAPLECATT_MAIN:0402/cntlCC_ECSC_EDITOR/shellcont/shell/shellcont[0]/shell").pressEnter
    Edited by: Svetlana Balinova on Jul 21, 2009 3:12 PM
    Edited by: Svetlana Balinova on Jul 21, 2009 3:13 PM

    Hi Svetlana,
    if I have understood correctly, could it be that the following link you could use a bit:
    Referencing a variable in 'session findbyId' command (SAP GUI Scripting)
    Regards,
    ScriptMan

  • Calling GUI Scripting from ABAP program

    Is it possible to call GUI Scripting from ABAP and thus to use GUI Scripting as an alternative to CALL TRANSACTION?
    Is the class CL_JAVA_SCRIPT suitable to access GUI Scripting engine? Accessing ABAP data object would work as well in this case as i think. What SAP Logon and WAS releases are required? Is the 6.20 release sufficient for this case?
    I would appreciate if somebody could post an example.

    Hi,
    CL_JAVA_SCRIPT has nothing to do with SAPGUI Scripting.
    Calling SAPGUI Scripting API from ABAP could be possible for programmes experienced with OLE automation calls from ABAP coding.
    The hardest thing will be, to access the scripting engine handle as an entry point. Once you have a handle in your abap session, any api function can be invoked.
    Best regards
    Jens
    BTW: SAP testtool eCATT does call SAPGUI-Scripting from ABAP.

  • AppleScript GUI scripting problem.

    Hi All,
    I've created a script that will automatically open new document in Indesign CS2. But when i run the script i'm getting system events error as "NSReceiverEvaluationScriptError: 4". I tried following the instruction given in forums but still couldn't figure out. Below is the script i wrote. Can any one tell where and what i'm missing.
    tell application "Adobe InDesign CS2" to activate
    tell application "System Events"
    tell process "Adobe InDesign CS2"
    tell menu bar 1
    tell menu bar item "File"
    tell menu "File"
    tell menu item "New"
    tell menu "New"
    click menu item "Document"
    end tell
    end tell
    end tell
    end tell
    end tell
    click button "Ok" of window 1
    end tell
    end tell
    This is the submenu of menu New. This might be the problem cos the below script works for for which i'm clicking the menu not sub menu
    tell application "Adobe InDesign CS2" to activate
    tell application "System Events"
    tell application process "Adobe InDesign CS2"
    tell menu bar 1
    tell menu bar item "Help"
    tell menu "Help"
    click menu item "Welcome Screen..."
    end tell
    end tell
    end tell
    end tell
    end tell
    My Mac version 10.4.10
    Any help would be appreciated.
    -Jacintha

    Using GUI scripting is the road to madness; it's for emergency use only.<br />Try:<br /><br />tell application "Adobe InDesign CS2"<br />make document<br />end tell<br /><br />-- <br />Shane Stanley <[email protected]>

  • SAP GUI Scripting: Script Is Running.....Help!

    Hello all,
    I'm new to the forums and have an SAP question problem. I'm an end user of SAP and have been using it since 2002. A couple of weeks ago when I logged into SAP I noticed a red/white icon in the lower right corner of my screen. When I hover over it it says "SAP GUI Scripting: Script Is Running". The problem is, I have never created a script. When I start working in SAP I have noticed a lot of the screens have a different format now and I get a lot of ABAP errors.
    After doing some research I found under "Customize Local Layout", "Options" I can uncheck the box "Enable Scripting". I click "Apply" and "OK". Now the red/white icon goes away in the lower right corner and all my screens go back to normal with no ABAP errors.
    The problem now is that every minute or two I get a pop up window that says "Scripting support is disabled by the user".
    Has anyone else had this problem?
    1. I've never created a script. Why is one running now?
    2. Is there a way to stop the pop up message "Scripting support is disabled...." if I uncheck "Enable Scripting"?
    Thanks for any feedback

    Here's the properties of the connection....
    http://www.lstwo.com/images/97735141499811194923.jpg
    http://www.lstwo.com/images/27092678568585605702.jpg
    http://www.lstwo.com/images/02572789823840845106.jpg
    Here's the properties of the desktop icon....
    http://www.lstwo.com/images/36703668322706084468.jpg
    http://www.lstwo.com/images/40729387005252851113.jpg
    http://www.lstwo.com/images/48149337890555671928.jpg
    I agree, I'm stumped. I even tried looking through the SAP entries in my registry to see if I could find anything. It's a bit confusing but I didn't see anything out of place.

  • Simple GUI script with a list

    Good day
    As my first Powershell project i'd like to write a script which will present to the user a GUI with a list of servers. The user then chooses a server and on click of the OK button connects to it with MSTSC. The window can look like this:
    Probably a script accomplishing a similar task already exists. Can you point it out? Also i'd like to learn more about developing specifically GUI scripts. Can you direct me to a source of information on that subject? A book maybe?
    Regards
    Kamil

    I know you want to learn how to build GUI, but what you asked for can actually be accomplished with just a few lines of code. The downside is you will not have any control over the layout.
    You can load the list of servers from CSV:
    $CSV = @"
    "Name","OperatingSystem","Description"
    "SERVER01","Windows Server 2008 R2","File Server"
    "SERVER02","Windows Server 2012 R2","Domain Controller"
    "SERVER03","Windows Server 2012","Print Server"
    $Servers = ConvertFrom-Csv $CSV
    $Servers | Out-GridView -Title "Select a server" -PassThru | Select Name |
    %{Start-Process "$env:windir\system32\mstsc.exe" -ArgumentList "/v:$($_.Name)"}
    Or you can get them directly from Active Directory:
    Get-ADComputer -Filter 'Name -like "SERVER*"' -Properties OperatingSystem, Description |
    Select Name, OperatingSystem, Description |
    Out-GridView -Title "Select a server" -PassThru | Select Name |
    %{Start-Process "$env:windir\system32\mstsc.exe" -ArgumentList "/v:$($_.Name)"}

  • Tool Tip / GUI-script battle

    I've got a slider that invokes a handler that performs some AppleScript GUI scripting ( ... unfortunate, yes, but there's no other way.)
    The slider has a Tool Tip.
    If I click and drag outside of the slider's mouseDown region, no problem. The GUI stuff works as expected.
    If I drag inside the slider's mouseDown region, the ToolTip appears at it designated time, as if I were hovering. This causes a NSReceiverEvaluationScriptError: 4 (1) error. Certainly makes sense that I'd get an error when the Tool Tip comes to the front. But I'm confused as to why it appears. None of my non-GUI related sliders have this problem.
    Suggestions?
    Here are a few other Tool Tip questions:
    1) Can I increase or decrease the display length for all tool tips?
    2) Is it possible to keep tool tips visible indefinitely while the user hovers the mouse over the object, closing on mouseLeave?
    3) Can I toggle all Tool Tips to enabled or disabled?
    Thanks, John

    I've got a slider that invokes a handler that
    performs some AppleScript GUI scripting ( ...
    unfortunate, yes, but there's no other way.)
    The slider has a Tool Tip.
    If I click and drag outside of the slider's mouseDown
    region, no problem. The GUI stuff works as expected.
    If I drag inside the slider's mouseDown region, the
    ToolTip appears at it designated time, as if I were
    hovering. This causes a
    NSReceiverEvaluationScriptError: 4 (1) error.
    Certainly makes sense that I'd get an error when the
    Tool Tip comes to the front. But I'm confused as to
    why it appears. None of my non-GUI related sliders
    have this problem.
    Suggestions?
    Just noticed: on another computer (a powerBook) I get the NSReceiver error at any click or drag. Cleaned all targets and got the same result.
    I set a one second delay to make sure the GUI window gets time to come to the front but to no avail. There's a error at every click or drag.
    John

  • Executing SAP GUI Script From a Web Page

    I have an issue when trying to execute some javascript (sap gui script) from a webpage. 
    When the javascript is executed I get the message:
    automation server unable to create object. 
    However, this exact same javascript when placed in a text file and double-clicked executes just fine through the windows scripting host. 
    Does anyone have an example of gui script code executing from a webpage?  Or any ideas on why it isn't working from the webpage?  Both scenarios should be executing the code on the local machine through WSH.
    Below is the javascript as well as the webpage executing the javascript:
    SAPGUI SCRIPT
    if (typeof(application) == "undefined")
       sapgui      = GetObject("SAPGUI");
       application = sapgui.GetScriptingEngine;
    if (typeof(connection) == "undefined")
       connection = application.children(0);
    if (typeof(session) == "undefined")
       session = connection.children(0);
    if (typeof(WScript) != "undefined")
       WScript.connectObject(session, "on");
       WScript.connectObject(application, "on");
    session.findById("wnd[0]").maximize();
    session.findById("wnd[0]/tbar[0]/okcd").text = "/nzsd1067";
    session.findById("wnd[0]").sendVKey(0);
    session.findById("wnd[0]/usr/ctxtVBAK-KUNNR").text = "6343";
    session.findById("wnd[0]").sendVKey(0);
    WEBPAGE
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
         <head>
              <title></title>
              <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
              <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
              <! INPUT PARAMETER SETTINGS:
              To Push data to Siebel or SAP the appropriate
              field below must be set = TRUE.
              Pop_SAP
              Pop_Siebel
              SIEBEL INPUT PARAMETER: When
              Pushing data to a Siebel screen the Query_Type should be set based on the type
              of lookup that is requested.
              Query_Type = 'SAP' -presents a screen based on a customer SAP Id.
              Query_Type = 'SR' -presents a screen based on a Service Request.
              Query_Type = '' or null -presents a search screen to locate the proper contact in Siebel
              APP_SAP_ID -SAP customer Id
              APP_SR_NUM -Siebel Service Request Number
              >
    <SCRIPT LANGUAGE="VBScript">
    Sub LoadContact()
            'Siebel Application Object
            Dim siebApp 'As SIEBELHTMLLib.ISiebelHTMLApplication
            Dim siebSvcs 'As SIEBELHTMLLib.ISiebelService
            Dim siebOutputPropSet 'As SIEBELHTMLLib.ISiebelPropertySet
            Dim siebInputPropSet 'As SIEBELHTMLLib.ISiebelPropertySet
            Dim bool 'As Boolean
            Dim errCode 'As Integer
            Dim errText 'As String
            Dim QueryType 'As String
         Dim PopSAP 'As String
         PopSiebel = "TRUE"
         If PopSiebel = "TRUE" Then
              QueryType = "SAP"
              If QueryType = "null" Then
                   QueryType = ""
              End If
                 'Create The SiebelHTML Object      
                 set siebApp = CreateObject("SiebelHTML.SiebelHTMLApplication.1")  
                 If Not siebApp Is Nothing Then
                     'Create A New Property Set
                     set siebInputPropSet = siebApp.NewPropertySet
                     set siebOutputPropSet = siebApp.NewPropertySet
                     If Not siebInputPropSet Is Nothing Then
                         siebInputPropSet.SetProperty "ANI", "9738986011"
                         siebInputPropSet.SetProperty "SAP_ID", "0000516616"
                         siebInputPropSet.SetProperty "SR_NUM", "null"
                         siebInputPropSet.SetProperty "Interaction_ID", "168608840053"
                         siebInputPropSet.SetProperty "Query_Type", QueryType
                     Else
                         errCode = siebApp.GetLastErrCode
                         errText = siebApp.GetLastErrText
                             MsgBox "Could not Create Siebel Property Set: " & errCode & "::" & errText
                     End If
                     'Get A Siebel Service
                     set siebSvcs = siebApp.GetService ("TAWBS")
                     If Not siebSvcs Is Nothing Then
                         siebSvcs.InvokeMethod "TAWPresentAccount", siebInputPropSet, siebOutputPropSet
                  Else
                         errCode = siebApp.GetLastErrCode
                         errText = siebApp.GetLastErrText
                   MsgBox "Could not Get Siebel Service: " & errCode & "::" & errText
                         End If
                     set siebApp = Nothing
                 End If
                 set siebInputPropSet = Nothing
                 set siebOutputPropSet = Nothing
                 set siebSvcs = Nothing
         End If 
    End Sub
    </SCRIPT>
    <SCRIPT LANGUAGE="javascript">
    function loadSAP()
         if (typeof(application) == "undefined")
              sapgui      = GetObject("SAPGUI");
              application = sapgui.GetScriptingEngine;
         if (typeof(connection) == "undefined")
              connection = application.children(0);
         if (typeof(session) == "undefined")
              session = connection.children(0);
         if (typeof(WScript) != "undefined")
              WScript.connectObject(session, "on");
              WScript.connectObject(application, "on");
         session.findById("wnd[0]").maximize();
         session.findById("wnd[0]/tbar[0]/okcd").text = "/nzsd1067";
         session.findById("wnd[0]").sendVKey(0);
         session.findById("wnd[0]/usr/ctxtVBAK-KUNNR").text = "0000516616";
         session.findById("wnd[0]").sendVKey(0);
    } // end
    </SCRIPT>
    </head>
         <body onload="loadSAP()">
              <H3><FONT face="Arial" size="5">Raytheon Integration Screen</FONT></H3>
              <HR style="WIDTH: 882px; HEIGHT: 8px" color="#3366cc" SIZE="8">
              <form id="ValidForm" onsubmit="LoadContact(); return false;" language="jscript">
                   <FONT face="Arial">Load Siebel Screen</FONT> <! <input name="Text1" TYPE="TEXT"
                   SIZE="10" ID="Text1"> <input name="Submit" TYPE="submit" VALUE="Submit" ID="Submit1">
              </form>
              <form id="Form1" onsubmit="loadSAP(); return false;" language="javascript">
                   <FONT face="Arial">Load SAP Screen</FONT>    <! <input
                   name="Text2" TYPE="TEXT" SIZE="10" ID="Text2"> <input name="Submit" TYPE="submit" VALUE="Submit" ID="Submit2">
              </form>
         </body>
    </html>

    Hi Bernd,
    the following code works in VBS. If you run saplogon.exe you'll get a message box saying '/app'.
    Set Wrp = CreateObject ("SapROTWr.SapROTWrapper")
    Set SapGui = Wrp.GetROTEntry ("SAPGUI")
    Set application = sapgui.GetScriptingEngine
    MsgBox application.id
    I haven't tried it on a web page, but I don't see why it shouldn't work there. Ok, maybe the MsgBox is command is not available.
    Best regards,
    Christian

  • Having trouble GUI scripting

    Hi there,
    I'm trying to script a small app called Deeper (that doesn't work natively with ascript).
    I tried GUI scripting with apple script editor but I'm not how it works so I put that aside and went trying with UI Element Inspector.
    So I'm trying to select something from a scroll menu, and then click a start button.
    What it does is it activates the Flurry screensaver as a background, but some bugs turn it off, so I wanted that by running this script, it would use Deeper to turn it back on without having to do it manually.
    I tried as best as I can to stick with the example given in the UIElementInspector page, but I am really a starter in scripting.
    First, I did:
    tell application "Deeper"
    activate
    end tell
    tell application "System Events"
    tell process "Deeper"
    tell menu "PopUpButton"
    But then I found out there was no way to distinguish that pop up menu from others (with UIElementInspector) other than by the size and location of the menu in the app.
    So first I'd need help finding out how to tell the script wich menu to go check in, and then probably stick with the example page.
    As you can see, I'll really trying to learn applescript from the start, because it looks so useful.
    Thanks to anyone for helping!

    You shouldn't need this:
    "open application file "Deeper.app" of folder "Applications" of startup disk"
    as this activates your app for you:
    "activate application "Deeper""
    activate application "Deeper"
    delay 1
    tell application "System Events"
    tell process "Deeper"
    click button "General" of tool bar 1 of window "Deeper"
    delay 0.5
    tell pop up button 4 of window "Deeper"
    click
    click menu item "Flurry" of menu 1
    end tell
    delay 0.5
    click button "Start" of window "Deeper"
    delay 0.5
    tell application "Finder"
    quit application "Deeper"
    end tell
    end tell
    end tell
    Budgie

  • Save report to MHTML format using Gui script

    hello all,
    how can i save a report in .MHTML format using Gui Script.  I am not able to record the "Save as" dialog box option with guiscripts.  i am on ECC 6
    thansk in adv.
    Kris

    Hi Script Man,
    I am having a similar issue to export to MHTML using SAP Scripting. I created a macro that open SAP GUI and do the required transaction. However, I got stuck exporting to MHTML. The code must save as MHTML in the path described below and then open the "export.MHTLM" file.
    This is the code I have until now:
    Sub SAPScripting_exportMHTML()
    Set app = CreateObject("Sapgui.ScriptingCtrl.1")
    Set Connection = app.OpenConnection("# E05 - R/3 - Produção", True)
    Set Session = Connection.Children(0)
    'Code to login on SAP GUI and do desired transaction:
    Session.findById("wnd[0]/usr/txtRSYST-BNAME").Text = "C2MARCOSEC"
    Session.findById("wnd[0]/usr/pwdRSYST-BCODE").Text = "*******"
    Session.findById("wnd[0]/usr/pwdRSYST-BCODE").SetFocus
    Session.findById("wnd[0]/usr/pwdRSYST-BCODE").caretPosition = 8
    Session.findById("wnd[0]").sendVKey 0
    Session.findById("wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell").selecedNode = "F00003"
    Session.findById("wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell").doubleClickNode "F00003"
    Session.findById("wnd[0]/tbar[1]/btn[8]").press
    Session.findById("wnd[0]/tbar[1]/btn[17]").press
    Session.findById("wnd[1]/tbar[0]/btn[8]").press
    Session.findById("wnd[0]/tbar[1]/btn[8]").press
    'This is where I try to export to MHTML:
    Path = "D:\Users\est.marcosec\Desktop\Marcos\SAP - Script\export.MHTML"      'The "export.MHTML" file already exists
    Set Wshell = CreateObject("WScript.Shell")
    Wshell.Run """D:\Users\est.marcosec\Desktop\Marcos\SAP - Script\save_as.vbs """ & Path
    Session.findById("wnd[0]/tbar[1]/btn[16]").press
    End Sub
    It would be great to get this code done. I send several reports everyday. This will save a lot of time.
    Best Regards,
    Marcos Eickhoff Cortopassi

  • Need help with GUI Scripting Audio Midi Setup

    I want to read the value of the sampling frequency set by default in Audio Midi Setup.
    If there is an easy unix way to gleen this, please let me know. Otherwise, I am trying to get it via GUI scripting. I think I am almost there, but am doing something stupid.
    Here is what I have:
    tell application "Audio MIDI Setup"
    activate
    end tell
    tell application "System Events"
    activate
    tell application process "Audio MIDI Setup"
    select window 1
    select group
    select tab group
    select group
    select combo box
    set FrequencyValue to contents of combo box
    end tell
    end tell
    Basically, this comes down to the question of how to extract the default text field from the combo box.

    Once you click on the combo box to get the list of items, you can do stuff with the results. The easiest thing would probably be to use the up and down arrows to change the selection, since the text field is not editable. You can compare the list of items with the current value and do something from there - how do you plan to choose the item to change to?
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Audio MIDI Setup" to activate
    tell application "System Events" to tell application process "Audio MIDI Setup"
    set comboBox to combo box 1 of group 1 of tab group 1 of group 1 of window "Audio Devices"
    set frequencyValue to value of comboBox -- get current value
    click button 1 of comboBox -- perform action "AXPress" to drop the list
    set theChoices to value of text fields of list 1 of scroll area 1 of comboBox -- get all the values
    -- keystroke (ASCII character 31) -- down arrow
    -- keystroke (ASCII character 30) -- up arrow
    -- keystroke return -- select and dismiss the list
    end tell
    activate me
    choose from list theChoices default items {frequencyValue} -- just show the results
    </pre>

Maybe you are looking for

  • Pricing procedure - Formula / Requirement

    Hello, I have a requirement for sales and distribution as follows: Condition ZXXX has the price of the material determined  by an access sequence Another condition type (YXXX) has to be reported and it´s value should be calculated as follows: YXXX =

  • Problem in restoring my iPhone 4

    HI... I tried to restore and update my phone software, itunes downloaded the software and it automatically updated the phone's it. Now during the initial configuration of the phone, it says that the software cannot be registered at the moment and tel

  • IPad Calendar issues on business

    Secnario: Manager has business iPad and she keeps getting the Corporate Calandar Inbox showing up with numeric digit of appointments and meeting on Inbox, however she don't want it to show the number on the Inbox because her assistant is a delegate t

  • The selected original image is either offline or not found. Please reconnect it and try again.

    Hi to all, This is my first time here. I am having a problem that I've never had before. I am attempting to upload images to Flickr, which I do daily without trouble. However, this time I'm getting the message: "The selected original image is either

  • How do I get a replacement heatsink for T61

    I have a T61 Thinkpad (7658CTO), for which the heatsink is gone. I need to a spare one. How do I get it in India? The toll free numbers 1800-3070-7555 1800-425-2666 dont work, if the laptop is out of warranty. They hang up if you say your laptop is o