Jump to content

Help with lazycat's screen capture and gui


Recommended Posts

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

GUICreate($remote_user,@DesktopWidth,@desktopheight,0,0)
GUICtrlCreatePic (@UserName & ".jpg",0,0,@DesktopWidth,@DesktopHeight)
GUISetState()


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

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

help appreciated, thanks

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...