Jump to content

First time user


 Share

Recommended Posts

I am a new user with scripting and am trying to run an application from with in Firedaemon. Support suggested I use Autoit to run a script, which I have. The Problem is that when I run the script to see if it opens the correct window, it open the Recylce bin.

Her is the syntax I used in my script. I had to add 2 extra Send("{TAB}") commands to focus on the useraname filed within the login window, as the focus begins at the OK button.

; Set focus on the window

WinActivate("Roomview Login - Roomview")

; This assumes focus is on the "Username" field

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("roomview")

; Tab to the "Password" field

Send("{TAB}")

Send("R!sol7tn")

; Tab to the OK button and press it

Send("{ENTER}")

Link to comment
Share on other sites

you can use the WinWaitActive

or the WinActivate

WinActivate ("YourTitle", "Text (optional)")

and if that helps, you can also use the Winsetontop command to

prevent that you accidently press the mouse button so it will click on an other window

WinSetOnTop ( "title", "text", flag )

i can't help you fully, because i'm at a friend's house,

-me

Link to comment
Share on other sites

Thanks all for your generosity and assistance, but I still can't get past having the script do the send command. If I use the WinActivate command, the login window opens then maximizes whatever other window I have minimized and sets the focus on that window. There is a Login section in this window where I want to enter the user name and pswd and then press enter to run the app, but as I stated I can't even get to the user name.

;Run Roomview

Run("c:\program files\roomview\roomview.exe")

; Set focus on the window

WinActivate("Roomview Login - Roomview", "Login")

; This assumes focus is on the "Username" field

Send("roomview")

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...