Jump to content

Mouse'yi Takip Eden Gui Nasıl Yapılır?


x_files_x
 Share

Recommended Posts

arkadaslar ben bir gui olusturmak istiyorum ve bu gui benim farem nerdeyse oraya dogru hareket etsin istiyorum, bunu mouse pos gibi şeylerle yapıyorlar sanırım ama ben tam olarak ne yapmalıyım bilmiyorum, yardımcı olacak bir arkadaslar varmı acaba küçük bir örnek görsem yeter.

Link to comment
Share on other sites

#include <GUIConstants.au3>
Opt("GUICloseOnESC", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 139, 43, 193, 159)
$Input1 = GUICtrlCreateInput("Input1", 8, 8, 121, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
$MPos = MouseGetPos()
GUICtrlSetData($Input1,"x: "&$MPos[0]&" y: "&$MPos[1])
WinMove($Form1, "", $MPos[0], $MPos[1])
WEnd
Edited by mesale0077
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...