ENIGMA Forums

Development => Finished Games => Topic started by: time-killer-games on September 22, 2014, 08:34:31 pm

Title: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 22, 2014, 08:34:31 pm
This is a small collection of Windows extensions I created and got working in
GM:Studio, GM:8.1, and ENIGMA. Click screenshots to enlarge them.

(https://dl.dropboxusercontent.com/u/79893663/extensions/window%20styler/screenshots/Screenshot%201.png)(https://dl.dropboxusercontent.com/u/79893663/extensions/window%20styler/screenshots/Screenshot%202.png)(https://dl.dropboxusercontent.com/u/79893663/extensions/window%20styler/screenshots/Screenshot%203.png)
Change the window border style of your game window to one of many styles.
Download Window Styler: https://db.tt/QzcZe74J

(https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/screenshots/Screenshot%201.png)(https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/screenshots/Screenshot%202.png)(https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/screenshots/Screenshot%203.png)
Embed webpages whether online or local directly inside your game window.
Download Web Browser: https://db.tt/7jKQaYby

(https://dl.dropboxusercontent.com/u/79893663/extensions/embed%20exe/screenshots/Screenshot%201.png)(https://dl.dropboxusercontent.com/u/79893663/extensions/embed%20exe/screenshots/Screenshot%202.png)(https://dl.dropboxusercontent.com/u/79893663/extensions/embed%20exe/screenshots/Screenshot%203.png)
Embed external applications and programs directly inside your game window.
Download Embed Exe: https://db.tt/OqORLj9w

They are free, open source, and public domain. I hope you enjoy.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 22, 2014, 08:46:11 pm
This is excellent news TKG! I want to note though that for ENIGMA compatibility you may need to download the recent window fixes using git fetch and git pull from the git-bash program in the ZIP. I will include these changes in a future ZIP release but I am currently busy improving XLIB.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 22, 2014, 08:58:14 pm
Very nice work TKG and company.

Finally someone among few  who releases worthy material in the market place :P Good to see there is finally hope for this feature.

Cheers
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: edsquare on September 23, 2014, 08:29:44 pm
Okay, now I know why Lonewolff visited here again today (I saw him online). He was upset with me, refused to accept my apology and misunderstanding, he saw this and decided to down rate my window styler extension. He has major issues. If he wants there to still be tension then that is very imatur because that won't do anything but make us but heads and continue being upset for no apparent reason. Okay now that is a retarded idea.

https://marketplace.yoyogames.com/assets/655/window-styler

The funny thing is even with his hostile intension he did nothing but help me, and when the issues he described I have fixed, I can get an admin to delete his review by force. Ironic, isn't it?

So the guy who claims to be dumber than me has several finished games, knows enough to write extensions for GM and is selling them already . . .

Yea, I'd say you are definetely dumber than me . . .

NOT!

On a more serious note, congrats TKG!  (Y)

On both the finished games and the extensions, don't forget about us mortals when you buy Steam!
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 23, 2014, 09:37:35 pm
Yeah he makes games, shiny floors and walls too, that takes skill and creativity....not a given, he's smarter than he gives himself credit though.....game developer, music composer, etc. he might have a future in film making :D

I read LoneWolf (Jason Soup Campbell) review, hey at least he made constructive criticism, maybe his intentions were to actually help, nice report he made, he could have just said "it sucks" or one liner but he gave lots of feedback.  But he gave you one star, that was harsh  ;D ;D ;D

I think you had every reason to be suspicious of him, don't feel bad about it, him coming here asking about the video and suddenly vanishing, deleting his account and all posts, that would strike as highly suspicious, so is selling a video extension for $999, I mean Christ, he sure didn't defend himself or deny anything other than delete his accounts and vanish.
So don't feel bad.  As long as his review is FACTUAL, what he claims was true, you can't really have it removed, you can consider it constructive criticism - that's to be expected in a market place - some people will maliciously down rate you, others will back up their claims, though I don't think you both will kiss and make out anytime soon though, but fuck it, you are better than him, he had us all fooled here and let's leave it at that.

Cheers
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 23, 2014, 10:06:38 pm
Thank you edsquare and darkstar2 you guys are the bomb.com! :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 23, 2014, 10:16:44 pm
Guys this extension actually had another bug, we were not setting the window flags consistent with GM8.1 which was causing the window size to report bigger than it was which was also adversely affecting the GUI and viewport scaling. Please fetch/pull from master and this extension should work perfectly now, I will have the fix in the next Portable ZIP.

Edit: Fixes included in the new Portable ZIP.
http://enigma-dev.org/docs/Wiki/Install:Windows
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: edsquare on September 23, 2014, 10:24:50 pm
Guys this extension actually had another bug, we were not setting the window flags consistent with GM8.1 which was causing the window size to report bigger than it was which was also adversely affecting the GUI and viewport scaling. Please fetch/pull from master and this extension should work perfectly now, I will have the fix in the next Portable ZIP.

Not to worry I have some really busy months ahead so I probably wont be doing any game testing/development until maybe 2015's second half.  :(

Will keep checking the progress you guys make and busting TKG's chops anytime he sells himself short, but I really don't see how I could make the time for anything else than my school and helping my son get to the higschool he choose. (The lad wants to be a game programer, wonder where does he get that inclination?)  ::)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 24, 2014, 06:33:26 am
Okay, now I know why Lonewolff visited here again today (I saw him online). He was upset with me, refused to accept my apology and misunderstanding, he saw this and decided to down rate my window styler extension. He has major issues. If he wants there to still be tension then that is very imatur because that won't do anything but make us but heads and continue being upset for no apparent reason. Okay now that is a retarded idea.

https://marketplace.yoyogames.com/assets/655/window-styler

The funny thing is even with his hostile intension he did nothing but help me, and when the issues he described I have fixed, I can get an admin to delete his review by force. Ironic, isn't it?

Err, hang on a sec. I pointed out what is buggy in your extension (which is quite a bit). I also emailed you directly explaining how to use window_handle() correctly, as you are not using it properly. It is used as a ty_string and not a ty_real, as it is a pointer.

Your extension is of very poor quality (sorry to say it, but just being honest). How can something be rated more than one star when none if it's functions work flawlessly? Seriously.

I also said in my email to you that I had no hard feelings with the abuse you sent me through a fake Google account (of which you begged for an apology via email - twice).

I think you are being very two faced about this and keep hiding what is actually happening behind the scenes.

Would you like me to post both of your apology emails here for people to really see what is going on?

You thanked me on the review page for pointing out half a dozen problems on a simple extension for Christ sake. I didn't have to go to that level. It is up to you to make sure your extensions are of a commercial quality before releasing...
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 24, 2014, 03:18:24 pm
I didn't get your email but I will read it after this post. It isn't a fake Google account. If it was from either samuel.venable.1@gmail.com, which I use for YouTube. Or my hotmail, samuelvenable@hotmail.com I don't remember part of what your talking about. But it's no big deal I'll take your word for it.

Okay I understand where you are coming from but I don't always check the window size and every other possible variable when I changed the window styles, I discovered that it was nothing wrong with my code it was a dumb idea Microsoft had that a lot of windows devs have complained about.changing the window style shouldn't every effect the client area size, but on windows it does. I wouldn't be surprised if this problem doesn't exist on the Linux equivalent,


Anyways, sorry about that. I fixed everything you mentioned. The only known issue I have now, which I discovered on my own. The maximize button when having a sizeable window, it can be maximized, but not un-maximized. I know how to fix. If the window rect is greater than equal to the display minus the taskbar area, then don't store the size in a var, otherwise do. When unmaximize is triggered set the window back to prev size. It should be done within a few hours, I'm busy ATM.

Thanks for telling me how to use window handle, I was using FindWindow instead for studio because window_handle I had the impression stopped working in studio, apparently not.

Thanks.

Edit. I'm not being two faced. What I post here was what I really thought was happened and I was wrong, again, and why I thanked your review is because I was being nice to you even though I thought your rating was intentionally harsh, which it wasn't.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: edsquare on September 24, 2014, 03:28:33 pm
Quote
The maximize button when having a sizeable window, it can be maximized, but not un-maximized. I know how to fix. If the window rect is greater than equal to the display minus the taskbar area, then don't store the size in a var, otherwise do. When unmaximize is triggered set the window back to prev size.

Between this and your own extension you should be able to quickly modify your games so I can play them then  :-[ (Just saying)  ;)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 24, 2014, 03:41:15 pm
What problems are you having edsquare? I know the resolution is a problem on my point and click games, and that'll take a while to fix due to both bugs in how I made them and how studio handled it. Everything else should work on your machine.

Edit. Are you able to resize your resolution to be 1280x960 or larger? If so it's not hard to do in the meantime. :) a temp fix for you.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: edsquare on September 24, 2014, 03:45:13 pm
What problems are you having edsquare? I know the resolution is a problem on my point and click games, and that'll take a while to fix due to both bugs in how I made them and how studio handled it. Everything else should work on your machine.

Edit. Are you able to resize your resolution to be 1280x960 or larger? If so it's not hard to do in the meantime. :) a temp fix for you.

What would that accomplish? Throw everything out of sight on my small screen?

Don't worry though I can wait to try them when I finally fix my bigger screen or buy a new one (whatever is cheaper)  (Y)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 24, 2014, 03:55:11 pm
Good stuff.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 24, 2014, 05:05:41 pm
Okay I understand where you are coming from but I don't always check the window size and every other possible variable when I changed the window styles, I discovered that it was nothing wrong with my code it was a dumb idea Microsoft had that a lot of windows devs have complained about.changing the window style shouldn't every effect the client area size, but on windows it does. I wouldn't be surprised if this problem doesn't exist on the Linux equivalent.

Changing the window style will always change the client area. It is a well known fact. Stupid yes, I agree.

For example if you request a normal window to be 640 x 480, that will be the size of the window, not the client area. Client area will be less, unless borderless.

So, each style, button, etc, will throw the client size around every time and needs to be recalculated every time you change something.

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 24, 2014, 05:22:59 pm
Very good point, lone is right on that one.

When you say a window is 640x480 it means the whole window size combined, including caption/style/border, since these pixels are part of the "window". :)

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 24, 2014, 08:21:14 pm
Okay good to know, thank you!
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 24, 2014, 08:23:49 pm
Be careful, he'll be billing you for all that advice  :D :pseudo:
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 24, 2014, 09:15:42 pm
TKG, you still never answered me, how are you hiding the taskbar icon? I need to know so that I can see if there is an issue with ENIGMA.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 24, 2014, 10:43:37 pm
@Robert I'm not. GameMaker:Studio is doing that somehow. I know this because in the GM 8.1 equivalent the icon is still down there.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 24, 2014, 10:46:07 pm
Huh weird, what is the intended behavior for you? I take it since it is unintentional that you want it shown, though I am not sure because I know that you block minimize. It seems to be some inconsistency with Studio for GM8.1 and ENIGMA. If you find anything else out I'd like to know, thanks!  (Y)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 24, 2014, 10:53:53 pm
For it to remain on the taskbar.


