Jump to content
PrinceLother

Please Help me with pixelgetcolor

Recommended Posts

PrinceLother

Please Help me with pixelgetcolor

i wanted to create a bot from a game 

when his life turns to red his going to use a potion 

by using mouse however it wont click the potion even his life turns blue to red

here is the code that i tried

Func Health()
   $red = PixelGetColor(139, 79, 279, 196, 14081758)
   if IsArray($red) Then
      MouseMove(269, 40, 0)
      MouseClick($MOUSE_CLICK_LEFT, 269, 40, 2)
      Sleep(300)
   Else
      Call("walk")
   EndIf
EndFunc

 

 

Capture.PNG

Share this post


Link to post
Share on other sites
Nikolas92

Better change what you have written or you wont get any help...

Edited by Nikolas92

Share this post


Link to post
Share on other sites
water

@PrinceLother

Seems you missed to read the forum rules on your way in. Please do so now.
Game automation isn't allowed here - that's why you won't get any help on this subject.

I hope we see you soon with a legitimate question :)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
PrinceLother

yes im so sorry.. how to edit my post sir?

i want to change it. 

Share this post


Link to post
Share on other sites
water

You can't.
IIRC you need to have at least 5 posts before you can edit your posts.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
PrinceLother

oh thats a problem :( i dont like to spam just only to have 5 post :(

Share this post


Link to post
Share on other sites
PrinceLother
25 minutes ago, water said:

You can't.
IIRC you need to have at least 5 posts before you can edit your posts.

5 post still not working :( i really wanted to change my question

Share this post


Link to post
Share on other sites
Melba23

PrinceLother,

Thread locked - too late.

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.

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.