rayane888 Posted February 10, 2016 Posted February 10, 2016 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 Jos Posted February 10, 2016 Developers Posted February 10, 2016 @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 rayane888 1 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.
rudi Posted February 11, 2016 Posted February 11, 2016 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!
rayane888 Posted February 11, 2016 Author Posted February 11, 2016 @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
AutoBert Posted February 12, 2016 Posted February 12, 2016 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now