Jump to content
Sign in to follow this  
vaidass41

Help with autoit

Recommended Posts

vaidass41

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

Share this post


Link to post
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
Sign in to follow this  

×