View Full Version : My psychic abilities or on the wane! Help?
mremixer
02-12-2008, 11:26 AM
Hi guys, I know I've seen a thread or 2 on this subject or related to but I just can't find them through searching, I'm probably using the wrong search terms but can anyone point me?
I'm after running an external program inside my app's window, using the external then shutting it down but still having my app running?
Can't give an example coz I haven't tried coz I know I've seen similar on here, just want a starter point to jump from, no sense reinventing the wheel eh? Anyway thanks for the pointers!
longedge
02-12-2008, 11:40 AM
You just need to build your second programme as an exe and place it in the Docs folder of your first one. Then in a button or wherever, do a File.Run followed by an Application.Exit est voila!
mremixer
02-12-2008, 06:27 PM
Erm thanks longedge, I know the file.run, haven't a clue about application.exit duh!
Anywho, after rereading my Q I thought I'd expand a little. Please bear with me as this is all in my head at the moment and I might be overshooting/over complicating things but heres what I'm thinking...
A kiosk AMS app to run not as a "Desktop Replacement" but it will "Appear" to be while my app is running, my app will only be used to call other apps included within my package, some freeware & some shareware this now leads me to a couple of questions.. (Planning to do some experimentation with this over the weekend but in the meantime if anyone can give any tips, advice (examples are nice but I don't think needed))
Q1 (and I know I could try it but I'm not near my AMS machine til the weekend, hence why its all in my head) If my apps running in kiosk mode & I call another app which app has focus, mine or the called app?
Q2 As I want it to be a FAKE DESKTOP any ideas how I can create a START BUTTON like menu?
Q3 I know I can make my app change display resolution on each machine BUT what res would you recommend? (800X600 seems the obvious as its a universal standard that, as far as I know, is supported by all cards & monitors whereas other settings can be quirky on some setups but I'd rather go bigger)
Thats it............FOR NOW...... Jeez I wish I was home so I could play with AMS!!! :huh
FoxLeader
02-12-2008, 09:50 PM
If it's an for older computers, 800*600 would be ok however usual resolutions are now from 1024*728 to 1152*864.
To create a startbutton-like menu, I'd look at using flash because that way, it would (maybe) be able to cover "embeded" apps. If I understood your point ;)
mremixer
02-13-2008, 06:44 AM
Hi Foxleader,
1st thanks for all the help you (and others!) have given in these forums, I have come across your posts a few times and have found them enlightening.
2nd Yeah I was leaning towards the 1024*728 myself I think the 800*600 has all but gone! One thing that does concern me though is the odd one that may still be set at that, how will my 1024*728 work on those? lol s'pose I'd find out down the line.
3rd I know I said embed but I don't know myself if thats the right word, Little more off the top of my head, they will all be self contained "Portable/Thinstall" apps running from the same disc (CD/DVD, not sure how big I'm gonna go with it yet). So if thats embedded then yeah embeds the right word :lol
4th Flash aaaH SAVIOUR OF THE UNIVERSE! Jeez, I have little to no experience of flash, well not to that degree anyway! I was kinda thinking a "Start" button (tongue in cheek with that, my app I will call it something apart from "start" but you get the gist) that when clicked revealed a list of the included programs. Each program will have its own submenu with the program and help & tutorials included.
The basic idea is to have my company's artists/groups albums on for people to burn themselves using a portable burner that does the job well enough and it includes an Inlay creator as well.
Thats the basic idea as time moves on am planning to expand it so people can choose tracks and create their own CD albums.
RizlaUK
02-13-2008, 07:43 AM
2nd Yeah I was leaning towards the 1024*728 myself I think the 800*600 has all but gone! One thing that does concern me though is the odd one that may still be set at that, how will my 1024*728 work on those? lol s'pose I'd find out down the line.
i made a windows type replacement for my daughters nursery a few years ago, and as it was going to run on a variation of donated computers which had different display settings i made a dll to change the settings to suit my app, and change back again when the app exits, look at the post in my sig, its listed there or check my site (Dev Center>>APMS Application Extensions)
as you are setting the screen res you do not need to use kiosk mode, just hide the taskbar (again dll on my site to do that) and set the application to the size you just set the screen to, you might want to consider disabling certain keys as well (windows keys, tab+alt, ctrl+alt+del, etc)
reteset
02-13-2008, 10:07 AM
I'm after running an external program inside my app's window, using the external then shutting it down but still having my app running?
this can be possible with my plugin (WindowEx)
put following code where you want to:
File.Run(_ProgramFilesFolder.."\\Windows Media Player\\wmplayer.exe", "", "", SW_SHOWNORMAL, false);
Application.Sleep(2000); -- wait 2 seconds for MP appear
WmpHwnd = WindowEx.FindWindow("","Windows Media Player");
Page.StartTimer(250);
put following code to On Timer Event:
if not(WindowEx.IsWindow(WmpHwnd)) then
Page.StopTimer();
Dialog.Message("Notice", "Media Player Dialog Closed This Application Will Exit", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Application.Exit(0);
end
You can get it from here
http://www.indigorose.com/forums/showpost.php?p=114418&postcount=28
also you can find a detailed example in Examples folder
Example_17 demonstrates what you want to
mremixer
02-13-2008, 11:03 AM
i made a dll to change the settings to suit my app, and change back again when the app exits,
Duh! Yeah of course, I've used it! Its being away from main brain, thats my excuse and I'm sticking to it! :lol
just hide the taskbar (again dll on my site to do that) and set the application to the size you just set the screen to, you might want to consider disabling certain keys as well (windows keys, tab+alt, ctrl+alt+del, etc)
As always words of wisdom, from the wiser ones amongst us. :D
(Psst, I thought a tab was something you smoked, alt was soldierise for stop, del was a boy with rodders & CTRL!!!?? Scary!)
*reteset I have your WindowEx just haven't had time to unzip/look/play yet, but will be making time.
Again the wise guide the young! (OK who am I kidding YOUNG!):lol
Thanks for the input guys just got to get back to the main brain else its all in vain!
FoxLeader
02-13-2008, 12:09 PM
You're welcome ;)
I'll have to try for reteset's embedding solution, that should help me a lot.
RizlaUK >> Has a "lite" version of that project been made avaible as an exemple? Should be interesting :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.