This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kwin Scipting in WM console

Tags: None
(comma "," separated)
Icyene
Registered Member
Posts
1
Karma
0

Kwin Scipting in WM console

Sun Oct 08, 2017 2:36 pm
Hello,

I'm trying to learn to make kwin scripts and the tutorial suggests to use the wm console. But I have a few questions about using this console.

- Can you make classes? I tried this simple piece of code but it keeps giving me "SyntaxError: Parse Error"

Code: Select all
class Tile
{
  constructor(window_id, type)
  {
    this.window_id = window_id;
    this.type = type;
  };
};


- Whenever I execute a new script, it remembers all the previous ones I've executed before this one and thus it runs all the scripts I have executed until I relog. I like to frequently execute my script to test all the different functions I've created but I don't want to see the output of all the previous scripts. How do I achieve this?

Kind regards,
Ling


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]