Jump to content

Recommended Posts

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

Link to post
Share on other sites

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 post
Share on other sites
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...

Link to post
Share on other sites
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."

Link to post
Share on other sites

Funny.  I never seen someone repeatedly locked on multiple threads on 2 AutoIt forums almost simultaneously. 

Link to post
Share on other sites
  • Developers
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 post
Share on other sites
  • Developers

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 post
Share on other sites

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
Link to post
Share on other sites
  • Developers

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

Link to post
Share on other sites
  • 2 weeks later...
  • Developers

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 post
Share on other sites
  • 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...