Jump to content

[HELP] GUI and PixelSearch


Recommended Posts

Hi All!

I'm wanting to make a GUI out of my simple script that I made, however there are few stuff that I need to understand first.

HotKeySet("{End}", "End")
HotKeySet("{Home}", "Start")

While 1
    Sleep(5000)
WEnd

;;heals
Func Start() ; command to start
   
   While 1
  $pixel = PixelSearch (245, 214, 812, 566, 0x8C2A3)
  $Attack = 2
   If Not @error Then
      Send($Attack) ; send attack
      Send($Attack)
      Send($Attack)
   EndIf

Sleep(100)

;;mana

   $pixelmana = PixelSearch (227, 146, 227, 146, 0x000000)
   $mana = 5
   If Not @error Then
      Send ($mana)
      Send ($mana)
      Send ($mana)
   EndIf

Sleep(100)

;;hp

   $pixelhp = PixelSearch (242, 119, 242, 119, 0x000000)
   $hp = 6
   If Not @error Then
      Send ($hp) 
      Send ($hp)
      Send ($hp)
   EndIf
   
WEnd

EndFunc

Func End() ; command to kill
    Exit
 EndFunc

I'm wanting to make a very simple GUI for the script, esp for pixel search functions (location, and colours) also for the $ variables ><

Unsure where to start I'm new to GUIs, thanks before! 

Edited by Irrelixier
Link to comment
Share on other sites

  • Moderators

Irrelixier,

 

I know

And yet you posted anyway? Best not do so again as deliberately flouting the rules is something which very rapidly leads to unpleasant events. :naughty:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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