Jump to content

Recommended Posts

Posted

Hi All,

I am trying to launch my application.

Run("C:\Mediabeacon.exe") and now i am unable to switch the tab and start the application by send Send("{TAB}").

Can some one please help me on this.

 

 

 

Posted

Hi All,

I am trying to launch my application by using Run command

Run("C:\Mediabeacon.exe")

and now i am unable to start my application, I code is here which i used.

Run("C:\Program Files\MediaBeacon\MediaBeacon\MediaBeacon64.exe")
WinWaitActive("MediaBeacon")
Send("^{TAB}")

Please help me on this.

Thanks in advance.

 

 

 

 

Posted

Try the following, and see what you get.

Run("C:\Program Files\MediaBeacon\MediaBeacon\MediaBeacon64.exe")
WinWaitActive("MediaBeacon", "", 10)
If WinActive("MediaBeacon", "") Then
    Send("^{TAB}")
Else
    MsgBox(0, "Result", "Failed!")
EndIf
Exit

That waits for a maximum of 10 seconds for the window to become active.

If you are trying to work with a specific button in the MediaBeacon window, then check out the Window Info Tool that comes with AutoIt.

 

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Posted

Are you sure your RUN path is correct? It looks like it could have too many instances of \MediaBeacon\

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

  • Moderators
Posted

SandhyaSuneel,

Please stick to just the one thread in future - merged.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

That was partly my fault, as I advised Sandy in the Chatbox, that here was where it should have been posted. I forgot to add, "don't repost, just ask to have it moved".

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

  • Moderators
Posted

TheSaint,

No problem.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

A couple of things.

[1] Have you been able to replicate what you need manually (tabs, etc)?

[2] That program may have a command-line facility with parameters to do what you want.

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Posted

Hi All,

  Can some one help me where i am trying to start my .exe file without manual effort. Here is my code

Run("C:\Program Files\MediaBeacon\MediaBeacon\MediaBeacon64.exe")
WinWaitActive("[CLASS:SunAwtFrame]")
Send("^{TAB}").

I am unable to switch the tab in the above Class. Please help me with it

 

 

  • Moderators
Posted

SandhyaSuneel,

You are already receiving help here - no need to start yet another thread.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)
Run("C:\Program Files\MediaBeacon\MediaBeacon\MediaBeacon64.exe")
WinWaitActive("[CLASS:SunAwtFrame]", "", 10)
If WinActive("[CLASS:SunAwtFrame]", "") Then
    Send("{TAB 2}")
EndIf

 

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

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
  • Recently Browsing   0 members

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