Announcement

Collapse
No announcement yet.

$50 Challenge

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Corey
    replied
    Re: $50 Challenge

    Now that's community! Brings a tear to me tired old Irish eyes, sniffle... [img]/ubbthreads/images/icons/smile.gif[/img]

    Corey Milner
    Creative Director, Indigo Rose Software

    Leave a comment:


  • Worm
    replied
    Re: $50 Challenge

    Don't worry about that, sorry I didn't think of it sooner.

    Thanks for the offer anyhow.

    Leave a comment:


  • thesven
    replied
    Re: $50 Challenge

    Worm, your tip here seems to work!

    Where do I send the $50? Let me know please and thanks!

    Leave a comment:


  • thesven
    replied
    Re: $50 Challenge

    Tigger,

    I used your code here (as I thought this was the way to do it early on) but it does not work for me. Although you see the app in your taskbar as DWB there is no window called DWB.

    That is the error I receive (could not find the window DWB)

    <IR_ACTIONS_LIST>
    <Action name="Execute">
    <Type>8</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <FileName>%SrcDir%\test.exe</FileName>
    <CommandLine/>
    <WorkingDir/>
    <RunMode>0</RunMode>
    <WaitForReturn>0</WaitForReturn>
    </Action>
    <Action name="Find">
    <Type>127</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <FindText>DWB</FindText>
    <Variable>%hWnd%</Variable>
    </Action>
    <Action name="Minimize">
    <Type>3</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <HWnd>%hWnd%</HWnd>
    </Action>
    </IR_ACTIONS_LIST>

    is the code I tested with

    Leave a comment:


  • TJ_Tigger
    replied
    Re: $50 Challenge

    This worked for me to minimize the application when it was open. I got the title from the start bar, it shows it as "DWB" and then I did a find to make sure it was open and then minimized it.

    <IR_ACTIONS_LIST>
    <Action name="Find">
    <Type>127</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <FindText>DWB</FindText>
    <Variable>%hWnd%</Variable>
    </Action>
    <Action name="Minimize">
    <Type>3</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <HWnd>%hWnd%</HWnd>
    </Action>
    </IR_ACTIONS_LIST>

    Leave a comment:


  • Lorne
    replied
    Re: $50 Challenge

    Use Worm's idea.

    Leave a comment:


  • thesven
    replied
    Re: $50 Challenge

    I've tried Corey's suggestion here but it doesn't work for me either.

    Here are the two files anyone can test with.
    http://www.promomeals.com/am4/test.exe (right click after opening to get a menu)
    http://www.promomeals.com/am4/Electro-Hop - 98 BPM 001_128.mp3

    (any mp3 file will do for testing)

    Thanks!

    Leave a comment:


  • Worm
    replied
    Re: $50 Challenge

    Certainly would work, but the problem seems to be (this is from the previous post) that the EXE that is launched doesn't have a title bar. We tried using Window.GetTitles and looking through the Titles to figure out its title, but had no luck.

    Leave a comment:


  • TJ_Tigger
    replied
    Re: $50 Challenge

    I was thinking as well that if you wanted the MP3 to start after the exe launched you might want to add a WHILE loop to watch for the window to be started. Once it sees that the window is up and running, it can then break the loop and start the MP3 and do what ever else it is you want it to do.

    Leave a comment:


  • Worm
    replied
    Re: $50 Challenge

    Either I finaly am understanding what you are doing, or I'm way off base.

    Why not do something like this. Use AMSs MP3 player to play the MP3, then launch the EXE with the Wait option, then stop the MP3.

    Window.Minimize (%MenuHWnd%)
    MP3.Load ("%SrcDir%\YourMP3.mp3")
    MP3.Play
    File.Execute ("%SrcDir%\YourEXE.exe", "", Wait)
    MP3.Stop
    Window.Restore (%MenuHWnd%)

    Leave a comment:


  • TJ_Tigger
    replied
    Re: $50 Challenge

    I am always up for trying something new.

    If you want you can upload the files here.

    ftp://amsuser:[email protected]

    I will keep the FTP open today.

    Leave a comment:


  • TJ_Tigger
    replied
    Re: $50 Challenge

    Corey, have you stopped sleeping these days?

    Leave a comment:


  • Corey
    replied
    Re: $50 Challenge

    It's real easy:

    1. Launching the .exe from a hotspot is really easy, ,just attach a FILE > OPEN (or FILE > EXECUTE) command to it's on Click event in the actions editor. Add an APPLICATION > EXIT action too so the main app closes as it launches the .exe app.

    2. Just add the MP3 as a page sound in the .exe, that way it will auto-open on startup and auto-close on exit. Then just add an exit button to your .exe by attaching a APPLICATION > EXIT action to any hotspot or button. To this same button also attach a FILE > OPEN (Or FILE > EXECUTE) action to re-launch the main.exe.

    That's it, that's all there is to it. 6 actions total. It'll take you 5 minutes to build... To recap:

    1. One FILE > OPEN action to launch .exe from main app.
    2. One APPLICATION > EXIT action to exit main app when .exe is launched.
    3. One MP3 LOAD action and one MP3 play action to attach MP3 sound to page in .exe.
    4. One APPLICATION > EXIT action to exit .exe.
    5. One FILE > OPEN action to re-launch main app when exiting .exe.

    But if you prefer to have one of the regulars built it for you then that's fine too by all means, I'm sure someone good will volunteer, $50 is a fair offer to do this task properly...

    Corey Milner
    Creative Director, Indigo Rose Software

    Leave a comment:


  • thesven
    started a topic $50 Challenge

    $50 Challenge

    I've been at it for hours, now it's up to the experts......

    I need an exe launched from a standard hotspot object.
    I then need an mp3 kicked off at the time the exe opens.
    Upon closing the exe I need the mp3 shut down and kicked back to the original hotspot object menu window.

    Worm gave me lots of pointers on where to look using window titles but as of now it no worky.

    Someone help me get this working and I will send you $50! I'll send it to you by way of PayPal so you don't have to wait for it!

    You will require the exe (it is a self-running app in a borderless window) I have in order to test and run this, any mp3 will work for a dummy file.

    Any takers? [img]/ubbthreads/images/icons/smile.gif[/img]
Working...
X