name15 Posted January 29, 2010 Share Posted January 29, 2010 (edited) is there any example for remote screen desktop Edited January 29, 2010 by name15 Link to comment Share on other sites More sharing options...
water Posted January 29, 2010 Share Posted January 29, 2010 Did you search the forum? When I search for "remote desktop" I get 59 hits. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
name15 Posted January 29, 2010 Author Share Posted January 29, 2010 all script use mstsc.exe so not real one Link to comment Share on other sites More sharing options...
name15 Posted January 29, 2010 Author Share Posted January 29, 2010 try this expandcollapse popup#include <GUIConstants.au3> #include <_ControlHover.au3> $mygui = GUICreate("My GUI - Button Release & colors") $background = GUICtrlCreatePic(@SystemDir & "\oobe\images\mslogo.jpg", 0, 0, 400, 400) GUISetState () ; add controls here _ControlHover(2, "", $background) While 1 $msg1 = GUIGetMsg() If $msg1 = $GUI_EVENT_CLOSE Then ExitLoop EndIf _CheckHoverAndPressed() WEnd Func _CheckHoverAndPressed() $CtrlId = _ControlHover(0) $tempID = @extended $CtrlId = 1 $CtrlId2 = _ControlHover(1) $tempID2 = @extended If $CtrlId2 = 1 Then _ButtonPressed($tempID2) EndIf EndFunc ;==>_CheckHoverAndPressed Func _ButtonPressed($ControlID) Switch $ControlID Case $background $pos = MouseGetPos() MsgBox(0, "Pressed Mouse x,y:", $pos[0] & "," & $pos[1]) $size = WinGetPos("My GUI - Button Release & colors") MsgBox(0, "Active window stats (x,y,width,height):", $size[0] & " " & $size[1] & " " & $size[2] & " " & $size[3]) MouseMove($size[0], $size[1], 0) MouseMove(($pos[0]-$size[0]), ($pos[1]-$size[1]), 5) EndSwitch EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now