MartinRouterKing Posted June 28, 2017 Posted June 28, 2017 Hi All, I have been displaying a google calendar on the desktop of the computers using .HTA that i was sent by somebody on here. This has stopped working with the errors An error has occurred in the script on this page "object doesnt support property or method 'map' An error has occurred in the script on this page "object doesnt support property or method '_init' The code is: Calendar window.resizeTo(480,410); //just so I can deal with a small window so I can move around my screen var windowWidth = window.outerWidth || document.body.clientWidth; window.moveTo(screen.width - windowWidth,0); Does anybody know why this may be? Kind Regards.
QwertyMash Posted June 28, 2017 Posted June 28, 2017 Hello, This particular HTA code you have supplied works fine. Have you removed anything before adding it here? Although your Select="Yes" does not have a quote at the start. I have used this and gave it a quick look over and it creates a small HTA window. with an empty iFrame. 2
MartinRouterKing Posted June 28, 2017 Author Posted June 28, 2017 Maybe its the iframe to embed the google calendar. Here is the code i have with the calendar still in. Calendar window.resizeTo(480,410); //just so I can deal with a small window so I can move around my screen var windowWidth = window.outerWidth || document.body.clientWidth; window.moveTo(screen.width - windowWidth,0);
QwertyMash Posted June 28, 2017 Posted June 28, 2017 Tell you what - would you like me to write a more modern version of this? Is it an account you have access to so you have the login details etc? Google seem to have blocked calendar access via iFrames.
MartinRouterKing Posted June 28, 2017 Author Posted June 28, 2017 If you can that would be amazing. We used it all the time now staff want it back. Yes i have access to the google account.
QwertyMash Posted June 28, 2017 Posted June 28, 2017 Right give me a few minutes Are you users able to run .exe applications? (I will send you the source code etc. so you can see it is not malicious)
MartinRouterKing Posted June 28, 2017 Author Posted June 28, 2017 Yes they can run .exe applications. Thank you.
QwertyMash Posted June 28, 2017 Posted June 28, 2017 Excellent. I shall make a quick application, would you like the option for it to be always on top?
MartinRouterKing Posted June 28, 2017 Author Posted June 28, 2017 We would like it to be on the desktop at all times but not on top of all windows. We would like it to refresh as well if possible. Say every hour.
QwertyMash Posted June 28, 2017 Posted June 28, 2017 Ok - can you please list all mandatory requirements and all "would be nice to have" and I shall do my best to knock up a quick one for you It will be using C# and a WPF application
MartinRouterKing Posted June 28, 2017 Author Posted June 28, 2017 All as I need is it sits nice in the top right corner of the desktop, refreshes and can't be closed by the teacher. That is all.
QwertyMash Posted June 28, 2017 Posted June 28, 2017 Ok quickly working on it now - I am at work so if I get delayed I do apologise doing this on the sly haha
MartinRouterKing Posted June 28, 2017 Author Posted June 28, 2017 Haha that is not a problem I am very grateful! 1
QwertyMash Posted June 28, 2017 Posted June 28, 2017 Nearly sorted but might have to finish it when I get home due to the fact I don't have one of my libraries with me that enables me to use Chrome but I just had it working but I want to improve it
QwertyMash Posted June 28, 2017 Posted June 28, 2017 Currently have: > Calendar loading using Chrome > Calendar not showing in Taskbar > Calendar has no border or title bar so no close or minimize button (I have also got it to ignore Alt+F4, I can remove this if you like) > It is resizable by grabbing the edges but I have set a minimum size so it cannot be utterly crushed Just need to set the opening location on the screen.
QwertyMash Posted June 28, 2017 Posted June 28, 2017 Right just popping gym but it no also loads in the top right.
QwertyMash Posted June 28, 2017 Posted June 28, 2017 Well I think I am finished, just needs you to test it and approve it! Would you like to PM me and we can find away to send you the .exe and the project file? Currently: > Loads the calendar > Loads in the top right corner > Can't be closed even with Alt+F4 > Can't be minimized > Can be resized but can't be made super super small > Has a small bit of text at the bottom that says "Refresh" if the user wants to manually refresh > Auto refreshes every 5 minutes I hope this is ok.
MartinRouterKing Posted June 28, 2017 Author Posted June 28, 2017 Massive thank you! That works perfect. Thank you so so much!!! 1
QwertyMash Posted June 28, 2017 Posted June 28, 2017 Very happy to help. Please feel free to contact me if you need any modifications!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now