x_files_x Posted May 12, 2013 Share Posted May 12, 2013 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. Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted May 12, 2013 Share Posted May 12, 2013 (edited) #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 May 12, 2013 by mesale0077 Quote Link to comment Share on other sites More sharing options...
x_files_x Posted May 14, 2013 Author Share Posted May 14, 2013 Tşk ederim @Mesela0077 Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted May 14, 2013 Share Posted May 14, 2013 @mesale0077 olacaktı, önemli değil dostum araya sleep koyarsan sonradan gelme efekti yapmışta olabilrsin yani :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.