Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Embedding the second window if program asks you to hit OK

  1. #1
    FLAC -zip-'s Avatar
    Join Date
    Sep 2004
    Location
    Ontario/Canada
    Posts
    1,293

    Embedding the second window if program asks you to hit OK

    How do you do this?

    You run a program, but the window you want to embed does not pop up first. The first window is a trial screen, or a warning or in my case the window asks you if you want to restart the program, you have to hit OK that window then closes and the program window that you want then opens.

    I get the Load, Run, Sendkey to close the first window. But how do I embed the second window when it pops?

    Question 2

    This program runs when Winamp starts it is a plug in, but also has an exe file. For some reason I can not set it up so that it will not start with Winamp no matter how I try.

    Is there a way to close it while RR starts? Does RR have a file where you can close things while it begins to run using the same commands that the skins accept or autoIt?
    2008 350z GT Installed since April 22nd 2011 - Worklog
    2000 Protege Installed Since April 2, 2005 - Intel D201GLY|Fusion Brain|ODBPros ODBII|Engenius|GPS Rikaline|Powermate|Motorized Lilli
    Sound Stage
    Eclipse|MTX|Infinity

  2. #2
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,626
    give us more details on the window names for the first one. ie are they the same or different. use winspector to find them out if necessary

    2

    startcommand =

    is in the ini file

  3. #3
    FLAC -zip-'s Avatar
    Join Date
    Sep 2004
    Location
    Ontario/Canada
    Posts
    1,293
    Thanks Enforcer for the startcommand=

    Yes the windows are different. The first class name is like #20567 and is constant it does not change the window name with a new instance.

    The second window class name is MiniLyrics... this is the window I want to embed.

    I have been able to embed both no problem, but my choices so far have been hit the OK manually and Minilyrics embeds

    or

    embed #20567, sendkey (enter) it then closes. But no focus on the Minilyrics window.
    2008 350z GT Installed since April 22nd 2011 - Worklog
    2000 Protege Installed Since April 2, 2005 - Intel D201GLY|Fusion Brain|ODBPros ODBII|Engenius|GPS Rikaline|Powermate|Motorized Lilli
    Sound Stage
    Eclipse|MTX|Infinity

  4. #4
    Raw Wave
    Join Date
    Jun 2004
    Location
    On the beach
    Posts
    2,223
    Download AutoIT from www.hiddensoft.com, it is a really good scripting language which is used a lot for automated installs. It lets you do keypresses and mouse clicks virtually and best of all it can create .exe files of the script.

    This means you can start the application using an AutoIT script exe, perform a few mouse clicks and then embed into RR.

    Give it a try, might work.

  5. #5
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,626
    Quote Originally Posted by -zip-
    Thanks Enforcer for the startcommand=

    Yes the windows are different. The first class name is like #20567 and is constant it does not change the window name with a new instance.

    The second window class name is MiniLyrics... this is the window I want to embed.

    I have been able to embed both no problem, but my choices so far have been hit the OK manually and Minilyrics embeds

    or

    embed #20567, sendkey (enter) it then closes. But no focus on the Minilyrics window.

    try using the activate after the sendkey (enter)


    "ACTIVATE" - This allows you to focus an application based on a given window title. This should provide you with
    specific support to activate any open window and imediately send in hotkey commands with "SENDKEY".
    Example: "ACTIVATE;Notepad"

  6. #6
    FLAC -zip-'s Avatar
    Join Date
    Sep 2004
    Location
    Ontario/Canada
    Posts
    1,293
    Quote Originally Posted by Enforcer
    try using the activate after the sendkey (enter)


    "ACTIVATE" - This allows you to focus an application based on a given window title. This should provide you with
    specific support to activate any open window and imediately send in hotkey commands with "SENDKEY".
    Example: "ACTIVATE;Notepad"
    hmm I tried ACTIVATE last week and it was a no go, but I'll play around with it again perhaps i have the syntax screwed up.


    I have used Autoit in the past, if push comes to shove I will give it a go.
    2008 350z GT Installed since April 22nd 2011 - Worklog
    2000 Protege Installed Since April 2, 2005 - Intel D201GLY|Fusion Brain|ODBPros ODBII|Engenius|GPS Rikaline|Powermate|Motorized Lilli
    Sound Stage
    Eclipse|MTX|Infinity

  7. #7
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,626
    Quote Originally Posted by -zip-
    hmm I tried ACTIVATE last week and it was a no go, but I'll play around with it again perhaps i have the syntax screwed up.


    I have used Autoit in the past, if push comes to shove I will give it a go.
    There is also the GETFOCUS Command

    ie

    "ACTIVATE;Notepad||GETFOCUS"

  8. #8
    FLAC -zip-'s Avatar
    Join Date
    Sep 2004
    Location
    Ontario/Canada
    Posts
    1,293
    Quote Originally Posted by Enforcer
    give us more details on the window names for the first one. ie are they the same or different. use winspector to find them out if necessary

    2

    startcommand =

    is in the ini file
    OK i got part one using an autoIT script works now and keeps focus.

    Enforcer the startcommand =
    which ini do I put it in? I did another AutoIT script to close Minilyrics down. I put it in the ExecTBL.ini like this:

    startcommand=C:\Program Files\Road Runner\skins\zotsnight\Tools\closemini.exe

    I 'ed on startcommand but only this thread and one other mentions it. Do I need quotes? and am I in the correct ini?
    2008 350z GT Installed since April 22nd 2011 - Worklog
    2000 Protege Installed Since April 2, 2005 - Intel D201GLY|Fusion Brain|ODBPros ODBII|Engenius|GPS Rikaline|Powermate|Motorized Lilli
    Sound Stage
    Eclipse|MTX|Infinity

  9. #9
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,626
    put it in anywhere in the the rr.ini

    although I would define a commnd in the ExecTBL.ini file and then call that command from the startcommand

    ie

    in the ExecTBL.ini put a line

    "CLOSEMINI","RUN;C:\Program Files\Road Runner\skins\zotsnight\Tools\closemini.exe"


    and then in rr.ini put a line

    startcommand=CLOSEMINI




    Read the skin commands.txt file to see other run options RUNQ and RUNW

  10. #10
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,170
    Blog Entries
    52
    Quote Originally Posted by -zip-
    OK i got part one using an autoIT script works now and keeps focus.

    Enforcer the startcommand =
    which ini do I put it in? I did another AutoIT script to close Minilyrics down. I put it in the ExecTBL.ini like this:

    startcommand=C:\Program Files\Road Runner\skins\zotsnight\Tools\closemini.exe

    I 'ed on startcommand but only this thread and one other mentions it. Do I need quotes? and am I in the correct ini?

    Off topic but can you share that autoit script? I'm goin thru the same thing and i dont know how to script it correctly.

Page 1 of 2 12 LastLast

Similar Threads

  1. How to embbed any Application in RR ?
    By guino in forum RR FAQ
    Replies: 0
    Last Post: 03-20-2005, 12:35 PM
  2. What Have you hit or missed on the freeway ????
    By will1384 in forum Off Topic
    Replies: 29
    Last Post: 03-05-2005, 08:24 AM
  3. Running a program inside a program
    By CaffeineAddict in forum Software & Software Development
    Replies: 10
    Last Post: 10-16-2002, 03:26 AM
  4. Will someone help me program my relay control module
    By cproaudio in forum Software & Software Development
    Replies: 6
    Last Post: 09-04-2002, 04:50 AM
  5. charchter lcd program?
    By Jaymz in forum Software & Software Development
    Replies: 1
    Last Post: 02-15-2001, 07:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •