• ffred

    ok, sounds great.. thanks.
    Fred

    posted in General Discussion read more
  • ffred

    Hi Cosmin,
    have you "planned" something about controls/widgets on nw or is it mean to be done with something else ?
    actually many things should be possible via winapi ('winapi_demo.lua' already show several of them), but I don't really know what's possible on Linux or OSX (didn't see something about controls or widgets in 'objc' or 'xlib').
    actually I'm only on Windows, so I can go through winapi for my actual small needs, but that's just to know what could be done later..
    thanks.
    Fred

    posted in General Discussion read more
  • ffred

    yes, but I'm also learning Lua while I look at the different parts of Luapower and read some code.. :-)

    posted in General Discussion read more
  • ffred

    ok, no problem.. still learning slowly Lua and Luapower by looking here and there and trying several small things.
    maybe there should be something about that in the wluajit.md (or eventually it could be removed ?).
    thanks.
    Fred

    posted in General Discussion read more
  • ffred

    Hi,
    there's a wluajit.md file in Luapower directory, with a simple info about a luajit version with no console on Windows, but there's no wluajit.cmd file. something missing, or there's another way to do it ?
    Fred

    posted in General Discussion read more
  • ffred

    yep, ok for F11 like that, thanks..
    I forget about the last thing, if you look at my code, I change the line 'local cr = bitmap:cairo()' into 'local cr = bmp:cairo()' without doing that, it's still crashing.
    Fred

    posted in General Discussion read more
  • ffred

    Hi,
    sorry if I missed something, but it still doesn't work....
    well the program is not crashing this time and all is ok, except that hitting F11 does nothing.
    was ok with the "function win:keydown(key)" change.
    Fred

    posted in General Discussion read more
  • ffred

    Hi,
    it doesn't work like it is, I got this error :
    C:\dev\luapower\tests\tst1-nw.lua:22: <name> or '...' expected near ''keydown''

    if I replace it the way I did it's ok, but so it's not the 'another way' you wanted to show in this code exemple.
    Fred

    posted in General Discussion read more
  • ffred

    Hi Cosmin,
    well, still have very little time actually for Lua, so just looking here and there and trying few things, so cplayer was okay for a few tests.
    by the way there are also some points that should be corrected on the nw example.
    the keydown function isn't working like that and there's also the cr:rgb change..

    here are the simple changes I made to make it work, but I get back to the same way as the click function :

    function win:keydown(key)
    if key == 'F11' then
    self:fullscreen(not self:fullscreen()) --toggle fullscreen state
    end
    end

    function win:repaint() --called when window needs repainting
    local bmp = win:bitmap() --get the window's bitmap
    local cr = bmp:cairo() --get a cairo drawing context
    cr:rgb(0, 1, 0) --make it green
    cr:paint()
    end

    is there a way to show code on the forum ?
    ffred

    posted in General Discussion read more
  • ffred

    Hi Cosmin,
    thanks for your work !

    the "Quick exemple" on cplayer page is no longer working. seem's you changed the cr:set_source_rgb to cr:rgb in Cairo..

    ffred

    posted in General Discussion read more
  • ffred

    no thanks, nice to have your feelings about it..
    I just had a look at Ulua and at first it look nice, but doesn't seem to have many libraries available and not a simple one for gui.. and it can only import a part of the LuaRocks modules.
    but just had a rapid look at it, got no time to go further. just start looking more seriously at Luapower. :-)

    posted in General Discussion read more
  • ffred

    in case others could be interested, I also found Babelua but you must have Visual Studio installed and also a simpler editor but with addons made with Lua : textadept.

    ffred

    posted in General Discussion read more
  • ffred

    Thanks,
    did rapid tests today and started with Zerobrane, but will look at this customized version of Scite..

    for info, while I was looking for an IDE, I found a portable & cross-platform LuaJIT binary distribution : ulua.io.

    ffred

    posted in General Discussion read more
  • ffred

    Hi,
    I haven't done anything concrete with Lua yet for PC, only a little with NodeMCU(*) and still need to learn more of Lua.
    Now I want to start learning with LuaPower and was looking for an eventual IDE or maybe a specific editor for Lua on Windows.
    I found Zerobrane Studio (free), Eclipse LDT (free) and Glider (low cost) and a few others (but old & unmaintained).
    did I missed another one..?
    are you using one of those or "just" a regular code editor ?
    thanks
    ffred

    .

    (*) NodeMCU is a variant of eLua running on ESP8266 ultra low cost Wifi MCU. really great for personal IoT projects.
    https://en.wikipedia.org/wiki/NodeMCU

    posted in General Discussion read more
  • ffred

    Hi,
    unfortunately, didn't really got time to get into LuaPower yet, hope I could step in during the next holydays.
    but with the new 5$ Raspberry Pi Zero, it could really be interesting to add support for ARM on LuaPower. will look that way too..
    Fred

    posted in General Discussion read more
  • ffred

    ok, thanks a lot..

    posted in General Discussion read more
  • ffred

    Hi Cosmin,
    Ok, thanks.. if I try it, is there something like a "rebuild all" or do I need to rebuild each module one by one..?
    thanks.
    ffred

    posted in General Discussion read more
  • ffred

    Hi Cosmin,
    on the "Building" page, you list the different tools needed and give a link to your mirror repository, but you're not talking much about MSYS and it's not on your repository.

    MinGW-w64 on Sourceforge is - for me - a little messy; directories are marked modified in 2011 for exemple, but contain the last 2015 toolchains versions..!?? the wiki pages get me to links and explanations about MSYS, but if I come another way, by looking at http://mingw-w64.org and go to download page, I discover an MSYS2...
    also tried the mingw-w64-install.exe and in fact it's an executable that will let me choose the version I want and donwload it for me. http://i66.tinypic.com/k4gigx.jpg

    so, sorry, here are my questions :

    • do I need to download MSYS separately and is it ok to use MSYS2 ?
    • you point to mingw-w64 v4.9.2. there's now a v5.2.0. is it ok if I use the more recent one ?
    • is it possible on Win64 to install both mingw-w64 versions (32 & 64bits) to be able eventually to create also 32bits executables if needed ?

    Thanks..
    ffred

    posted in General Discussion read more
  • ffred

    Hi Cosmin,
    thanks for your detailed answer !
    I don't have much time for my personal projects actually, and still need some time to learn Lua and how to work with LuaPower,, but hopefully I will try to do it and let you know how it goes.
    will probably come back soon to ask a few questions...
    thanks
    ffred

    posted in General Discussion read more
  • ffred

    Hi, I'm totally new to Lua or LuaJIT and just find LuaPower wich looks great.
    will probably have several questions to ask soon, but right now I was looking at the "recent" posts in the forum to see what is said about LuaPower when I found this one. so I though I could add something here.
    the first little home project I could try with LuaPower involve a microcontroller board connected to the PC via USB, but with a virtual COM port interface. (I'm working on Windows 7/8.1 32/64bits).
    didn't find anything in Lua to talk to serial port (but could have missed something), so a serial port communication module could be nice.

    just did a rapid search right now and find those two :
    https://github.com/ynezz/librs232
    https://github.com/martinling/libserialport

    will have to learn a lot more of Lua to say that I could create a module myself, so if you're still looking for ideas, here is one. but if you don't have time for that, will probably try to do it myself later.
    thanks.
    ffred

    posted in General Discussion read more
Internal error.

Oops! Looks like something went wrong!