Jump to content

Gui Remot Desktop Mouse Control


 Share

Recommended Posts

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

 

Link to comment
Share on other sites

  • Developers

@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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...