Web.SetOnWindow(cb);
Web.SetOnRequest(cb); //Go Fullscreen, Set NavigationBar Color etc.
And fix the bug-> web_OnProgress(100); is called twice in the 3 devices I used( latest DroidScript Version)
Now:
Web.SetOnWindow(cb);-->should be called when page requests to open a new window. function OnWebViewWindow(url){}
Web.SetOnRequest(cb); -->(Could also include the above in a way).
This shod be called when the page makes a request--> eg. when js says Element.requestFullscreen();
, or when page wants to start sending notifications, or request to change the orientantion.
Anyway, handling requests that can be only applied by the application.
I think that was more clear.
And finally I remembered also these:
Web.SetOnAlert(cb);, Web.SetOnPrompt(cb);-->Stop giving to browser the access to the app alerts.
Web.GetFavIcon(); -->returns the page favIcon url to be shown at the top.
<form>Country code: <input type="text" name="country_code"
pattern="[A-Za-z]{3}" title="Three letter country code">
<input type="submit">
</form>
If you want to use an html form, you can wrap it in a WebView but I have posted a way to do something similsr with a TextEdit at https://groups.google.com/d/msg/androidscript/rLRkEhl1sCs/vGpW1_s3FQAJ
I would not suggest attempting to write either of those games in DroidScript, they are too complex.
Pubg is developed by 35 regular developers and 5 freelancers.
Neither of these is a job for a few part time developers or a tool like DroidScript.
For such real time online games like pubg, I suggest you take a look at the Google Firebase Realtime Database to combine it with DroidScript. You can use the Glview2 plugin I am working on because it is having a full list of functions to make a map view environment.
Functions like:
game.FocusObject(obj); //The map center will be the selected object, player.
game.SetOnAnimate(cb);
game.Update();//Updates the physics
function OnAnimate(){
//obj.frame returns an array of the game objects in the correct order to display.
game.frame.forEach(obj){
canvas.DrawImage(obj.img, obj.x,obj.y,obj.w,obj.h,obj.angle);
}
);
game.Animate();
}
The most important things:
Create for/while loops quickly.
Auto arrange for the code.
Note for names of objects, functions and variables if they are not ok (as pep8 in python and pycharm).
If there is a compile error show it in live (before I run the code).
This is only a few things (not to mention break points). As I said, there are many editors that you can take them as an example.
Regards
Omer Meshy
app.CreateLayout,Text,Image and all the DS (apart from some specific ones') to have the same result in a WebView.
I keep versions of all 4 files on my phone so I can do it when offline.
I keep them in 2 separate folders so I can rename apkbuilder_180X.zip to apkbuilder.zip
That's why I suggest if possible because it is painful for me to rename 3 files everytime mainly because of sms terms by Google Play
I need to trap any user clicks on urls or actions that lead to a new url being loaded, handle that and STOP it from loading.
There seems to be a java native solution and other languages have integrated similar solutions:
I've tried to use web.SetTouch.. But it only gets up, down, and move events on the "outside" of webview. Click inside the web doesn't pass through that function.
I do not want to modify the dom of the page, and there is no easy way to "call out" to the app anyway. I'm aware of .Execute() of course but that doesn't solve the problem.
Any solution at hand, or something that could be implemented? It seems to be trusted to WebViewClients etc.
I'd prefer if I could use DroidScript for this but no acknowledged from the team about indicate that i need to find another solution like use kotlin(?) Language platform that seems to support the requested feature.
I'm aware of a similar request years ago but it's different, in my case, or another case, using DroidScript doesn't seem to be feasible to implement a custom web browser with alternative popup menu when clicking on a link and stopping the page from being loaded.
Thanks
Sounds great! Can't wait. Lol
I suspected something like that.
However, I think it's recommended that the cancel should be determined by the returned result of the callback, if I'm reading other sources correctly. In most of my cases I will just record it, and return value to cancel, but occasionally may call upload.
Thanks,
Jonas
Two thing I've noticed:
1) If you edit the file outside, DS doesn't detect changes to the current opened file, I think it should and reload, unless there is local changes.
2) Not having emacs keystrokes is damning.
2a) actually it's missing many keybindings, and copy paste is difficult.
3) somehow the onscreen keyboard seems to be gone when I'm not having an external
Is there a way to make a custom editor, maybe the current editor could be made a JS plugin, and open, and one could then make custom editors? I've built an emacs clone in C in few hundred of lines (imacs).
Building one in JS shouldn't be that difficult.
Also, some kind of versioning would be great, maybe a git integration of a kind?
I do like the the .spk and how easy they are to share and install and run!
I remember in the beginning I was confused running examples, and trying to change them but it was never reflected the changes, maybe a button to make it copy to a project?
It may be a "messy" way to do it, but I've gotten a lot of git functionality to work just by direct access to the git binary via app.SysExec() and stdin/stdout. I don't know if this is an efficient way to do it by any means, or if it would even work on non rooted devices *_*...
Let us know what you want adding to DroidScript. We've got a growing 'Todo' list but we are not quite sure what people are going to want the most, so let us know in this thread.Don't worry the team has not forgotten there are still outstanding requests fromTell us what you want V2 https://groups.google.com/d/topic/androidscript/bAzdvU9s34c/discussionand evenTell us what you want https://groups.google.com/d/topic/androidscript/pwK56l5igkE/discussionThose that are considered practical are on the Todo list though some have a higher priority than others.And of course if you have a Premium subscription you have a good chance of getting higher up the priority list by posting inTell us what you want (Premium) https://groups.google.com/d/topic/droidscriptpremium/-5jm1ESfKrQ/discussionI would also like to make a few requests about posting in this threadThis is a place to request new features and enhancements to existing features, not for requests for coding help or general discussionIf you are not sure whether a feature exist, please start a new Question thread instead of posting here.If you receive a response that DroidScript does not currently exist, then by all means post here. It is quite likely the person answering your question wijj recommend it.If you see a request here for something that already exists, please do not start a lengthy discussion here.It is better to post details in a seperate Discussion thread and post a reply including a link to that thread.If you feel the need to repeat a request that was made by someone else in order to make it clear that there is significant demand for a specific feature, it is ok to do that once but multiple requests from the same person for the same feature are not a good way to motivate the team to be helpful.There is also little point in requesting a feature that you know has already been requested several times in the last few months.