Sign in to follow this  
Followers 0
captaino

Please help me to solve my problem

4 posts in this topic

Okay, so 1st thing that i got gui;

$Button10 = GUICtrlCreateButton("HP Drinker", 208, 72, 75, 25)
$Button11 = GUICtrlCreateButton("Stop", 288, 72, 75, 25)
$Input7 = GUICtrlCreateInput("Hotkey [ex.; {F1})", 216, 104, 121, 21)
$Input8 = GUICtrlCreateInput("Time (in sec)", 216, 128, 121, 21)
$Input9 = GUICtrlCreateInput("HP Below <", 216, 152, 121, 21)

Then i got Case for Button10

Case $Button10 ; hp drinker
            guictrlsetstate($Button10,$gui_disable)
            guictrlsetstate($Button11,$gui_enable)
            global $pid = ProcessExists("Tibia.exe")
            $memaaa = _MemoryOpen($pid)
            $hpd = GUICtrlRead($input9)
            $id5 = _Timer_SetTimer($form1,$hpd,"hpdrink")

Then i got FUNC for it

Func hpdrink($1,$2,$3,$4,$5) ; 
    $kk = GUICtrlRead($Input9)
    $hpd = GUICtrlRead($Input8)
            $mem = _MemoryRead(0x036539AC,$memaaa) ; 4
            if $mem <= $kk Then
            controlsend("Tibia","","",guictrlread($input7))
            controlsend("Tibia","","","{enter}")
            EndIf
EndFunc

My problem is that; I want to make that when i fill up the input with data; hotkey, time in sec, hp below & when i push the button "HP Drinker" i want it to start healing and i want it to read how much HP i've got from MemoryRead which is included. My 2nd problem is that when i push button "HP Drinker" i don't know how to make work button Stop, to stop the function.
Any ideas? I can't solve it for 2 days at least..

Share this post


Link to post
Share on other sites



This almost seems like game automation. Can you post your whole script please?


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

What for? It's just only that one thing which is not working, it's not whole script fault :P

Share this post


Link to post
Share on other sites

captaino,

Welcome to the AutoIt forum. :)

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now (there is also a link at bottom right of each page) - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. :naughty:

See you soon with a legitimate question I hope. :)

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