Edit. Will do. :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 24, 2014, 10:55:02 pm
Are you referring to his escape lab 3d game?  It doesn't hide the taskbar for me. I play at 1920x1080 and the taskbar is there, not hidden. :)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 24, 2014, 10:56:26 pm
Not hiding the taskbar, hiding the game's taskbar icon.

Edit. And yes this does apply to that game. You could also run it at 1280x1024 just fine if your hardware supports it.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 24, 2014, 11:19:47 pm
Not hiding the taskbar, hiding the game's taskbar icon.

Edit. And yes this does apply to that game. You could also run it at 1280x1024 just fine if your hardware supports it.

Ahhh ok gotcha now, true.  I noticed that too.  :)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 24, 2014, 11:42:40 pm
Be careful, he'll be billing you for all that advice  :D :pseudo:

Still writing up the invoice ;)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 25, 2014, 12:33:33 am
Be careful, he'll be billing you for all that advice  :D :pseudo:

Still writing up the invoice ;)

It will probably have lots of 9's too :D

Anyhow, yeah I have not tried his extension, because I don't use GM now, but is it really 1 star? Isn't that harsh ? :D
Many software have bugs and issues and get rated 2 or 3 stars :D I guess we all learn from mistakes, I have done far worse mistakes in programming.....:D but luckily I would discover them early.


Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 25, 2014, 02:05:12 am
It will probably have lots of 9's too :D

Anyhow, yeah I have not tried his extension, because I don't use GM now, but is it really 1 star? Isn't that harsh ? :D
Many software have bugs and issues and get rated 2 or 3 stars :D I guess we all learn from mistakes, I have done far worse mistakes in programming.....:D but luckily I would discover them early.

Possibly on the harsh side. But as it stood, it simply didn't work.

It is a 'Marketplace'. Nothing should be released before it has even been tested.

I personally would never release anything unless I know it is 100% bug free (as certain as you can be of that anyway). People will find bugs and they will annihilate you if they find them. Especially ones that will cause image distortions.

This is one of the major problems with the Enigma project. I don't know how it is now, but it was always freatures over stability. No one wants features over stability.

I always go by the rule, start with a small feature list and make those features rock solid. Set the benchmark on how it should be done. Build a frame out of titanium, instead of trying to build a mansion with cards. ;)

[Hopping off the soapbox now :)]

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 25, 2014, 02:56:19 am
About to try the new version now.

This is signs of an unfit mind though. First thing that pop's up in the extension now. LMAO!  :smileycat:

(http://www.win32developer.com/general_images/lol.png)

I am even part of Sam's extension now. That is scary!  :o (and as much as the message box would like you to believe, window sizes are only 'sometimes' correct - but who are we to argue with a message box - LOL  :pseudo:)

Just tested this. It is a lot better but not still without bugs. Don't want to spoil the fun though, so I'll let you find them ;)

Probably closer to a 3 or 4 star rating now on the 'J-Spec' chart. Getting there!  (Y)

Also, I don't get the purpose of 'Fake Fullscreen'. Feel free to enlighten me on that one :)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 25, 2014, 10:47:09 am
Quote from: lonewolff
Also, I don't get the purpose of 'Fake Fullscreen'. Feel free to enlighten me on that one
I can offer you an advantage, MessageBox and other dialogs can not render on top of true fullscreen applications, they may possibly be able to render on top of fake FS applications however. Studio has to minimize out of fullscreen whenever you show_message, and currently ENIGMA will show the message anyway but you can't see it but you can still get out of it by pressing enter.

@TKG, by the way this is honestly quite funny, embedding YYG's website into an ENIGMA game lololololol, never thought I'd see the day.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: sorlok_reaves on September 25, 2014, 12:08:36 pm
Fake fullscreen is also super-useful if you don't want your display to switch resolutions every time you Alt-Tab. Depending on the type of game (e.g., RTS, RPG), it can be very useful to tab to the wiki really quick and check some enemy stat.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 25, 2014, 12:20:18 pm
The only real downside is slightly lower framerate's because the window manager can't cut out any of the intermediate.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 25, 2014, 12:53:46 pm
(http://www.win32developer.com/general_images/lol.png)

I am even part of Sam's extension now. That is scary!  :o (and as much as the message box would like you to believe, window sizes are only 'sometimes' correct - but who are we to argue with a message box - LOL  :pseudo:)

Also, I don't get the purpose of 'Fake Fullscreen'. Feel free to enlighten me on that one :)

What is really scary is you don't know what a change log or notification is, and that's what you're looking at. If you delete that alarm like it blatantly says, it's gone. A monkey could do it. If you are crippled enough to not do that in under 10 seconds, you can simply delete that one line of code.

100/100 people would agree there's nothing wrong with that. It is informative, it's no skin off anyone's back and it can be done in under 10 sec unless you are seriously mentally retarded.

I used window_get_width()/height() to show what's on that message. I even went through the trouble of taking a screenshot of every window type, then I cropped out everything but the client area, doing so pixel-exact, and sure enough every window was the correct size. If there are still bugs with literally anything besides fakefullscreen I doubt it seriously. I even tested everything on an existing game. Everything was perfect.

Fake fullscreen is the only one I haven't tested like the others, but it overlaps the taskbar now and it uses code nearly identical to borderless so I'm very certain you are just trying to yank my chain.

There's only one bug period it has to do with a sizeable window as I've already pointed out. Won't explain again. If people really want a sizeable window (the minority) they don't need my extension they can use global game settings which is built-in and cross-platform for desktops.
Lonewolff aren't you getting a little too excited for what's really going on?
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 25, 2014, 12:56:09 pm
The only real downside is slightly lower framerate's because the window manager can't cut out any of the intermediate.

Is this mandatory or is there a way to switch to a real full screen mode - I believe GM used this in earlier versions, it can have some impact on frame rate - they referred to it as fake FS mode back then, but changed something and used real full screen at some point.

I don't like the idea of anything fake. Commercial games run either in windows or real full screen.  What's the big deal for switching resolution when you alt-tab ?
most people use LCD monitors now anyway so it's not a long process :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 25, 2014, 01:04:23 pm
Well for one Darkstar2, real FS proves to be a lot more glitchy with Alt+Tab especially with games that lock the mouse, I always hated this with GM games too but it's not just GM games that have this problem. San Andreas for one was/is notorious for screwing up once you Alt+Tab and so are Battlefield games. I believe Studio is when GM started using real FS, it really isn't necessary for 2D games, given an efficient engine they are usually low performance hogs.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 25, 2014, 01:18:02 pm
Every game I've played commercial or not uses fake (Skyrim, Sims 3, ASA - A Space Adventure, The Filmmaker, Rollercoaster Tycoon 2, etc etc). True full screen is a requirement of Microsoft that no one really follows but YYG. I use a variety of game engines I've purchased, including not just GMS. GM 8.1, Monkey-X, BlitzMax, Stencyl, Adventure Maker, Construct 2, Adventure Game Studio and last but not least ENIGMA used to and I believe it still does - they all use "fake" full screen but really it's just regular fullscreen that allows child windows.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 25, 2014, 01:24:30 pm
Also lonewolff I was already going to remove that message box given you'd actually remove your review first which your review is now technically lying to everyone at this point. :P

YYG featured my extension on the marketplace homepage under "extending windows", so no matter how much you don't like my now perfectly stable extension YYG don't agree with you nor does anyone else so good luck making your invalid points.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 25, 2014, 01:38:19 pm
@Darkstar2 yes when you are done using child windows you can stop calling FakeFullscreen() every step and while that's not being called you can switch to true full screen with window_set_full screen(1) GML.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 25, 2014, 01:54:29 pm

It is a 'Marketplace'. Nothing should be released before it has even been tested.

I personally would never release anything unless I know it is 100% bug free

Amazing !  You just described what 99.9% software on the market are NOT. :P  Testing for obvious bugs and functionality I agree 100%, but 100% bug free that's over the top, if you have a gift then you are sitting on a gold mine and a fortune, and you should go work for Microsoft and company :D and teach them how it's done lol!  100% bug free, that'll be the day.......Sometimes you can test over and over and discover bugs later on, what you want to sort out are the obvious bugs most people can spot and find.....It is not uncommon for software not to be tested properly........I see bugs all the time in software and go "how the bloody hell didn't those people find this obvious bug a 10 year old could figure out", sounds familiar?  I see that in software and games... How about the very operating system !

Quote
(as certain as you can be of that anyway). People will find bugs and they will annihilate you if they find them.

True. So true.......Which is why it's best to find them early on - But on the good side it's FREE.....vs. an $800 software full of bugs and glitches :D

Quote
This is one of the major problems with the Enigma project. I don't know how it is now, but it was always freatures over stability. No one wants features over stability.

It's not as much as a problem as a software costing $800 which now has a large team...... ENIGMA is FREE, open source and relies on multiple contributors, which are scarce, and as you know some parts of ENIGMA are an utter MESS, left over by some previous contributors who left for whatever reason so leaving 2 developers who barely have time to piss picking up the pieces and MESS left overs, and few contributors here and there patching things and adding stuff, so yeah CONSIDERING this situation it's not bad.  What ENIGMA needs is more contributors, and to contribute to ENIGMA, a C++ background :D and Java for LGM. :D and knowledge on graphics progamming and sound progamming for working with gfx and snd libs.  So yeah that's what sets apart commercial products from open source.

Stability over features, true, but people want both, as people praise your product for its features......if it is stable but lacks feature you will still be "annihilated" (your term :D) So anyhow many fixes and bugs resolved since you left, and many new features added, particularly to the IDE.
They probably added and fixed more stuff in that time period than YYG did at the crawling snail's pace they work on, but hey they are too busy now on developing GMS 2, so soon enough your beloved GMS 1.3/1.4 will be abandoned just like they abandoned GM8.1 where people reported many bugs left overs they ignored and didn't want to bloody fix....... So yeah....:D

Quote
I always go by the rule, start with a small feature list and make those features rock solid.

You are wise indeed, I agree.  But the key word here is START.  So one should say ENIGMA should have STARTED, but again with an open source project with multiple contributions, on a FREE project sometimes it can be hard to get people on the same wave length, you witnessed that ay ? lol :D

Yes you START at the base and build and make sure your foundation is solid.  But what happens when you started wrong and have built an empire full of cracked walls and duct tape everywhere, it's overwhelming you just want to kick your nuts ???  Sometimes demolishing and rebuilding is not a real option, building ENIGMA took 100 years, so asking people to wait another 100 is ludicrous :D
So yeah you raise a good point, so at this stage they work with what they have and the time they have, better than nothing, I have seen lots since joining here, lots have been fixed and addressed, one could build a full functioning game in ENIGMA...there will always be bugs here and there and they are being addressed to the best of their ability and time ..... it's not as if they are adding new features every second day, most of what's done are bug fixes, but the problem is so much mess left behind, some stuff to be fixed would require lots of hard work.....but ultimately this whole attachment via GM's umbilical cord comes with a price......do people want a stable solid FAST ENIGMA or be attached to GM's knob, that's the question.  Personally I'd love to see ENIGMA be its own product, with the same ease of use, feature set + + +, and break from the whole GM compatibility - do stuff their own way, efficient, fast, stable.....I think part of what's holding back is the compatibility, maybe someone can correct me if i'm wrong.

Quote
Set the benchmark on how it should be done. Build a frame out of titanium, instead of trying to build a mansion with cards. ;)

