Sign in to follow this  
Followers 0
name15

is there any example for remote screen

4 posts in this topic

#1 ·  Posted (edited)

is there any example for remote screen desktop

Edited by name15

Share this post


Link to post
Share on other sites



Did you search the forum? When I search for "remote desktop" I get 59 hits.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

all script use mstsc.exe so not real one

Share this post


Link to post
Share on other sites

try this

#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

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