Jump to content

wuschel1962

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by wuschel1962

  1. Hello I would like to use with pleasure this script to farmen. for example: I would like to cut down a tree - i has 10 attempts afterwards i must wait again 5 min. I need this loop in this script Sorry my english is not good but i came from german HotKeySet("{F9}", "start") HotKeySet("{F10}", "stop") AutoItSetOption("WinTitleMatchMode", 4) While 1 Sleep(1000) WEnd Func start() Global $Show = 0 Global $handle = WinGetHandle("classname=Conan") WinSetState($handle, "", @SW_SHOW) WinSetState($handle, "", @SW_SHOWMAXIMIZED) If @error Then MsgBox(0, "error", "couldnt find AoC") Else While 1 ControlSend($handle, "", "", "U") Sleep(300) ;===========> or the spell cast speed If $Show > 0 Then ExitLoop WEnd EndIf EndFunc ;==>hide Func stop() Global $Show = 1 WinSetState("Age of Conan", "", @SW_SHOW) WinSetState("Age of Conan", "", @SW_MAXIMIZE) WinActivate($handle, "") EndFunc ;==>show thanks for help
×
×
  • Create New...