mfadier's Recent Forum Activity

  • Thanx, but I know how to hide window 1 and more miliseconds after... Window appears for a while and user can see this. I want to do application starting with MS Windows system automaticly and it must be 100% hide. Any ideas?

  • Hello. I have problem. I don't know how to hide my application on the start. I tested:

    Start Of Layout -> Window: Hide[/code:3k6m0amh]
    
    , but it doesn't work ;/. Any ideas?
    
    Thanx!
  • Nice to hear it . I have the last question... What a python libraries should I select when I'm creating *.exe file from Construct? My exe application doesn't work correctly when I'm trying to launch it on a other machine without python26. I think, I have all nessesary files in my app directory (copied from "build" folder and from ur simple screenshot example directory), but I see this same error message.

    [quote:3rzolbb6]Traceback (most recent call last):

    File "<string>", line 9, in <module>

    File "C:\Python26\lib\site-packages\gtk-2.0\gtk\__init__.py", line 30, in <module>

    import gobject as _gobject

    File"C:\Python26\lib\site-packages\gtk-2.0\gobject\__init__.py", line 26, in <module>

    from glib import spawn _async, idle _add, timeout _add, timeout _add_seconds, File"C:\Python26\lib\site-packages\gtk-2.0\glib\__init__.py", line 22, in <module>

    grom glib._glib import *

    ImportError: DLL load failed

    Your application is working very good, mine's not . Maybe I'm copying wrong dll files to my app directory?

    Sorry for my strange questions and bad level of english language, and thank you for all .

  • YEAH! It's working! Your script is creating screenshot from CommandLine and pygtk_screenshot.cap is working corectly from Construct!!! I don't know how to thank you!!!

    T H A N K Y O U very much!!! !

  • Yours script "gtk_screenshot.py" doesn't produce screenshot... Maybe I done something wrong?

    1. I installed Python 2.6

    2. I installed GTK+ and added directory "C:\gtk\bin" to my system variables and named it "gtk"

    3. I installed PyCairo, PyGobject, and PyGTK.

    4. I installed cx_Freeze and created "build" directory with "library.zip" and other files in it.

    5. I copied library.zip to Construct\Data\Python.

    6. I unpacked.

    7. I opened "pygtk_screenshot.cap" and when I want to run it, I have:

    [quote:2qqwgy7j]Traceback (most recent call last):

    File "<string>", line 9, in <module>

    File "C:\Python26\lib\site-packages\gtk-2.0\gtk\__init__.py", line 30, in <module>

    import gobject as _gobject

    File"C:\Python26\lib\site-packages\gtk-2.0\gobject\__init__.py", line 26, in <module>

    from glib import spawn _async, idle _add, timeout _add, timeout _add_seconds, File"C:\Python26\lib\site-packages\gtk-2.0\glib\__init__.py", line 22, in <module>

    grom glib._glib import *

    ImportError: DLL load failed

    and yours "gtk_screenshot.py" doesn't produce any screenshot. Should I reinstall all software? Or I missed something nesseary?

    EDIT:

    When I tried to run your script from Command Line, I got this same error messages what in Construct!

  • OK, THANK YOU!!! I created "build" directory and library.zip inside with cx_Freeze. I copied library.zip to Construct/Data/Python directory... But, when I'm running example (pygtk_screenshot.cap) I have error:

    [quote:2lf4woae]Traceback (most recent call last):

    File "<string>", line 9, in <module>

    File "C:\Python26\lib\site-packages\gtk-2.0\gtk\__init__.py", line 30, in <module>

    import gobject as _gobject

    File"C:\Python26\lib\site-packages\gtk-2.0\gobject\__init__.py", line 26, in <module>

    from glib import spawn _async, idle _add, timeout _add, timeout _add_seconds, File"C:\Python26\lib\site-packages\gtk-2.0\glib\__init__.py", line 22, in <module>

    grom glib._glib import *

    ImportError: DLL load failed

    What's wrong? I'm sorry for my questions ;/...

    EDIT:

    My "test.py" file was:

    [quote:2lf4woae]import sys

    import pygtk

    if not sys.platform == 'win32':

    pygtk.require('2.0')

    import gtk

    # Either "png" or "jpeg"

    format = "jpeg"

    width = gtk.gdk.screen_width()

    height = gtk.gdk.screen_height()

    screenshot = gtk.gdk.Pixbuf.get_from_drawable(

    gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, True, 8, width, height),

    gtk.gdk.get_default_root_window(),

    gtk.gdk.colormap_get_system(),

    0, 0, 0, 0, width, height)

    screenshot.save("screenshot." + format, format, {"quality": "70"})

    And my setup.py file was:

    [quote:2lf4woae]

    from cx_Freeze import setup, Executable

    setup(

    name = "scr",

    version = "0.1",

    description = "scr",

    executables = [Executable("test.py")])

  • I downloaded your new package and uninstalled Python 2.6 from my WindowsXP. IT'S WORKING CORRECTLY! Thank you, man!!!

    Now, I want to create my own application in Construct. I'm reading an article "python_library_tutorial_part2", I installed all nessesary programs - Python 2.6, GTK+ All In One, PyCairo, PyGObject and cx_Freeze... But... I don't understand this:

    "Go ahead and build an executable using cx_freeze. Now copy the library.zip file that was

    produced and paste it into the Construct/Data/Python directory. Finally, unzip this file into the

    directory."

    I don't know how to build an executable using cx_freeze and how to get "library.zip".

  • Thx, but it's still not working without Python installed on the machine... When I try to run your application, I see a error-window:

    "The application failed to initialize properly (0xc0150002). Click on OK to terminate the application".

    I installed PYTHON 2.6 and all libraries from article "python_library_tutorial_part2.pdf" and it's working good... But I want this working without Python installed on computer. Thanks!

    EDIT:

    OK, I'm waiting for your new upload. If it will work good without installed python, can you write simple, short article for me, how to do this (I have example in *.cap, but when I create EXE file, it's not working). Thank you very much!!!

  • I try to run your example on my friend computer, and it's doesn't work . First, python26.dll is needed, so I copy this to your example directory. Next, I try to run it again and... (0xc0150002) error. Any sugestions? Thank you very much!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanx man! But... must I install this all libraries, python language and more different programs on another computers where I want to launch my application, for example on my friend computer?

  • I would like to do screenshot without using Alt+PrintScreen. And, I want all screen area (desktop, icons) in my screenshot, no only application window! In multimedia fusion is special extension - Capture Screen object... How about Construct?

  • In Multimedia fusion 1.5 and highest is very good extension- 'Screen capture object' (it is making screenshot of our screen). Is in Construct something like this??? I really need it!!!

mfadier's avatar

mfadier

Member since 20 Apr, 2010

None one is following mfadier yet!

Trophy Case

  • 14-Year Club

Progress

14/44
How to earn trophies