Jump to content
Sign in to follow this  
Kyler Carlson

Help with lazycat's screen capture and gui

Recommended Posts

Kyler Carlson

k i plan on making my own remote desktop type thing with autoit but i'm having some issues. I basically want an image in the gui to constantly (every tenth of a second) refresh to a new screencapture of your desktop. Right now... well its horrible. For some reason... it constantly repeates the title of the window and slowly moves it down the screen (sorry, its hard to explain but if you try it, you'll see). It also flickers every time. Any help is appreciated. For anyone who doesn't have it, download lazycat's dll at http://www.autoitscript.com/forum/index.ph...ic=8377&hl= .

$remote_user = @UserName

GUICtrlCreatePic (@UserName & ".jpg",0,0,@DesktopWidth,@DesktopHeight)

While 1
    GUICtrlCreatePic (@UserName & ".jpg",0,0,@DesktopWidth,@DesktopHeight)
    ;GUICtrlSetImage(3,@scriptdir & @UserName & ".jpg")
    DllCall("captdll.dll", "int", "CaptureScreen", "str", @UserName & ".jpg", "int", 85)

; Capture full screen
; Fist parameter - filename, last - jpeg quality. 
;DllCall("captdll.dll", "int", "CaptureScreen", "str", @UserName & ".jpg", "int", 85)

help appreciated, thanks

Share this post

Link to post
Share on other sites

1. Flickering : You're deleting the picture for then to recreate it. Use GUICtrlSetImage instead.

2. Repeating title : You're taking a picture of a picture of a picture.... duh !

Edited by Helge

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.