Robotic Process Automation (RPA)

 View Only
  • 1.  Parameter 'window' missing on switching windows

    Posted Fri November 10, 2023 11:27 AM

    Hi I'm a newbie regarding RPA, just currently looking for tutorials and this is something that I saw in the samples in moving between windows, I keep getting the error "Parameter 'window' missing on command at line 5", does anybody know how to resolve this? 

    Here's my sample script


    defVar --name CalculatorWindow --type Window
    defVar --name NotepadWindow --type Window
    launchWindow --executablepath "C:\\Windows\\System32\\calc.exe" --safesearch  CalculatorWindow=value
    launchWindow --executablepath "C:\\Windows\\notepad.exe" --safesearch  NotepadWindow=value
    attachWindow --window ${CalculatorWindow}
    click --selector "IdAndName" --controlsimilarity 100 --id num6Button --name Six
    closeWindow --window ${CalculatorWindow}
    closeWindow --window ${NotepadWindow}

    Thanks



    ------------------------------
    Lloyd Nicolas
    ------------------------------


  • 2.  RE: Parameter 'window' missing on switching windows

    Posted Mon October 07, 2024 06:01 PM

    Have you ever try to attach the second window!?



    ------------------------------
    Trong Nguyen
    ------------------------------



  • 3.  RE: Parameter 'window' missing on switching windows

    Posted Tue October 15, 2024 11:02 AM

    Hi Lloyd, you must attach the window before closing or interacting with it. 



    ------------------------------
    Diego Verdier
    Software Engineer
    IGV
    Montevideo
    59898765426
    ------------------------------