captaino Posted September 29, 2014 Share Posted September 29, 2014 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.. Link to comment Share on other sites More sharing options...
MikahS Posted September 29, 2014 Share Posted September 29, 2014 This almost seems like game automation. Can you post your whole script please? Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy 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 Link to comment Share on other sites More sharing options...
captaino Posted September 29, 2014 Author Share Posted September 29, 2014 What for? It's just only that one thing which is not working, it's not whole script fault Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 29, 2014 Moderators Share Posted September 29, 2014 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. 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts