I'm trying to write a simple program that will open a browser in full screen,
on a particular page and then end when the mouse is clicked or a key is pressed.
What would be the best language to use for this?
I've tried in java but I cant find a way to end the program at will, using Java.
Any help is greatly appreciated.
Best language to use for a digital sign
Page 1 of 112 Replies - 789 Views - Last Post: 08 March 2013 - 10:06 AM
Replies To: Best language to use for a digital sign
#2
Re: Best language to use for a digital sign
Posted 07 March 2013 - 08:53 AM
What, is this a screen saver of sorts?
#3
Re: Best language to use for a digital sign
Posted 07 March 2013 - 08:57 AM
modi123_1, on 07 March 2013 - 08:53 AM, said:
What, is this a screen saver of sorts?
It will be used for advertising and the likes / displaying information in shops. So yes, in a way very similar except there will be live updates of information displayed.
This post has been edited by pistolizedpete: 07 March 2013 - 09:04 AM
#4
Re: Best language to use for a digital sign
Posted 07 March 2013 - 09:03 AM
Mkay. In the spirit of full exploration - have you just thought about the simple solution of F11? I mean that key (on IE, FF, Safari) all push a browser to full screen. This might be a case of using a sledgehammer for a wall tack.
#5
Re: Best language to use for a digital sign
Posted 07 March 2013 - 09:03 AM
Do you have to open up a browser or you can you just display the webpage from within the program itself?
#6
Re: Best language to use for a digital sign
Posted 07 March 2013 - 09:05 AM
Any language you like that can run on the OS you are using would be find for a simple app like this. All desktop OSes can open a browser, and recognize a mouse click or key press.
You probably just need to learn more about your chosen language. I'm sure java can tell the app to close. Its common to have a menu choice for File | Exit
You probably just need to learn more about your chosen language. I'm sure java can tell the app to close. Its common to have a menu choice for File | Exit
#7
Re: Best language to use for a digital sign
Posted 07 March 2013 - 09:14 AM
There are no real rules to how I'm supposed to do it but,
I would like it to work automatically after opening the program, ie. no F11 key press.
I could display the webpage from the program itself as long as it's full screen and there's
no borders / scroll wheels etc.
tlhIn`toq: It seems, you cant use a keyListener in Java to do this unless you have a gui.
Thanks for the replies so far guys.
So looking at all the answers, I suppose an equally useful question to me would be...is there a way that I can use a Jframe in fullscreen, with no borders etc? Then I could use a keyListener to kill it.
I would like it to work automatically after opening the program, ie. no F11 key press.
I could display the webpage from the program itself as long as it's full screen and there's
no borders / scroll wheels etc.
tlhIn`toq: It seems, you cant use a keyListener in Java to do this unless you have a gui.
Thanks for the replies so far guys.
So looking at all the answers, I suppose an equally useful question to me would be...is there a way that I can use a Jframe in fullscreen, with no borders etc? Then I could use a keyListener to kill it.
#8
Re: Best language to use for a digital sign
Posted 07 March 2013 - 09:19 AM
To maximise a JFrame you can do (untested) -
and then to remove the title bar etc etc you can do
Then just set your web browsing component to fill the entire frame and you should be good. As the application still has focus you can use keylisteners to toggle between full screen mode.
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
and then to remove the title bar etc etc you can do
frame.setUndecorated(true);
Then just set your web browsing component to fill the entire frame and you should be good. As the application still has focus you can use keylisteners to toggle between full screen mode.
This post has been edited by Ryano121: 07 March 2013 - 09:19 AM
#9
Re: Best language to use for a digital sign
Posted 07 March 2013 - 09:33 AM
Hmmm...
This would almost work but the Ubuntu Dashboard and
bar at the top of the screen are still visible.
This would almost work but the Ubuntu Dashboard and
bar at the top of the screen are still visible.
This post has been edited by pistolizedpete: 07 March 2013 - 09:33 AM
#10
Re: Best language to use for a digital sign
Posted 07 March 2013 - 10:04 AM
#11
Re: Best language to use for a digital sign
Posted 08 March 2013 - 02:16 AM
#12
Re: Best language to use for a digital sign
Posted 08 March 2013 - 06:38 AM
Well yeah.. that looks like it is for a java app.. not a web browser manipulation. Sheesh.. at this point just use the webbrowser object in .NET.
#13
Re: Best language to use for a digital sign
Posted 08 March 2013 - 10:06 AM
Ok, so the reason I wanted to kill the process was because when opening chrome
in kiosk mode using java, there was no way to then exit the full screen, ie F11 doesnt work but,
hitting ctrl+w is just as effective for me so I'll go with that and yes I agree, I was probably
making a mountain out of a molehill but I just thought it would be simpler than it turned out
to exit on a key stroke.
Thanks for the help.
in kiosk mode using java, there was no way to then exit the full screen, ie F11 doesnt work but,
hitting ctrl+w is just as effective for me so I'll go with that and yes I agree, I was probably
making a mountain out of a molehill but I just thought it would be simpler than it turned out
to exit on a key stroke.
Thanks for the help.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote







|