YuChan Posted February 7, 2021 Share Posted February 7, 2021 Hello ! Please can you tell me how to add one gui who follow a mouse with 200 x 200 pixels. THX Link to comment Share on other sites More sharing options...
argumentum Posted February 7, 2021 Share Posted February 7, 2021 27 minutes ago, YuChan said: THX #include <GUIConstantsEx.au3> Example() Func Example() ; Create a GUI with various controls. Local $hGUI = GUICreate("Example", 200,200) Local $idOK = GUICtrlCreateButton("OK", 10, 70, 85, 25) ; Display the GUI. GUISetState(@SW_SHOW, $hGUI) ; _WinAPI_SetProcessDpiAwareness() DllCall("Shcore.dll", "long", "SetProcessDpiAwareness", "int", 2) ; Loop until the user exits. While 1 WinMove($hGUI, "", MouseGetPos(0) + 20 ,MouseGetPos(1) + 20 ) Switch GUIGetMsg() Case $GUI_EVENT_CLOSE, $idOK ExitLoop EndSwitch WEnd ; Delete the previous GUI and all controls. GUIDelete($hGUI) EndFunc ;==>Example you're welcome Musashi and JockoDundee 2 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
YuChan Posted February 7, 2021 Author Share Posted February 7, 2021 Thank you. But i need have like this : Link to comment Share on other sites More sharing options...
argumentum Posted February 7, 2021 Share Posted February 7, 2021 ..I just gave you a hint. I have faith that you can code it Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
YuChan Posted February 7, 2021 Author Share Posted February 7, 2021 I don't know how to make for add one GUI on top right. Sorry Link to comment Share on other sites More sharing options...
YuChan Posted February 7, 2021 Author Share Posted February 7, 2021 I have found Example() Func Example() ; Create a GUI with various controls. Local $hGUI = GUICreate("Example", 200,200) ; Display the GUI. GUISetState(@SW_SHOW, $hGUI) ; _WinAPI_SetProcessDpiAwareness() DllCall("Shcore.dll", "long", "SetProcessDpiAwareness", "int", 2) ; Loop until the user exits. While 1 WinMove($hGUI, "", MouseGetPos(0) + 0 ,MouseGetPos(1) - 225 ) Switch GUIGetMsg() Case $GUI_EVENT_CLOSE, $idOK ExitLoop EndSwitch WEnd ; Delete the previous GUI and all controls. GUIDelete($hGUI) EndFunc ;==>Example Now how to search pixel in this area please ? Link to comment Share on other sites More sharing options...
JockoDundee Posted February 7, 2021 Share Posted February 7, 2021 4 hours ago, YuChan said: Now how to search pixel in this area please ? Let’s cut to the chase: “One gui who follow mouse” “One gui who follow mouse who search pixels” “One gui who follow mouse who search pixels who click them” Musashi 1 Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
YuChan Posted February 7, 2021 Author Share Posted February 7, 2021 (edited) Sorry i have not understand What you saying ? Edited February 7, 2021 by YuChan Link to comment Share on other sites More sharing options...
Musashi Posted February 7, 2021 Share Posted February 7, 2021 50 minutes ago, YuChan said: Sorry i have not understand. What you saying ? Since almost 3 months you are trying to bypass the forum rules in one way or another. Many games I know could have been completed the traditional way during that time. Isn't it getting boring to keep asking the same questions over and over again, to which you probably will never get the desired answer? Just imagine what you could have achieved in this time, if you had dealt with a permissible topic . "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
Nine Posted February 7, 2021 Share Posted February 7, 2021 Funny. I never seen someone repeatedly locked on multiple threads on 2 AutoIt forums almost simultaneously. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Popular Post mikell Posted February 7, 2021 Popular Post Share Posted February 7, 2021 3 hours ago, JockoDundee said: “One gui who follow mouse” "One gui to rule all these pixels, one gui to find them, one gui to bring them all and in an array bind them" Somerset, seadoggie01, FrancescoDiMuro and 2 others 2 3 Link to comment Share on other sites More sharing options...
YuChan Posted February 7, 2021 Author Share Posted February 7, 2021 (edited) OK. But i have one question ... how to find pixel color in GUI 200 x 200 I have not found on google... im sorry for noob question Edited February 7, 2021 by YuChan Link to comment Share on other sites More sharing options...
Somerset Posted February 7, 2021 Share Posted February 7, 2021 Wash your hands after playing with something that is gui for so long. Link to comment Share on other sites More sharing options...
JockoDundee Posted February 7, 2021 Share Posted February 7, 2021 2 hours ago, mikell said: "One gui to rule all these pixels, one gui to find them, one gui to bring them all and in... Ok, three gui’s walk in to a menu bar... FrancescoDiMuro and Somerset 2 Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
Developers Jos Posted February 7, 2021 Developers Share Posted February 7, 2021 2 hours ago, YuChan said: OK. But i have one question ... how to find pixel color in GUI 200 x 200 Ok... This is far enough! What are you trying to do here and this time give me a proper explanation or simply waste your time somewhere else as this is really becoming ridiculous? @all others, Please stay out for the moment, 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 More sharing options...
YuChan Posted February 8, 2021 Author Share Posted February 8, 2021 Jos I know how to use pixelsearch. But not for one Gui follow mouse. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 8, 2021 Developers Share Posted February 8, 2021 Again: What are you trying to do and which program to automate? Using the same words over and over again is not going to make it any clearer so show us something that does make it clear! 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 More sharing options...
YuChan Posted February 9, 2021 Author Share Posted February 9, 2021 (edited) Hello, I want search one pixel color, i make this : PixelSearch($x + 20, $y - 50, $x + 100, $y + 10, $couleurPreuveRessourceCollecte[0],1) PixelSearch($x + 20, $y - 50, $x + 100, $y + 10, $color[0],1) Can you tell me how to returna position of mouse for found color ? I have this : Local $iColor = PixelGetColor($x + 100, $y + 10) ConsoleWrite ( "Couleur Dec "& $iColor &@CRLF) ConsoleWrite ( "Couleur Hex "& Hex($iColor, 8) &@CRLF) But color is not true Edited February 9, 2021 by YuChan Link to comment Share on other sites More sharing options...
Developers Jos Posted February 9, 2021 Developers Share Posted February 9, 2021 (edited) For the last time: STOP repeating yourself and give me an answer about which program you are trying to automate and which steps you need to do! Next avoiding answer will get you a permanent ban as I am done with this Cat&Mouse game. ps: No answer will have the same result! Jos Edited February 9, 2021 by Jos Musashi and FrancescoDiMuro 2 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 More sharing options...
Developers Jos Posted February 20, 2021 Developers Share Posted February 20, 2021 Ok, I see you have been here and acknowledged the warning but no response what so ever so you leave me no option. 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 More sharing options...
Recommended Posts