rayane888

Gui Remot Desktop Mouse Control

6 posts in this topic

Hello All i work for Desktop That can Control Mouse with Cliking in  the Gui but problem i can't Calcul the real position of mouse so any one is good in matimatik thanks

 

#include <GUIConstantsEx.au3>
#include <ScreenCapture.au3>

_ScreenCapture_Capture(@scriptdir&"/Desk.jpg")

MsgBox(0,"","Hight: "&@DesktopHeight&"  Width: " &@DesktopWidth)

   $Form1 = GUICreate("Desktop", 373, 277, -1, -1)
$sii=GUICtrlCreatePic("", 0, 0, 372, 276)

    GUISetState(@SW_SHOW)
 Local $a

GUICtrlSetImage($sii,@scriptdir&"/Desk.jpg")



    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop
            Case $sii

Local $a = GUIGetCursorInfo()


MouseClick("Left", $a[0],  $a[1] ,"1")

        EndSwitch


    WEnd

;~ Caculat the Hight & Width ????????
;~  $sse=@DesktopHeight / 372
;~  $sff=@DesktopWidth/276

 

Share this post


Link to post
Share on other sites



any Help .. ?

Share this post


Link to post
Share on other sites

@rayane888,

Please do not bump your own threads within 24 hours.
Remember this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare.  You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online.

Jos

1 person likes this

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Hello,

 

I have no clue at all, what you are trying to do.

You've already found @DesktopHeight @DesktopWidth, and what do you want to capture to desk.jpg?

 

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

@rudi i try to  make a desktop when you click in the image in the gui the mouse directly move to the real desktop this method found in team viewer  control mouse  if you have idea  help me now the move mouse not work all real Desktop

Share this post


Link to post
Share on other sites

The script makes what you want: It click's in Gui (named Desktop) at the pos where the mouse is.

I can't see any sence in this script.

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