Right.......Now go back in time using Art Bell's time machine contraption and go tell that to YYG..... Oh wait....then I guess if GM fit that description maybe there would be no ENIGMA.........Yeah we should be thankful for GM, as ENIGMA would not exist without ....... :D :D :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 25, 2014, 03:45:16 pm
Dark I love your wall of text. You mind if I gently stroke your lovely wall of text?
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 25, 2014, 05:09:14 pm
@time-killer-games - I think you've forgotten to take your med's again. I am not having an attack on you at all. Why would I by lying about your extension. It does still have a couple of bugs in it. You just don't know how to test for them obviously. ;)

As soon as I tell you what the bugs are you'll end up sending me half a dozen apology emails again, like you do every other week...  :-[

@Everyone else - Good points about the 'fake fullscreen'. I hadn't thought about message boxes over the top. Nice idea :)

@Darkstar2 - Yes, no software is ever 100% bug free. But, It should go out the door with no known bugs. So, I guess the wording should have been 'percieved 100% bug free' :)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 25, 2014, 05:29:28 pm
@time-killer-games - I think you've forgotten to take your med's again. I am not having an attack on you at all. Why would I by lying about your extension. It does still have a couple of bugs in it. You just don't know how to test for them obviously. ;)

BTW, can someone re-edit / remove their reviews in market place, I wasn't aware this was allowed in any site where you review something.  I guess the fair thing to do would be to modify the review reflecting the fixed / bugs / changed stuff.

Quote
@Darkstar2 - Yes, no software is ever 100% bug free. But, It should go out the door with no known bugs. So, I guess the wording should have been 'percieved 100% bug free' :)

Exactly, that's the point I was making, weeding out the obvious bugs which a 10 year old can spot, blind folded :D

There are so many software with easy bugs, I have tested and reported many, I've been in internal testing teams for graphic cards company and it is RIDICULOUS the stuff I would discover, and the stuff the team would discover.

SADLY despite all the attempts to weed this out, when releasing some software or hardware things get eventually found, even the "how could I have missed that" type of bugs, what you want to avoid as much as possible :D  For those FREE extensions it would be wiser to have them properly tested offline, either alone or with the help of others BEFORE releasing them on the market, as anything released to public is subject to scrutiny and critics, so long as the criticism is warranted and factual, and helpful to the developer of the extension.

and all is needed now is extensions to re-enable all the deprecated crap YYG removed, remove sand box limitation and other r*****ed poo they imposed people, to make it an attractive engine for windows developers wanting to raise the bar in game making, mind you YYG did something great with the IDE where you don't have to pre-load all assets when run.......this is probably one of the best decisions they made lol, but anyhow, better late than never.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 25, 2014, 07:15:08 pm
This is what I look like when I don't take my meds.
(http://www.genetic-diseases.net/wp-content/uploads/2007/03/trisomy21b.jpg)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 25, 2014, 07:22:23 pm
This is what I look like when I don't take my meds.
(http://www.genetic-diseases.net/wp-content/uploads/2007/03/trisomy21b.jpg)

Haha! True :)

Just remember, we are not against you. OK? :)

Just think of us all as the hill-billy inbred miss-fit family. We all spaz out from time to time. LOL  (Y)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 25, 2014, 07:26:13 pm
Haha XD especially applying to this communty, myself included.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 25, 2014, 07:34:00 pm
Awww I feel a group hug. C'mon guys, lets do it!  :smileycat:
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 25, 2014, 07:56:30 pm

Just think of us all as the hill-billy inbred miss-fit family. We all spaz out from time to time. LOL  (Y)

LMAO -  Quote of the day, thanks that made my day.

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 25, 2014, 11:35:55 pm
TKG - Wan't me to put you out of your misery as to what is still not quite right?  :eng101:
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 26, 2014, 02:52:20 pm
That'd be great but I found out some of it on my own (finally!) :D

When you run StylerToolWindow() every step and use an alarm or some other means to swap running that every step with a different style to run every step, i.e. sizeable() it will become sizeable, but it will still be a tool window, iI fixed this bug already, as you shouldn't be able to set two styles at once. I won't make that 1 small change it's own version update though. I'd like to fix "everything" again first, whatever that means...

The other issue, switching out of fakefullscreen will result in the window still being the size of the display, only it will have a border now. This I'm still fixing.

If you know how I can fix the sizeable window's un-maximizing issue too I'd be most grateful. :P

Edit almost forgot the issue with fakefullscreen in which when you press alt+tab to swich window focus to a different window, then minimize that window, the fakefullscreen window will un minimize and re-appear as the foreground window.

There was a delay in making fakefull() hide the taskbar after alt_tabbing back to the game, but that I fixed at least..

I hope I'm making any sense I suck rooster balls at explaining things like this.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 26, 2014, 05:50:23 pm
Nice one. I wasn't even aware of those problems - LOL :)

As it stands your extension is near perfect. But I found if you toggle fullscreen and back (Alt/Enter) the non-default window styles occur, and it does actually throw one of the modes out of whack by four pixels.

Bout to update your extension to 5 stars.

Also I have come up with an idea that Yourself, Darkstar2, Robert, and Josh (if he even cares ;)) might like. It is a long term future strategy for Enigma. I think you guys will agree flat you without hesitation.

I'll do it over PM though. It doesn't belong in public view. :) [edit] Just PM'd DS2 & TKG with a huge strategy - long term thing. I'll PM Rob depending on what you guys think. But, I love it :)

