Sign in to follow this  
Followers 0
Irrelixier

[HELP] GUI and PixelSearch

6 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



need to do pixel searches since i need to see the monsters floating around >< and bash them

Share this post


Link to post
Share on other sites

Hi Irrelixier,

Unfortunetely, no games automation allowed here. Please read forum rules :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Hi Michael

I know, but its a GUI support related kind of thing. I've got the script up and running anyways. ><

Edited by Irrelixier

Share this post


Link to post
Share on other sites

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


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0