Jump to content

Recommended Posts

Posted
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 :) 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

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 ?

Posted
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”

Code hard, but don’t hard code...

Posted
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 ;).

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Posted (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 by YuChan
  • Developers
Posted
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.
  :)

  • Developers
Posted

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

Posted (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 by YuChan
  • Developers
Posted (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 by 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.
  :)

  • 2 weeks later...
  • Jos locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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