[edit] Time on the PC is going to be minimal the next few days as the Wife's familiy are coming down (arrrghh  :-\). So don't be surprised if some things are delayed in getting back to you guys. :)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 26, 2014, 10:25:47 pm
I fixed the issue with switching in/out of fake fullscreen, it goes back to the original window size as it should. The update has been made public. I did some other fixes but I'm too tired to remember them right now.

If you could explain a little more detailed what you mean about alt/enter? I'm a little confused as to what you mean.

Thanks.

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 26, 2014, 10:32:54 pm
I received your PM and replied to it, I agree with you 100% and BUT read my reply carefully, :)  the biggest obstacle is the license and the fact ENIGMA is OS. 
Cheers

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 27, 2014, 01:11:00 am
I received your PM and replied to it, I agree with you 100% and BUT read my reply carefully, :)  the biggest obstacle is the license and the fact ENIGMA is OS. 
Cheers

Yep, check out my long long response. The extensions won't be bound by ENIGMA's open source license. They are independent of the ENIGMA project, they just happen to be able to work in ENIGMA, GM:S, or in my case any other system that uses DirectX and can interface with DLL's. ;)

Closed source extensions won't be a problem, at all :)

TKG - Just tried the browser extension.

Before you kill me and have a tourettes attack, it won't work for me :(

All I get is a blank white window an a contanst ticking nosie from the speakers at 30 cycles per second (room speed). LOL.


[edit]
Check this out for a laugh.

Nocturne is about to ban me from the GMC.

(http://www.win32developer.com/general_images/dafaq.png)

This is the post that is getting banned apparently. I changed my avatar to Nocturnes one as a joke (clearly we can't change our usernames though).

The joke was well recieved as you'll see. :)

http://gmc.yoyogames.com/index.php?showtopic=639347&p=4662401

Also added a suggestion topic that might amuse you guys :)

http://gmc.yoyogames.com/index.php?showtopic=639376
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 27, 2014, 12:55:05 pm
Beowolf, I tested and can verify the only time it will do that (that I'm aware of) is if you try to put BrowserCreate() inside the step event. If you keep it in the create event like it is out-of-the-box and don't put it anywhere else this shouldn't be an issue, unless you found something I didn't.

I don't know if you care to do this but giving me your sample project would be a great help.

Edit. They've made quite the habbit out of banning people for no reason now for quite some time.

Edit2: if you really did set BrowserCreate() to fire every step, that's like trying to create an instance you only want to create once but because you put it in the step there will be an ever increasing duplicate of that instance to make you game get slower and slower until it eventually crashes. For this reason I'm considering to add a BrowserExists() function if you find that necisary. :)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 27, 2014, 01:28:38 pm
LOL @ Lonewolff poor guy, first it's code stealing, now avatar stealing...... (evil grin !)   ;D ;D ;D ;D  Yes how DARE you use someone elses avatar,  :P :P

(I'm kidding BTW), nice prank you pulled there, what a bunch of stuck up lads they are, they should look up the term "impersonating" someone.  and as far as I can tell Nocturne is not the copyright holder of the image is he ? So you didn't break any rules, nor was it your intentions to impersonate someone.

LOL.....you see, there is still some drama there too.   Guess you gotta be very careful now what you do and say on a forum, you may have the best of intentions but there will be some people who will crucify you !  And should they really decide to ban you there, honestly you are not missing much.  Nothing prevents anybody from creating fan GM forums or fan ENIGMA forums.

LOL @ your comment though, if people could not tell the difference between you and nocturne or do not read who is sending the message then they should get their bloody eyes checked or not bother on a forum.  Also considering that the mods and admins have their names in different  colours should be more than obvious.  So yeah now's not the time to be on their S list lonewolff, :P



Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 27, 2014, 06:12:33 pm
Beowolf, I tested and can verify the only time it will do that (that I'm aware of) is if you try to put BrowserCreate() inside the step event. If you keep it in the create event like it is out-of-the-box and don't put it anywhere else this shouldn't be an issue, unless you found something I didn't.

I don't know if you care to do this but giving me your sample project would be a great help.

Edit. They've made quite the habbit out of banning people for no reason now for quite some time.

Edit2: if you really did set BrowserCreate() to fire every step, that's like trying to create an instance you only want to create once but because you put it in the step there will be an ever increasing duplicate of that instance to make you game get slower and slower until it eventually crashes. For this reason I'm considering to add a BrowserExists() function if you find that necisary. :)

TKG - You have the same project as me. :P

I added your extension and hit 'run'.

Also - did you see your never review for the other extension. And don't stress. I am not puttng a review up of the browser one until we get it sorted (that way it'll be a 5 for that too) :)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 27, 2014, 06:39:31 pm
Okay well that's odd because that's not what it's doing for me. I don't know how to test if there's zero means for me to reproduce the issue. =/ What version of windows are you running it on? This is really weird.

Is anyone else having these issues? I updated the download links to the OP of this topic. Everything is the latest version. You don't need access to the marketplace, just download the zip, it has a gmx, also an egm and pre-built exe's in the the datafiles subfolder.

Edit. I've tested my browser DLL on two machines now, both of which work with it completely.I'm really stumped and don't know what to think. I don't know what is causing your problem. It's not doing that for me, and that's all I know.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 27, 2014, 07:56:31 pm
Just tested it on a 3rd computer, still works...
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 27, 2014, 10:55:44 pm
Hmmm, I'll re make the project add the extension and hit run and see what happens.

I love the idea behind the extension and can see a massive market for it (realtime in-game manuals, etc).

So I am certainly not saying your project is crap. Not by a long shot. Quite the opposite. :)

Does this have any additional dependenices that I might not have installed? VC redists, something else?

[edit]
Same result using your own example.

According to Dependency Walker you extension relies on IESHIMS.DLL

I have no idea what that is.

As a side tip, I always test everything I make on a clean install of Windows 7 (no additional software altogether). You find out pretty quick if it is going to break for the general public that way  (Y)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 27, 2014, 11:24:43 pm
I'll add that DLL to the package then. Thank you so much! Dependency walker, why didn't I think of that?

Yaaayyy!! Too bad it's midnight where I live. Nighty night. :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 12:01:49 am
Can you legally do that TKG ?

That DLL is part of Microsoft Internet Explorer and you should have that DLL inside your program files internet explorer.
It is the Microsoft Internet Explorer Compatibility Shims. People should have that on their system, as an alternative you could add the the location to the PATH environment from within your game, if not mistaken.

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 28, 2014, 12:38:07 am
No idea if that DLL is the problem. Just know that this extension doesn't do shit on my system as it stands :)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 01:13:44 pm
Darkstar2 if you really want to help please download it and run it. If you have no problems, I can verify Lonewolff has a virus and call it a day. You're right IESHIMS.DLL is a part of IE meaning every windows OS still on the planet has it. No need to distribute it.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 01:20:18 pm
Darkstar2 if you really want to help please download it and run it. If you have no problems, I can verify Lonewolff has a virus and call it a day. You're right IESHIMS.DLL is a part of IE meaning every windows OS still on the planet has it. No need to distribute it.

Is this compatible with ENIGMA because I do not use GMS currently and it is not installed.
BTW, I cannot download from the MarketPlace as I do not have an account in the MarketPlace.  Only MarketPlace account holders can......This is separate from the community and YYG account.  I also do not want to register on the market place for now,
PM me your extension here, if it is compatible with ENIGMA I will give it a try.

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 01:23:24 pm
Extract the webbrowser.zip and in the datafiles dir just run "WebBrowser.gmx.exe" that'd be great! :)

Download - https://db.tt/7jKQaYby
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 01:33:08 pm
Extract the webbrowser.zip and in the datafiles dir just run "WebBrowser.gmx.exe" that'd be great! :)

Download - https://db.tt/7jKQaYby

Will do TKG......Thanks. 
:D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 01:38:59 pm
Ok ran both EXE and all I get is a WHITE window area inside the main window and nothing.  The IE DLL has nothing to do, I tried placing the DLL inside the folder and same problem.  I will investigate this

and no TKG, we don't have viruses on our systems :D

BTW I am running Windows 7 64bit,
I do have IE as it came with windows, will investigate this further see if I can find the reason.

Cheers
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 01:52:11 pm
Interesting... I created the actual browser control DLL with a watered-down programming language known as BlitzMax. I'm requesting help and insight on their forum as we speak, worst case scenerio I'll have to re-write the entire extension in C++. :/

THANK YOU for your patience Lonewolff! I feel stupid now as 60+ people have downloaded my extension and it doesn't even work for anyone but me, damn, and I had no way of knowing that!
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 28, 2014, 01:58:29 pm
TKG are you making use of Windows dll's? If that's the case that is likely what is causing the Internet Explorer hell, also why Windows has dll hell. It's a problem specific to Windows operating systems and devices.

https://en.wikipedia.org/wiki/DLL_Hell

This is also why Microsoft has GUID's and why we see them in Studio, applications should have unique identifiers to avoid Microsoft API's from getting confused and reading another ones messages or interops.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa373931%28v=vs.85%29.aspx
https://en.wikipedia.org/wiki/COM_Interop

I don't know all the details about it, but I've definitely heard of this before.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 01:58:52 pm
Interesting... I created the actual browser control DLL with a watered-down programming language known as BlitzMax. I'm requesting help and insight on their forum as we speak, worst case scenerio I'll have to re-write the entire extension in C++. :/

