name15 Posted January 29, 2010 Posted January 29, 2010 (edited) is there any example for remote screen desktop Edited January 29, 2010 by name15
water Posted January 29, 2010 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
name15 Posted January 29, 2010 Author Posted January 29, 2010 all script use mstsc.exe so not real one
name15 Posted January 29, 2010 Author 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
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