Sign in to follow this  
Followers 0
Kyler Carlson

Help with lazycat's screen capture and gui

2 posts in this topic

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 .

$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

#2 ·  Posted (edited)

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  
Followers 0