Jump to content

How to make GUI


Recommended Posts

Hello, guys..

Can anyone make an example of a simple GUI which can change/update/save pixel search or pixel identification, Also have start code function button like,  out of this code. Thanks in Advance.

Example:

$count=1

find()

Do

Until $count=0 ;Infinite Loop

Func find()

If PixelGetColor(200, 200) = "0xFF0FFF" ;<<<---- This Hex will be visible in the GUI which can be edited,save, and load later On.

Do

Send("1")

Sleep(50)

Send("2")

Until PixelGetColor(200, 200) <> "0xFF0FFF" ;<<<---- This Hex will be visible in the GUI which can be edited,save, and load later On.

EndIf

EndFunc

 

 

Link to comment
Share on other sites

  • Moderators

@domzjen Welcome to the forum. Please note that this forum is dedicated to assisting others with their own scripts; it is not a forum where you put in a request and someone does the work for you. Below you will find a GUI template that should get you started. Take a look in the help file and on the forum for what you want to do regarding PixelGetColor, but I would ask what exactly you are trying to accomplish. 99% of the time there is a much easier way of doing it rather than having to resort to Pixel searches.

#include <GUIConstantsEx.au3>

    $hGUI = GUICreate("Test", 300, 300)
        GUISetState(@SW_SHOW)

    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                Exit
        EndSwitch
    WEnd

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Thank you, for the response. I guess i need to study and figure it out myself. Anyway i just want to integrate GUI's in my script where it will help me edit my code effectively and fast enough with convenience for me or any user.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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