Awesomium - Chromium based Framework

Share your advanced PureBasic knowledge/code with the community.
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: Awesomium - Chromium based Framework

Post by PMV »

it becomes more and more stable :lol:
Now i use it with my JSON-Include as a GUI, works great. 8)

update: (26.06.2012)
+ fixed: for ResourceRequestCallback(ID.i, *AweRequest.Awesomium_Request), now *AweRequest\Url returns full URL
+ fixed: Display issue for special width/ height values when using Awesomium-Gadget
+ fixed: Alpha-channel was lost for sprites because of DX9-bug. Now, as a workaround, when using mode #PB_Sprite_AlphaBlending, the whole sprite is repainted always!
+ added: Awesomium_JS_Execute(), Awesomium_JS_Execute_Return_XXX()
+ added: parameter "ChildProcessPath" for InitAwesomium() and an OSVersion()-check for windows, feature deactivated for linux because of missing code
+ added: parameter "PowerOf2" for CreateAwesomiumTexture() to always get a 2^X width and hight for texture. Attention: Will result in free space, right and bottom of texture, when width/ height is not 2^X! You will need to scale the texture with a material-script. There is currently no function in PB to scale the texture at runtime.
+ updated: Awesomium to version 1.6.6
+ updated: include works with PB4.61, too.

Bug in PB4.61:
Don't know if it is a bug, but now the painted texture is displayed
mirrored and normal at the same time, so you see two versions
and it switches rapidly. In this case TextureOutput() is not usable.
bug-report: http://www.purebasic.fr/english/viewtop ... =4&t=50375

MFG PMV
User avatar
zxtunes.com
Enthusiast
Enthusiast
Posts: 375
Joined: Wed Apr 23, 2008 7:51 am
Location: Saint-Petersburg, Russia
Contact:

Re: Awesomium - Chromium based Framework

Post by zxtunes.com »

Not work:

Image

PB4.61/W7/X64
ricardo
Addict
Addict
Posts: 2402
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: Awesomium - Chromium based Framework

Post by ricardo »

Same problem:

Image

What can i do to fix this?

I think im running PB 4.60
ARGENTINA WORLD CHAMPION
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: Awesomium - Chromium based Framework

Post by PMV »

my crystal ball says you should check why the
DLL is not loaded properly. :wink:
es_91
Enthusiast
Enthusiast
Posts: 242
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: Awesomium - Chromium based Framework

Post by es_91 »

Thank god for Awesomium! Thank god for PMV! :D
User avatar
tj1010
Enthusiast
Enthusiast
Posts: 623
Joined: Mon Feb 25, 2013 5:51 pm
Location: US or Estonia
Contact:

Re: Awesomium - Chromium based Framework

Post by tj1010 »

Last update was almost three years ago.. Looks like it's back to webgadget..

I actually had a automation tool based on this lib, because I don't have the time to develop my own based on Chromium or Gecko.

I don't think people realize it IS a "selling point" because it's next to impossible to do web automation or UIs without JS runtime and DOM states that actually work..
The truth hurts.
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: Awesomium - Chromium based Framework

Post by PMV »

Awesomium is not supporting C API anymore. So the only possibility to
get the latest version to work with PB would be to make a wrapper with
C++. Or we just wait, until Fred makes nativ C++ DLL support for
PureBasic. :twisted: :D

I still use the old version too, but there is a plan to make such a wrapper.
There is also another one like Awesomium, have forget what name it was.
That one is used by Steam for example. It has no C support but C++
support, too. So regardless if Awesomium or the other one ... this can
took a year until i can start with that task. :? I'm sorry.

Making a wrapper will take me a month i think, as i have to start from scratch :x
And i currently have no idea, when i will have that time.

MFG PMV
User avatar
tj1010
Enthusiast
Enthusiast
Posts: 623
Joined: Mon Feb 25, 2013 5:51 pm
Location: US or Estonia
Contact:

Re: Awesomium - Chromium based Framework

Post by tj1010 »

I've been seeing Gecko used. Kind of like how PB used Mozilla engine but now it's a newer version of Gecko.

EDIT: Doing things like using Not on strings and obsolete constants also breaks this lib with newer versions of PB.
The truth hurts.
soul14eagle
New User
New User
Posts: 3
Joined: Thu Mar 26, 2015 9:57 pm

Re: Awesomium - Chromium based Framework

Post by soul14eagle »

Please help me! I need update Awesomium.pbi for top version Awesomium (good if last version or version higher than 1.6.6.0)

who have updated Awesomium.pbi and ready help?

I'll be grateful to that man!
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: Awesomium - Chromium based Framework

Post by PMV »

Awesomium doesn't support C anymore, only C++ and .Net.
If you want Awesomium, you have to write a wrapper in C/C++ for PureBasic.

MFG PMV
soul14eagle
New User
New User
Posts: 3
Joined: Thu Mar 26, 2015 9:57 pm

Re: Awesomium - Chromium based Framework

Post by soul14eagle »

Who can write the Awesomium wrapper last ver in C/C++ for PureBasic?
soul14eagle
New User
New User
Posts: 3
Joined: Thu Mar 26, 2015 9:57 pm

Re: Awesomium - Chromium based Framework

Post by soul14eagle »

If anyone has last update or wrote the Awesomium wrapper last ver in C/C++ for PureBasic or alternative chromium framework/wrapper, please write me private message for partnership.
SeregaZ
Enthusiast
Enthusiast
Posts: 617
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: Awesomium - Chromium based Framework

Post by SeregaZ »

it have support https and java? i mean java applets, not scripts.
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Re: Awesomium - Chromium based Framework

Post by Poshu »

Alexi wrote:Wrapper is still working in PB 5.31+ on Windows 10. Actually the example just not targeting the DLL correctly (instead in temporary) and some small syntax changes. :D
Still work in 5.40 too but, if you don't want to spend half an hour to figure what's wrong, remember to use pb x86! (I forgot my default compiler was x64 =_=; )
normeus
Enthusiast
Enthusiast
Posts: 414
Joined: Fri Apr 20, 2012 8:09 pm
Contact:

Re: Awesomium - Chromium based Framework

Post by normeus »

I think people get put off when they read about licensing which is not free.

I just found out about "sciter32.dll"

http://sciter.com

which looks promising and on the instructions they say you can use C style calling. it only has one API call and and you have to define multiple prototypes for same API

Code: Select all

;not working code since I am going to bed now

sciterlib= OpenLibrary(#PB_Any,"G:\programming\sciter\bin\sciter32.dll")
If Not sciterlib : Debug "error sciter32.dll not found":End:EndIf
SciterAPI =GetFunction(sciterlib, "SciterAPI") ; one function only
Norm
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari
Post Reply