Still no go, running both EXE, see window with an embedded white window but no browser..... I notice as if something is trying to to loop or move away from the window, when clicking on the window the caption area becomes blue then grey (in and out of focus).

I tried running from your EGM source, same issue.  Even the GMS compiled EXE behaves the same, as did the EGM compiled one.

This is interesting indeed, these kinds of problems might be an issue with 3rd party plugins DLL..... And yes I tried including the dependency DLL in the same folder, still no go, so that's not the issue.

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 02:02:07 pm
and I had no way of knowing that!

Actually you do, nothing prevents you from distributing the program to people with different configs to test your product first.
I would have helped you there testing it first before release, I'm sure others too.

So it does not work for anybody but you ?
could it have to do with what you used to create the plugin and how it was generated?

BTW I don't know if this is any relevant I tried running a trace on your program, monitoring what goes on and I can see in web browser it is generating buffer overflows and INVALID DEVICE warnings.
I will go try this plugin of yours in an old system with XP. will let you know.

// nope, same thing in another system in win XP.


Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 02:59:09 pm
THIS IS SO WEIRD...

I requested help on the official forums for what I used to make the DLL here...
http://www.blitzmax.com/Community/posts.php?topic=103217

This really sucks!
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 03:09:50 pm
From the traces I ran and my observation in the window forcing itself out of focus and the flickering hour glass, it seems like a conflict, and something is looping indefinitely, a trace showed buffer overflows and invalid device (when tracing your browser plugin through process monitor) - Congratulations TKG, you may be an actual victim of DLL hell !

Perhaps someone on the blitz forum can help you there.

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 03:25:20 pm
It would be so much easier if I could test this myself on a machine that is having the trouble you guys are.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 03:35:39 pm
It would be so much easier if I could test this myself on a machine that is having the trouble you guys are.

Could you describe the machines you ran this successfully on ? including OS/type, etc?
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 03:43:21 pm
All three tested Windows 7. I don't think my OS is the problem but I have a few ideas crazy enough they might work, you mentioned the window foucs switching repeatedbly between the browser control  and the game window, I have a possible fix I'm working on will share a link in a couple short minutes. Thank you for taking your time to test Darkstar2 and Lonewolff! You guys are life savers! :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 03:51:52 pm
@Darkstar2 let me know if this makes any difference, replace  WindowStyler.dll in the datafiles dir with this:

https://dl.dropboxusercontent.com/u/79893663/Extensions/Window%20Styler/downloads/temp/WindowStyler.dll

Then run WebBrowser.egm.exe because it reads the dlls in that directory. the GMS version has them built-in so don't run that.

I'm certain this won't fix everything but it might fix the window focus problem.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 04:22:28 pm
It made it FAR WORSE :D it's now creating several windows of itself when clicking mouse,
still the window loses focus as soon as run.
It was so bad, I had to manually end the process in task manager :D

I suspect the problem might have to do with the styler.

Could you try sending me a browser example, WITHOUT the styler or any calls to the styler, just the embedding browser.

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 04:26:34 pm
Okay with this version I commented out all windowstyler calls.

https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/downloads/temp/WebBrowser.gms.exe

Thanks

if that doesn't help I just romoved all step event code with this version in hopes it'll remove that looping issue

https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/downloads/temp/WebBrowser2.gmx.exe
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 04:29:56 pm
Okay with this version I commented out all windowstyler calls.

https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/downloads/temp/WebBrowser.gms.exe

Thanks

lol thanks I already went ahead and did that, still same problem.  I tried making changes to the code, modifying stuff, removing stuff, same stuff... I tried running the barebones browser plugin without embed, white area....and flickering hourglass/arrow, it's as if it is retrying in a loop of some sort.

Sorry.

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 04:36:26 pm
This one will take you to an automatically generated webpage saying in big bold text "POOP!"

https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/downloads/temp/WebBrowser3.gmx.exe

please try it we're getting warmer!
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 04:38:50 pm
Are we ???? because it feels colder to me :D
BTW I tried stuff on my own here, I tried local HTML viewing, same problem.
I tried disabling web styling, I tried changing other things.  there is one thing I have in mind I will go check.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 04:39:36 pm
did you try that most recent link? What'd do?
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 04:42:53 pm
It displayed POOP in a white background - however there is still the problem of window losing focus, (by losing focus I don't mean disappearing, it is the caption area that goes from gradient blue to grey as if it was a stay on top and you tried clicking on another window, when clicking in caption area it becomes blue again, but when clicking in any area inside client area it loses focus.
But yeah, I see the word poop. lol!

BTW, this topic should be moved to work in progress as I think we all agree that this is not a finished game :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 04:49:22 pm
THATS IT I KNOW THE PROBLEM!!!

I have to do something real quick and I'll edit after. :)

The losing focus issue is because the browser controll is a seperate window being embedded in there, there's no way to fix that unless I re-write in c++.

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 28, 2014, 04:50:38 pm
Quote
The losing focus issue is because the browser controll is a seperate window being embedded in there, there's no way to fix that unless I re-write in c++.
Not necessarily, can't you just intercept the messages from the browser control handle?
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 05:10:14 pm
Okay THIS should work but if it doesn't I know what the problem is ahead of time I just need to make sure!

Try this:

https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/downloads/temp/WebBrowser.exe

and aside from the window focus we should be good to go! THANK YOU! :D :D


@Robert I don't want to eat up your time but if you'd like to show me an example code snippet I'd appreciate it. :) It's not a contol, it's a control inside a window being created by the DLL, and then that window is being embedded into the game with SetParent().
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 05:15:06 pm
It works, and as you know, still the focus problem.

:D
Ok the losing focus thing might be due to the embedded window within a window and so that takes "priority", if you click outside the embedded browser area the initial window is back in focus, if you click on the browser area the caption turns grey as the focus is placed on the embedded browser. since the browser itself is another window.  So in theory this should be normal behaviour, as only one windows at a time can be in focus,
and since the embedded window has no border, it gives a weird impression although it's acting normal...You can switch back and forward focus, now when clicking on the initial window, it does not force itself to lose focus, but stays in it, unless you press inside the embedded area.


Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 05:15:41 pm
HECK YEAH! :D :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 05:20:00 pm
HECK YEAH! :D :D

You mind telling us what you changed for it to work? And I am still very curious to know how the hell it managed to work on your end without the changes and not for anybody else......this is definitely strange, but glad you got it working.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 28, 2014, 05:23:38 pm
TKG, ok, do you have the handle to the control? What you would want to do is intercept all of its window messages, but I don't think that can be done without directly controlling it and delegating the messages.

It goes like this, in order to get WM_SIZE or WM_PAINT or other messages from the window, we hand it a process to its class/container which is used to create the window.
https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Platforms/Win32/WINDOWSmain.cpp#L224
We then process the messages.
https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Platforms/Win32/WINDOWScallback.cpp#L72
And if we want we can optionally pass messages right back to Win32 for Windows to handle the message itself.
https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Platforms/Win32/WINDOWScallback.cpp#L247

So what I am wondering if there is a way to take the handle of your control and attach it a message process after it has already been created. These are formally called Window Procedures.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms632593%28v=vs.85%29.aspx

Found it
Use SetWindowLong with GWL_WNDPROC and you can change the window procedure to your own function and intercept all messages from the child control.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633591%28v=vs.85%29.aspx
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 05:49:41 pm
So how do I do that?
Code: [Select]
SetWindowLong(apphwnd, GWL_WNDPROC, ?);
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 28, 2014, 05:52:11 pm
5 Star'd ya!

Please send your money order to Rob now ;)

I fixed your first extension, Rob fixed your second. Do we try the third and fourth ones now :P
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 05:55:14 pm
First I'll need to ask daddy for money because I'm unemployed, and never had a job :P (which makes me a loser due to my age)

Thanks Lonewolff!!!! This wouldn't be possible with you and darkstar2! and Robert!

And did it really work? I'm still surprised darkstar because that was literally pure luck I have no idea how I got it working but I guess it is.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 28, 2014, 06:01:06 pm
Yep, haven't tested thoroughly yet. But looking good  (Y)

So, I have no idea what is different on your system to that of everyone else.  ???

Probably some wierd dependency somewhere and possibly pure luck that it worked for you in the first place.

If it turns out it is stable (checking now), I'd certianly up the price to $9.99 if I were in your shoes. Up to you though. :)

P.S. do you have the ability to delete your follow up comments on the ratings? I'd do that if I were you also. It'll look better for you as a seller. People will assume that these have always been stable from the start then. :)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 28, 2014, 06:05:24 pm
Quote from: TKG
So how do I do that?

Like this...

Code: (cpp) [Select]
LRESULT CALLBACK DllChildWndProc (HWND hWndParameter, UINT message,WPARAM wParam, LPARAM lParam)
{
  switch (message) {
    case WM_CREATE:
      return 0;
  }
  return DefWindowProc(hWndParameter, message, wParam, lParam);
}

void somefunctionwhereyouwanttotakecontrolofthechildwindow() {
  SetWindowLong(childWindowhWnd, GWL_WNDPROC, DllChildWndProc);
}

Then you have complete control over all messages for the child control. (Y)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 28, 2014, 06:06:45 pm
Tested some more - It is freakin awesome! (Which I figured it would be - as long as it worked  :D)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 06:10:11 pm
Thank you Bob! I'm on my hour break that my parents require me every 2 hours but when I'm back I'll add that. It's very useful! I've been wondering how to fix the window focus for more than a week now, so I'm very excited to get this done!

