Jump to content

Help with autoit


Recommended Posts

Hello, im total new here. I'd like you to help me with my problem.

Any suggestions how to make this script search for a pixel after "start" is clicked?

This is my code:

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ImageSearch.au3>
#include <GDIPlus.au3>
#Region ### START Koda GUI section ### Form=C:\Users\user\Desktop\botref.kxf
$Form1 = GUICreate("RefBOT", 582, 431, 259, 122)
$MenuItem6 = GUICtrlCreateMenu("File")
$MenuItem2 = GUICtrlCreateMenuItem("Exit", $MenuItem6)
$MenuItem1 = GUICtrlCreateMenuItem("Help", $MenuItem6)
GUICtrlCreateInput("", 112, 33, 177, 24)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Start = GUICtrlCreateButton("Start", 256, 376, 75, 25)
$Label2 = GUICtrlCreateLabel("Account Password", 2, 78, 131, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("Summoner Name", 1, 122, 122, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$nick = GUICtrlCreateInput("", 127, 119, 177, 24)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUICtrlCreateInput("", 138, 76, 177, 24)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label1 = GUICtrlCreateLabel("Account Name", 5, 35, 104, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
$startbutton = pixelsearch (0, 0, 701, 544, 0x753803)
Switch $nMsg
   
  Case $GUI_EVENT_CLOSE
   Exit
   case $menuitem2
   Exit
   case $menuitem1
   msgbox(0, "HELP", "GOOGLE IT OR SOMETHING")
  
   case $start
   run ("C:\Riot Games\League of Legends\lol.launcher")
   winwait("PVP.net Patcher")
  
  
  
 
  
EndSwitch
WEnd
Link to comment
Share on other sites

  • Developers

Please start with reading the forum rules which you can find at the right bottom of the page.

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

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