0 Favourites

C3 clipboard (Chrome Extension)

  • Copy and paste is disabled for chrome for security reasons. As it would allow apps to mine html5 apps to mine usful data.

    Here's a guide on how to get around it.

    https://www.lucidchart.com/techblog/2014/12/02/definitive-guide-copying-pasting-javascript/

    This is very annoying especially since C3 will be a webapp, and it's a very very useful or actually necessary feature, for working. I have seen several web-apps getting around this by having their own chrome extensions or chrome apps. I think it's something that C3 should consider to spend some time on. You can't work efficiently without proper copy/paste functionality.

    Ideally a link to this extension should be provided on construct.net page, or as a link in the editor.

    Any input on this Ashley or Tom

    Will the standalone version have this functionality?

    You can't work efficiently without proper copy/paste functionality, it's the only thing driving me nuts about C3 at the moment.

  • We already do everything that article says. It's also quite out of date now, new features have been added since 2014. But none of that solves the problem that JS can't cause a paste. You can already paste, by the way, you just have to use the system shortcut (e.g. Ctrl+V on Windows) or the browser menu which has cut, copy and paste options - it's just we can't add a corresponding menu option for that, and the shortcut doesn't work on mobile.

    The desktop build will be able to show a menu option for pasting. Otherwise I think it would be better to work around it by having a fake in-app clipboard that doesn't really paste from the clipboard, just the last thing you copied in the same instance of C3. This will have some quirks like not being able to copy-paste between two separate instances of C3, but at least you'll be able to use copy-paste from the menu.

    Overall it's pretty minor I think, you can still paste, it's just about whether or not we can display a menu option for it.

  • Ashley The problem is I'm working on a tablet (surface pro 4) most of the time, with no keyboard connected, using mostly touch and stylus to create games. This works pretty well in C2, except for a small little right click problem not triggering right click context menu, for touch or stylus... (solvable by 3rd party plugin)

    I really love the fact that i don't have to sit at a desk with a keyboard and mouse to be able to create games in C2. Usually I'm on my back in the sofa, in the bed, on the bus, on the airplane... C2 works pretty nicely this way even if it might not have been intended. Sure a laptop would probably work better, but as I'm working on a Tablet form factor machine I don't want to bring along keyboard and mouse everywhere.

    I would suggest you to get a Surface Pro 4 or similar type of machine to run C2/C3 on, using only touch and/or stylus. Quite a pleasure to work that way actually.

    Some features that already enables this type of developing is, autocomplete, clickable input bars with options. Even when I'm doing expressions I'm doing minimal input in terms of on-screen-keyboard presses. Usually first 2 letters of every command, followed by a click/touch.

    As much as I like what's going on with C3 (Right click touch and stylus finally working) ... but there's no proper cut and paste. I'm pretty sure you will solve it with the desktop version, as well as file handling (folders).

    But i just wanted to point you towards a new segment of users... tablet users

    If C3 can accommodate tablet users with nicely functioning touch/stylus input i think you have a huge new user base to explore. It would be my pleasure to provide a promo video how I do a complete game in C3 in a hammock, drinking pinacoladas, without ever touching a mouse or keyboard.

  • The desktop build will be able to show a menu option for pasting.

    Nice to know some features will be returning in the desktop version. Are you guys building your own wrapper for it? Will we have to wait long for it?

  • tunepunk Windows has a virtual keyboard if it helps.

    https://support.microsoft.com/en-us/hel ... n-keyboard

    I know it kind of a pain to use (I had a Windows tablet for a while), but maybe it can help until this problem gets fixed. Hmmm... it's a shame the keyboard doesn't have a cut and paste short-cut built into the keyboard like iOS. I use those short cuts all the time. Maybe there is a way to customize it?

  • Alright, I added a "fake clipboard" for r20. It just remembers the last thing you copied and enables "Paste" menu options based on that. Obviously it's not a real clipboard, so you can't do things like paste between editors, nor will copying something unrelated remove the "paste" options (which will keep pasting the last thing you copied within C3). However it means within the same C3 window you can use copy-and-paste via the menus.

    I'm slightly concerned this "not actually a real paste" feature could also be a gotcha for some people later down the line, but I do agree it's a basic feature and there should be some provision for it.

  • Alright, I added a "fake clipboard" for r20. It just remembers the last thing you copied and enables "Paste" menu options based on that. Obviously it's not a real clipboard, so you can't do things like paste between editors, nor will copying something unrelated remove the "paste" options (which will keep pasting the last thing you copied within C3). However it means within the same C3 window you can use copy-and-paste via the menus.

    I'm slightly concerned this "not actually a real paste" feature could also be a gotcha for some people later down the line, but I do agree it's a basic feature and there should be some provision for it.

    Thanks a lot. It will definitely help until we have a desktop version. I'd like you to keep in the back of your mind, tablet and other touch capable devices for C3. As I understand one of the biggest selling points is the multi platform support, and mobile version, so don't forget the in between people. using the non mobile version on tablets.

    I guess also there's many artists like me who despise coding but want to do games. And many artists use tablet form factor devices with drawing capabilities.

  • Ashley

    I get the feeling you're purposely ignoring my questions. If you are upset over the posts I made the other day, I apologize. I realize that I was a bit harsh and I shouldn't have said anything. Let bygones be bygones?

  • Moot, I recommend you not take responses or lack thereof personally on a web forum, or you'll probably end up like he-who-shall-not-be-named eventually.

    Just because Scirra actively engages with the community doesn't mean they owe everyone who asks a response (generally physically impossible due to being outnumbered, or that they would just never get any actual work done!).

    As for your specific question of " Will we have to wait long for it?", I would guess that he simply doesn't have an answer for that, and it would be silly of him to need to explain why he doesn't have an answer for it. There is no way of determining what your definition of a long wait is, and most likely there is no way of knowing exactly when or how long it will take get done at the moment anyway.

    Anyways TLDR I find it highly unlikely that anyone at Scirra would take your posts personally, so you shouldn't take what they say or don't say personally either.

  • As for your specific question of " Will we have to wait long for it?", I would guess that he simply doesn't have an answer for that, and it would be silly of him to need to explain why he doesn't have an answer for it. There is no way of determining what your definition of a long wait is, and most likely there is no way of knowing exactly when or how long it will take get done at the moment anyway.

    Sure, I get that. I was just making small talk anyway. I wasn't really expecting a specific answer to a vague question.

    Moot, I recommend you not take responses or lack thereof personally on a web forum, or you'll probably end up like he-who-shall-not-be-named eventually.

    I'm nothing like Lamar, so no one has to worry about me going psycho on the forum. For example, newt still takes jabs at me every once in a while, and I've still complimented him when he says something clever. I got into a heated exchange with Bleenx not too long ago, and I don't hate him for it. I respect him more for the way he handled it. Unlike Lamar, I try to be reasonable and knowledge strong points made against my opinion. So, long story short, there's nothing to worry about. I'm open to criticism and I don't take much of anything too personally.

    Just because Scirra actively engages with the community doesn't mean they owe everyone who asks a response (generally physically impossible due to being outnumbered, or that they would just never get any actual work done!).

    I don't feel I'm owed anything. I would like answers to my questions, but If he wants to ignore me, that's fine. It doesn't anger me. In fact, it just shows me he has strong character. A lesser person would have found a reason to ban me by now for my criticism, but he chose to ignore me. That takes restraint and maturity. I can respect that. It's never easy to take criticism, but I think he's dealing with it pretty nicely. Maybe I should show more restraint as well, and be patient. It's not all bad. There's far more good than bad with C3 and I'm confident things will get better.

    Back on topic: I'm happy about "fake clipboard" update! That's going to be very helpful.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • The forum gets literally hundreds of posts a day, and it's impossible to deal with everything. I'm also less inclined to reply to things I've answered elsewhere (we'll be using NW.js for desktop builds, but to be fair that's probably buried in the forum somewhere), or things which stray off-topic, or topics so tired I can barely bring myself to discuss them anymore ("my gpu is slow, HTML5 sucks" etc).

  • Fantastic to see, that the Copy paste is working a lot better now!. Good Job Ashley.

    Although i have a minor request, if it's possible.

    Every time I try to copy something I get the warning message, it's a bit annoying but bearable. I get why it's there, but is it possible to add a setting so you can turn it off, and only use the internal copy and paste without warnings? That would be swell. You would get the feel like it's working as a normal application. I don't see a lot of scenarios where you would actually copy paste between different apps or instances or C3, so an option to disable the warning and only use the internal copy would be awesome! Maybe external (real clipboard) copy could be a standalone desktop version feature only.

    On a sidenote, just for ease of use. When you use Paste... is it possible to paste directly where you clicked, or at mouse pointer... instead of having to click a second time...I think that's just a personal preference that would feel a bit more natural and user friendly. Current design, you kind of get the feeling that the paste didn't work. until you click somewhere. I think that's more close to how other most software usually work. When you paste, it pastes directly, not after a second click. Maybe worth a try? Event sheet works like that so why not Layout view as well?

    Anyway great work... keep it up.

  • Ashley

    should this be happening?

    {"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"is-between-angles","objectClass":"System","parameters":{"angle":"0","first-angle":"0","second-angle":"45"}}]}[/code:10jmh4e5]
    
    This is what i get, when I copy an event in C3 and paste it here.
    
    And this is what I get when I paste a copied sprite here, as text.
    
    [code:10jmh4e5]{"is-c3-clipboard-data":true,"type":"world-instances","items":[{"type":"Sprite","properties":{"initially-visible":true,"initial-animation":"Animation 1","initial-frame":0,"enable-collisions":true,"live-preview":false},"instanceVariables":{},"behaviors":{},"world":{"x":206,"y":226,"width":4.185689907291271,"height":4.185689907291271,"originX":0.46,"originY":0.5,"color":[1,1,1,1],"angle":0}}],"object-types":[{"name":"Sprite","plugin-id":"Sprite","isGlobal":false,"instanceVariables":[],"behaviorTypes":[],"effectTypes":[],"animations":{"items":[{"frames":[{"width":25,"height":25,"originX":0.46,"originY":0.5,"originalSource":"","exportFormat":"png","exportQuality":0.8,"imageDataIndex":0,"duration":1}],"name":"Animation 1","isLooping":false,"isPingPong":false,"repeatCount":1,"repeatTo":0,"speed":5}],"subfolders":[]}}],"imageData":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAADEUlEQVRIS72WTWicVRSGn3Pnz6BYiBvFqkkrSClOQAshKf4EBXEtLVJK6U4ouCguXKltdeNKQRfuzEaFFjduhG6qohML4yIJaaFgfkgXrgItSJ1vvrlvOfebvzapLRrmwuXeGWbOc95z7j3nGiMYNgIG94VMXFp76JFa54VgpUNILxqMC/YY3BBsmdHsKP6h663mytGD2U5O/yuk3vjzNQinQE8YBMAEwUACM4gU+2iwGRU+Xz48sXA3aEfIwZWVavnm2DtRejtgZcNKSnYsYEPqhUDRCBLqRJQH7LvF1sZXzM3lPdg2yIHfVp+pwicEnkWUgLJBSVjJHVYSUAxLIoIMdQQdIMfoILuSSeeuHt63UfxueJw5E6beOHEWeF1KxsskQNp7uBzqYkwJkIYDXKZ77vvcjBzp4uLs/o+2QZ5fWH/TFD9Ixo1qV0mla9wBASVYT4rnxKer8NkulJA5TBY+Xp6Z+LGvxPNQujH2jcHTgBt2FcOrQ3z6f3y6Ep8DQKGmncJWrBv5nlvH+5D6r6svEfg0YFVQJULFCkgFVAYrJ2U2pETE5DnKwZJhQTskgLUjyoi834dM/b7+HjEecQAJlAC9tdLNi6vzcPlMoUo5GHju3vtdaeMArE0IFwZKGqvzBgcwaugukKhg/dA5qBcu9z5HKRd3AszaiJbg6jDkB4PHPeES1RQqUesaH1aWTlw3Fw7pek7Whbnhtln67Afgr0G4GmuXQA8b1DwfnhtJ1XTKitDVhkLYO189QCuFSGRmlnkuPC+CFtjfo1VSH0VORnO6FtamkT7b9XtidnpQu86fL9WfPPS1Gc/t2o03ri1uNk/eUSDrXTW7VbswO700M3l5W6mfWlh9Fzj2v6swfLs4s++L7aXev2k2K1PZY19iqv/XfqLI8lK2carXuHbsjN7XH63FD8Fe9Yb1oJ2xaFz66WYrnFufm/znnp2x3yskqzfW3jLjpGD8AXr8lsT80uzk96mnDY37vlb2NjbHxslfgfgyYtrMasUbQj5awcLlCL9sUf75+uxTt3Z6rdwG59/Rhrcb9f8AAAAASUVORK5CYII="]}[/code:10jmh4e5]
    
    I don't get anything like this when I try to copy something in C2 and paste it in a text editor outside C2.
  • Every time I try to copy something I get the warning message, it's a bit annoying but bearable. I get why it's there, but is it possible to add a setting so you can turn it off, and only use the internal copy and paste without warnings?

    I guess this would avoid those warnings, so I've added a new setting in r21 to use in-app clipboard only (i.e. "use fake clipboard").

    [quote:1kb2232s]When you use Paste... is it possible to paste directly where you clicked, or at mouse pointer... instead of having to click a second time...

    This makes sense, no need to show the crosshair when it can just use the clicked position. Changed for r21.

    As for the text format: AFAIK browsers can only copy text, not other formats. It could in fact be useful - for example I can select that text and copy-paste it directly in to C3 and see your sprite.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)