Thanks again Beowulf! ;D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 28, 2014, 06:12:06 pm
I'm on my hour break that my parents require me every 2 hours.

Dafaq? You coding from the asylum?

Things are starting to make sense now  :D

[edit]
Don't forget the two hourly medication too!  ;D (LOL - JK :))
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 28, 2014, 06:21:02 pm
Quote from: TKG
Thank you Bob!
No problem but the point is I was trying to show you that you do not have to switch from using BASIC to accomplish it. I just don't know the BASIC counter part off hand but as long as this BASIC language lets you do windows and loops and handles you should not have to switch languages.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 06:30:31 pm
Yes the basic programming language of blitzmax created the browser control and window, but the rest (like embedding that window in the game) I'm doing in C++.  It's a lot of nails, spit, glue, and duct tape but it's getting there. :P
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 28, 2014, 06:41:49 pm
5 Star'd ya!

Please send your money order to Rob now ;)

I fixed your first extension, Rob fixed your second. Do we try the third and fourth ones now :P

Actually it is TKG himself who fixed it, Robert assisted with the window focusing thing, that was a separate problem, the main problem was the browser not displaying.  You see TKG ? Next time before releasing something on the market, get it tested by as many people as possible, as you can see many people willing to help, and rule of thumb, just because it works on your system does not mean it will on everyone's, especially when you are dealing with plugins/dependencies, etc. It's better to be safe and sure.

First I'll need to ask daddy for money because I'm unemployed, and never had a job :P (which makes me a loser due to my age)

YYG is hiring....You are in Scotland right ?  ;D

And did it really work? I'm still surprised darkstar because that was literally pure luck I have no idea how I got it working but I guess it is.

Too bad you don't remember what you changed that would have been helpful for future reference and learning experience.
But that won't always happen though, luckily this one story ends well :D

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 28, 2014, 07:02:55 pm
TKG - how did you get the child window inside the GM:S window without GM:S painting over the top?

I have recently been trying to do something different with GM:S, but no way can I stop GM:S painting over my new child window.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 28, 2014, 07:07:36 pm
Quote from: Darkstar2
YYG is hiring....You are in Scotland right ?
He's actually in Chinatown right now.

And this is what he looks like in Chinatown with no meds.
(http://1000funnypictures.com/wp-content/uploads/The-Chinese-Pig-Funny-People.jpg)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 07:29:43 pm
TKG - how did you get the child window inside the GM:S window without GM:S painting over the top?

I have recently been trying to do something different with GM:S, but no way can I stop GM:S painting over my new child window.
If you want child controls (buttons, checkbox, listview, embedded windows, etc) you need to set the main game window to clip children, for example:

Code: [Select]
SetWindowLongPtr(window_handle(),GWL_STYLE,WS_VISIBLE|WS_SYSMENU|WS_BORDER|WS_CAPTION|WS_CLIPCHILDREN)WS_CLIPCHILDREN must be added to the window's styles every step otherwise the clip settings will return to default which disables clipping children.

Edit: Robert is at it again he thinks I live in china town because facebook showed him my posting location WITH THE WRONG LOCATION. :P lol
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 28, 2014, 07:39:47 pm
Robert I tried your code and it threw errors. Are you sure what you provided is correct? The only thing I changed was I replaced the child window arg to use the handle to the child window, which I take is what I was supposed to do.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 29, 2014, 09:28:20 pm
TKG - found another oddity also. Probably to do with playing around with the windows. But, have you noticed this?

Quote
Powered by GameMaker:Studio

window_set_caption() won't override the free advertising either (like it does in newly created projects).

Are you actually working for YYG?  :D

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 29, 2014, 09:32:38 pm
TKG - found another oddity also. Probably to do with playing around with the windows. But, have you noticed this?

Quote
Powered by GameMaker:Studio

window_set_caption() won't override the free advertising either (like it does in newly created projects).

Are you actually working for YYG?  :D

I would actually not be surprised LOL!
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 29, 2014, 09:37:14 pm
See, he was 'the mole' all along. Throwing slander at me to take focus off himself  ;)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on September 29, 2014, 09:39:22 pm
See, he was 'the mole' all along. Throwing slander at me to take focus off himself  ;)

LMAO!

So once GMS 2 comes out next year he'll have to make it up to you, at least now we know someone on the inside :P
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 29, 2014, 09:46:23 pm
See, he was 'the mole' all along. Throwing slander at me to take focus off himself  ;)

LMAO!

So once GMS 2 comes out next year he'll have to make it up to you, at least now we know someone on the inside :P

As long as I get a free copy :)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on September 29, 2014, 10:10:13 pm
Quote from: TKG
Robert I tried your code and it threw errors. Are you sure what you provided is correct? The only thing I changed was I replaced the child window arg to use the handle to the child window, which I take is what I was supposed to do.

I'd have to see the output TKG.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 29, 2014, 10:28:01 pm
That caption is due to the first room's creation code. I assume no one will actually use that example room other than to see the extension actually works. But people can just delete that room and modify the object to suit their needs and place it in a room they created themselves without the caption. The ENIGMA version does the same thing "Powered by ENIGMA" I did that to show it works in both game engines with the screenshots. ;)

@Christopher Robin I'll do it first thing I wake up tom it's midnight AGAIN...
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on September 29, 2014, 10:35:31 pm
Ah got ya :)

I thought it might be GM:S being a turd.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 29, 2014, 10:43:01 pm
Maybe it was, or maybe I'm being a turd.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on September 30, 2014, 12:58:19 pm
Quote from: TKG
Robert I tried your code and it threw errors. Are you sure what you provided is correct? The only thing I changed was I replaced the child window arg to use the handle to the child window, which I take is what I was supposed to do.

I'd have to see the output TKG.

At this point I'm afriad to mess with the code because I don't want to break anything due to window focus which isn't really that big of a deal if you ask me. I will fix it, I just have more pressing things to do for now. Thanks for the help! :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 02, 2014, 12:45:20 pm
I discovered all this time BrowserDestroy() wasn't working and it was never working to begin with. I only tested destroying the browser at game end which is stupid because when the game ends all child windows are closed automatically.Meaning if anyone wanted to close the browser at any point before the game ends, the window (until now) would still be there!

BrowserDestroy() is now fixed in the most recent Marketplace update, and from the same link in the OP. :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 02, 2014, 02:00:17 pm
Sorry for taking so long Bob, I have the code and error message at the ready.

Code:
Code: [Select]
#include "main.h"
#define DLL extern "C" _declspec(dllexport)
HANDLE handle=NULL;
HWND apphwnd;
HWND game;
HWND childhwnd;
RECT rect;

long LRESULT CALLBACK DllChildWndProc (HWND hWndParameter, UINT message,WPARAM wParam, LPARAM lParam)
{
  switch (message) {
    case WM_CREATE:
      return 0;
  }
  return DefWindowProc(hWndParameter, message, wParam, lParam);
}

void MergeChildWithParent(HWND childWindowhWnd) {
  SetWindowLong(childWindowhWnd, GWL_WNDPROC, DllChildWndProc);
}

int CALLBACK EnumWindowsProc(HWND hwnd, LPARAM param)
{
DWORD pID;
DWORD TpID = GetWindowThreadProcessId(hwnd, &pID);
if (TpID == (DWORD)param)
{
apphwnd=hwnd;
return false;
}
return true;
}

HANDLE StartProcess(LPCTSTR program,LPCTSTR args)
{

     HANDLE hProcess = NULL;
     PROCESS_INFORMATION processInfo;
     STARTUPINFO startupInfo;
     ::ZeroMemory(&startupInfo,sizeof(startupInfo));
     startupInfo.cb=sizeof(startupInfo);
     if(::CreateProcess(program,(LPTSTR)args,
                        NULL,
                        NULL,
                        FALSE,
                        0,
                        NULL,
                        NULL,
                        &startupInfo,
                        &processInfo))
        {
            WaitForInputIdle(processInfo.hProcess,INFINITE);
::EnumWindows(&EnumWindowsProc,processInfo.dwThreadId);
        hProcess=processInfo.hProcess;
        }
     return hProcess;
}

DLL double HostingStartEmbed(double WindowHandle,char *Exe,char *Title,char *Class)
{
    if (handle!=NULL)
{
    TerminateProcess(handle,0);
    handle=NULL;
}

    game=FindWindow("YYGameMakerYY",NULL);

    if ((HWND)(DWORD)WindowHandle!=NULL)
    {
    childhwnd=FindWindow(Class,Title);
    GetClientRect((HWND)(DWORD)WindowHandle,&rect);
    handle=StartProcess(Exe,"");

    if (childhwnd==NULL)
{
        if(apphwnd!=NULL)
        {
            ::SetParent(apphwnd,(HWND)(DWORD)WindowHandle);
            SetWindowLong(apphwnd, GWL_STYLE, WS_VISIBLE);
            ::MoveWindow(apphwnd,rect.left,rect.top,rect.right,rect.bottom, true);
        }
}
else
    {
        ::SetParent(childhwnd,(HWND)(DWORD)WindowHandle);
        SetWindowLong(childhwnd, GWL_STYLE, WS_VISIBLE);
        ::MoveWindow(childhwnd,rect.left,rect.top,rect.right,rect.bottom, true);
    }
    }
    else
    {
    childhwnd=FindWindow(Class,Title);
    GetClientRect(game,&rect);
    handle=StartProcess(Exe,"");

    if (childhwnd==NULL)
{
        if(apphwnd!=NULL)
        {
            ::SetParent(apphwnd,game);
            SetWindowLong(apphwnd, GWL_STYLE, WS_VISIBLE);
            SetWindowLong(apphwnd, GWL_EXSTYLE, WS_EX_APPWINDOW|WS_EX_TOOLWINDOW);

            ::MoveWindow(apphwnd,rect.left,rect.top,rect.right,rect.bottom, true);
        }
}
else
    {
        ::SetParent(childhwnd,game);
        SetWindowLong(childhwnd, GWL_STYLE, WS_VISIBLE);
        ::MoveWindow(childhwnd,rect.left,rect.top,rect.right,rect.bottom, true);
    }
    }

return 0;
}

