Jump to content

Recommended Posts

Posted

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

 

  • Developers
Posted

@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.
  :)

Posted

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!

Posted

@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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...