Jump to content

is there any example for remote screen


name15
 Share

Recommended Posts

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 - 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 (NEW 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

 

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