DLL double HostingEndEmbed()
{
    if (handle!=NULL)
{
    TerminateProcess(handle,0);
            handle=NULL;
}
return 0;
}

DLL double HostingSetRectangle(double Left,double Top,double Right,double Bottom)
{
    if (childhwnd==NULL)
{
        if (apphwnd!=NULL)
        {
            ::MoveWindow(apphwnd,Left,Top,Right,Bottom,true);
        }
}
else
    {
        ::MoveWindow(childhwnd,Left,Top,Right,Bottom,true);
    }
return 0;
}

Error:
Code: [Select]
s\HostExe\main.cpp|9|error: expected initializer before 'DllChildWndProc'|
||=== Build finished: 1 errors, 0 warnings (0 minutes, 0 seconds) ===|

Note: apart from fixing that error I'm aware I'll still have more to do but one thing at a time I guess.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 02, 2014, 02:52:29 pm
Okay scratch what I said in the above post, it will compile fine now..
Code: [Select]
#include "main.h"
#define DLL extern "C" _declspec(dllexport)
HANDLE handle=NULL;
HWND apphwnd;
HWND game;
HWND childhwnd;
RECT rect;

LRESULT CALLBACK DllChildWndProc (HWND hWndParameter, UINT message,WPARAM wParam, LPARAM lParam)
{
  switch (message) {
    case WM_CREATE:
    return 0;
    break;
  }
  return DefWindowProc(hWndParameter, message, wParam, lParam);
}

void MergeChildWithParent(HWND childWindowhWnd, UINT message,WPARAM wParam, LPARAM lParam){
  SetWindowLong(childWindowhWnd, GWL_WNDPROC, DllChildWndProc(childWindowhWnd,message,wParam,lParam));
}

int CALLBACK EnumWindowsProc(HWND hwnd, LPARAM param)
{
DWORD pID;
DWORD TpID = GetWindowThreadProcessId(hwnd, &pID);
if (TpID == (DWORD)param)
{
apphwnd=hwnd;
return false;
}
return true;
}

HANDLE StartProcess(LPCTSTR program,LPCTSTR args)
{

     HANDLE hProcess = NULL;
     PROCESS_INFORMATION processInfo;
     STARTUPINFO startupInfo;
     ::ZeroMemory(&startupInfo,sizeof(startupInfo));
     startupInfo.cb=sizeof(startupInfo);
     if(::CreateProcess(program,(LPTSTR)args,
                        NULL,
                        NULL,
                        FALSE,
                        0,
                        NULL,
                        NULL,
                        &startupInfo,
                        &processInfo))
        {
            WaitForInputIdle(processInfo.hProcess,INFINITE);
::EnumWindows(&EnumWindowsProc,processInfo.dwThreadId);
        hProcess=processInfo.hProcess;
        }
     return hProcess;
}

DLL double HostingStartEmbed(double WindowHandle,char *Exe,char *Title,char *Class)
{
    if (handle!=NULL)
{
    TerminateProcess(handle,0);
    handle=NULL;
}

    game=FindWindow("YYGameMakerYY",NULL);

    if ((HWND)(DWORD)WindowHandle!=NULL)
    {
    childhwnd=FindWindow(Class,Title);
    GetClientRect((HWND)(DWORD)WindowHandle,&rect);
    handle=StartProcess(Exe,"");

    if (childhwnd==NULL)
{
        if(apphwnd!=NULL)
        {
            ::SetParent(apphwnd,(HWND)(DWORD)WindowHandle);
            SetWindowLong(apphwnd, GWL_STYLE, WS_VISIBLE);
            ::MoveWindow(apphwnd,rect.left,rect.top,rect.right,rect.bottom, true);
        }
}
else
    {
        ::SetParent(childhwnd,(HWND)(DWORD)WindowHandle);
        SetWindowLong(childhwnd, GWL_STYLE, WS_VISIBLE);
        ::MoveWindow(childhwnd,rect.left,rect.top,rect.right,rect.bottom, true);
    }
    }
    else
    {
    childhwnd=FindWindow(Class,Title);
    GetClientRect(game,&rect);
    handle=StartProcess(Exe,"");

    if (childhwnd==NULL)
{
        if(apphwnd!=NULL)
        {
            ::SetParent(apphwnd,game);
            SetWindowLong(apphwnd, GWL_STYLE, WS_VISIBLE);
            SetWindowLong(apphwnd, GWL_EXSTYLE, WS_EX_APPWINDOW|WS_EX_TOOLWINDOW);

            ::MoveWindow(apphwnd,rect.left,rect.top,rect.right,rect.bottom, true);
        }
}
else
    {
        ::SetParent(childhwnd,game);
        SetWindowLong(childhwnd, GWL_STYLE, WS_VISIBLE);
        ::MoveWindow(childhwnd,rect.left,rect.top,rect.right,rect.bottom, true);
    }
    }

return 0;
}

DLL double HostingEndEmbed()
{
    if (handle!=NULL)
{
    TerminateProcess(handle,0);
    handle=NULL;
}
return 0;
}

DLL double HostingSetRectangle(double Left,double Top,double Right,double Bottom)
{
    if (childhwnd==NULL)
{
        if (apphwnd!=NULL)
        {
            ::MoveWindow(apphwnd,Left,Top,Right,Bottom,true);
        }
}
else
    {
        ::MoveWindow(childhwnd,Left,Top,Right,Bottom,true);
    }
return 0;
}
But I have no idea what to do next. Or.. Is there still something wrong with what I have right now?
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on October 02, 2014, 04:45:55 pm
Oh you fixed it? I was going to say that I don't know where that long came from but get rid of it. If that fixes it then yes, you are headed in the right direction!  (Y)

Now you can attach your child control when you create it to that message loop and intercept focus events.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646283%28v=vs.85%29.aspx

Just like we do for our main window in ENIGMA.
https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Platforms/Win32/WINDOWScallback.cpp#L99
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 02, 2014, 06:03:51 pm
@Bob

Turns out I found a super easy fix which had nothing to do with any of your suggestions. Thanks anyways.

It makes the child window and parent have the same focus at all times. it works great with all window styles except fake fullscreen but I'm sure it won't be long now before I fix that too.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on October 02, 2014, 06:10:49 pm
Excellent, either way TKG if you do want to intercept any other messages from that child you now have to code! This is useful for instance if you wanted to add a little X close button to your controls like YYG does on some of theirs. Glad you got it working!  (Y)
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 02, 2014, 09:59:06 pm
Thank you Bob, you're too kind. :)

The window focus issues that "Web Browser" and "Embed Program" aka "HostExe" had are no longer present. I fixed them, and the new version is now public both on the GMStudio Maketplace and in the OP download links! :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on October 02, 2014, 10:02:03 pm
You go TKG you're becoming a software develop boss my friend  :D :D :D :D :D :D :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 02, 2014, 10:27:40 pm
Thanks but I can't really compare to your genius. ;D I still can't contribute to ENIGMA effectively because of my limited C++ knowledge.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on October 03, 2014, 12:29:04 am
Thanks but I can't really compare to your genius. ;D I still can't contribute to ENIGMA effectively because of my limited C++ knowledge.

The world does not evolve around C++, even though the entire universe was coded in C++, you still are willing and persistent and learn quickly, so you got very good attributes and skills you might not even know of....that's a good asset to go forward.  One thing you should polish a bit is debugging - learning how to find bugs, testing for them, testing different possibilities to generate bugs, etc.....and if you can master that you are on a way .......... then you can actually debug lonewolf's stuff too :P :P :P



Title: Re: Window Styler, Web Browser, and Embed Program
Post by: TheExDeus on October 03, 2014, 06:18:11 am
Quote
The world does not evolve around C++
Blasphemy!
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: edsquare on October 03, 2014, 01:59:45 pm
Quote
The world does not evolve around C++
Blasphemy!

Sadly, until they develop a true compiler for Python, Harri is right, the world does evolve and revolve around C++  >:(
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: TheExDeus on October 03, 2014, 02:34:24 pm
Python is bad not because of its speed, it's bad because of its syntax. <Runs away now before nukes drop>
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on October 03, 2014, 02:55:18 pm
Quote
The world does not evolve around C++
Blasphemy!

Correct, I fixed my post ! lol!

What I actually meant was that he should not be discouraged because he is not as skilled in C++ to contribute to code, he has the skills to get there eventually......There are many skilled people in the field who don't know C++......

BTW, I fixed my post, the entire universe and world and experiment simulation we call life, was actually coded in C++ :D So I was mistaken :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on October 03, 2014, 02:56:20 pm
Quote
The world does not evolve around C++
Blasphemy!

Sadly, until they develop a true compiler for Python, Harri is right, the world does evolve and revolve around C++  >:(

It might evolve around C++ but most people you ask probably never heard of C++... and probably think it is a vitamin supplement LOL!

Title: Re: Window Styler, Web Browser, and Embed Program
Post by: edsquare on October 03, 2014, 03:01:40 pm
Python is bad not because of its speed, it's bad because of its syntax. <Runs away now before nukes drop>

What nukes? I'm sending the PGJ (Procuraduria General de Justicia - A branch of the mexican police famous for getting you to confess the murder of Pancho Villa if they so choose)  :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: edsquare on October 03, 2014, 03:02:33 pm
Quote
The world does not evolve around C++
Blasphemy!

Sadly, until they develop a true compiler for Python, Harri is right, the world does evolve and revolve around C++  >:(

It might evolve around C++ but most people you ask probably never heard of C++... and probably think it is a vitamin supplement LOL!

The world at large yes, but I thought we were talking about the software development world.  :(
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on October 03, 2014, 03:05:17 pm
Python is bad not because of its speed, it's bad because of its syntax. <Runs away now before nukes drop>

What nukes? I'm sending the PGJ (Procuraduria General de Justicia - A branch of the mexican police famous for getting you to confess the murder of Pancho Villa if they so choose)  :D

YIKES! Brace yourselves.
:D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: TheExDeus on October 03, 2014, 03:06:12 pm
Quote
confess the murder of Pancho Villa if they so choose
I will confess to that. But python being better than C++? Never!
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: edsquare on October 03, 2014, 03:09:24 pm
Quote
confess the murder of Pancho Villa if they so choose
I will confess to that. But python being better than C++? Never!

It's said that once they got an elephant to admit he was the mouse that stole the presidents cheese  :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on October 04, 2014, 06:12:37 pm
then you can actually debug lonewolf's stuff too :P :P :P

Hehe - i am my own worst critic, if I sense there is a bug lurking. I hold off release.

The general public do some weird shit though. You find out pretty quickly if there are bugs upon release :P
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 04, 2014, 10:22:01 pm
Quote
confess the murder of Pancho Villa if they so choose
I will confess to that. But python being better than C++? Never!

It's said that once they got an elephant to admit he was the mouse that stole the presidents cheese  :D

I like playing golf while children are being beheaded in Syria, does that make me a donkey?
(http://assets.hightimes.com/ObamaLaughing.jpg)

Well, that is the democrat animal. But I prefer the term ass.

I like assigning healthcare to screw the whole nation over while not effecting myself or the government itself, does that make me an ass?
(http://assets.hightimes.com/ObamaLaughing.jpg)

No. It means you're on something.

Can we please leave irrelevent politics shit out of my topic? k' thanks! ;) :P
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on October 05, 2014, 04:58:39 pm
Yes don't get me started either, Bush created the drone program. Clinton signed Glass-Steagall deregulating the banks, Bush expanded Housing and Urban Development giving poor people homes they can't afford, both crashed the economy, and Obama hasn't done anything to fix it.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 05, 2014, 06:06:37 pm
Agreeing with everything you just said. We've never really had a "good" president since Abraham Lincoln. Whether Republishit or Democrap.

Back on topic. My browser extension's crashing problem when calling BrowserDestroy() is finally fixed. Whoop whoop. ;D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on October 05, 2014, 06:26:38 pm
How'd you fix it?
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 05, 2014, 07:05:47 pm
Instead of destroying the window, it now just hides it. When a new BrowserCreate is called the window reappears with the new url. When the browser is hidden it is also disabled, meaning if you play a YouTube video and "hide" the browser in the middle of the video playing, the audio will stop, giving the end user the impression the control is actually destroyed. This won't lag games because when the browser is hidden it's nothing more than 1 small disabled window running in the background (no webpage still open).

I discovered YYG was forcing that crash intentionally. They think it's "malicious" to use GM for DestroyWindow() calls. Or at least it could be used for something bad. I think.

PS the browser is forced to legitimately close at game end automatically, which does work.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on October 05, 2014, 07:12:24 pm
TKG, oh wow that's funny, they think someone will hide the window and create a new virus one or something lol. Newsflash, they can still do it with create window, and it's not something they couldn't just do in C++ without GM. I can guarantee you it would work with ENIGMA.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 05, 2014, 07:17:26 pm
I can guarantee you it would work with ENIGMA.

And it did, when I was still working on that version that crashed with GMS it didn't do that with ENIGMA when I tested the same code and everything.

Edit.

That's not all, for the same reasons they've sandboxed GMS's file system if you haven't heard already.

Search "File System Limits" in their docs - http://docs.yoyogames.com/
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Goombert on October 05, 2014, 08:13:18 pm
TKG, I am aware of the built-in limits, but are you saying that you literally can't even get out of that sandbox with extensions, like, at all?
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 05, 2014, 08:17:22 pm
No you can still break it with extensions. My bad. That's not what I meant.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 07, 2014, 06:56:56 pm
This is a little shout-out, props to lonewolff for showing me the correct way of using window_handle(). All my extensions as of right now are using the correct method thanks to him, which has completely fixed a ton of bugs I discovered! Thank you wolfie!! :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: lonewolff on October 08, 2014, 02:30:51 am
This is a little shout-out, props to lonewolff for showing me the correct way of using window_handle(). All my extensions as of right now are using the correct method thanks to him, which has completely fixed a ton of bugs I discovered! Thank you wolfie!! :D

Now worries man!

How are you going with downloads? Many people getting your extensions yet?

BTW - I have just cracked $426 Yoyo-Dolla's. Still wont see my first payment until end of this year though - friggin Yoyo...
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 08, 2014, 12:04:52 pm
Thanks for asking, here's my current results. ;D

Horror Music - 44 (when it was free, still no buys)
Execute Program - 69
Embed Program - 53
Window Styler - 75
Web Browser - 71
Set Display - 16
Horror Voices - 4

I'm sorry to hear that, you should really get that money sooner. Darn YoYo.
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on October 08, 2014, 12:47:33 pm
TKG, I believe there is a reason why they hold on to the money for 60 days.  They use PayPal right ? They might have funds on hold for a certain period, and also to protect against dispute/chargebacks, but perhaps other internal reasons, sending bulk payments instead.

Still an accounts receivable though.  IF you deal with most affiliate programs online where you earn, (from legit sources that is) that's about the time you wait.

and BTW, lonewolff's video plugin sold well because his product was HIGH DEMAND.  As far as music and sounds, that is harder due to competitiveness and the availability of many samples online and there is other reasons as well due to the "demographics" of GM (lone knows what I'm talking about :D)

Keep in mind TKG you have other venues to sell your products, the YYG market place might not be the best place. :D at least not for this category :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: time-killer-games on October 08, 2014, 01:12:05 pm
Thanks for the info Darkstar2 so you know I wasn't bashing YYG again as I'm past that phase (destructive to this community and it's growth) I was just agreeing with Beowulff because I didn't know the reason behind it or who's fault it really is.

I'm trying to get back on the GMC and need to be on my best behavior until the day I die.

I've considered selling elsewhere already, and here's a start:
https://www.scirra.com/store/royalty-free-music/horror-music-283

Got 1 buy and it was only live for a couple weeks on Scirra! Woohoo! I just made 0.5 dollars! :D
Title: Re: Window Styler, Web Browser, and Embed Program
Post by: Darkstar2 on October 08, 2014, 01:54:55 pm
Thanks for the info Darkstar2 so you know I wasn't bashing YYG again as I'm past that phase (destructive to this community and it's growth) I was just agreeing with Beowulff because I didn't know the reason behind it or who's fault it really is.

lol - I could care less though because when properly backed up with arguments they do, they are still far from flawless, but I do credit them sometimes, rarely, but fair is fair.  Chargebacks might not be the only reason.  When dealing with eCurrency you are subject to fraudulent funds.  If someone were to buy your products using a stolen PayPal or fraudulent funds, PayPal would reverse the money from YYG's account and return it to its rightful owner.  Imagine now if YYG paid you already.  So this way it protects YYG against chargebacks, disputes, fraudulent transactions, etc.  Only problem here is due to the selling of non tangible goods, someone could end up in theory buying your products with fraudulent funds, and still keeping it, despite money being reversed, as there is no way for YYG or the developer to know if you are still using your extension.

Welcome to the world of selling online......

Quote
I've considered selling elsewhere already, and here's a start:
https://www.scirra.com/store/royalty-free-music/horror-music-283

Careful, read the terms and condition for any exclusivity clause.  Some sites offer 2 tier commissions based on your plan, exclusive means you can only sell through their site, earn a higher commission or a much lower one but non exclusive.
I don't know how Market Place works or if YYG requires you remain exclusive to the market place....you have to check the agreement.....If they are giving you 70% I'd think there is some exclusivity clause somewhere though not sure on that.

Quote
Got 1 buy and it was only live for a couple weeks on Scirra! Woohoo! I just made 0.5 dollars! :D

Well that's a start :D remember volume......If you have 1 million people buy your 0.50 product......:D

There are people making a killing and big BIG figures, it all comes down to the product, demand, niche, etc.
Find something high demand, spectacular, high quality, and you basically are on your way.
But beware of competition, that's the thing........