Jump to content

Tool

Members
  • Posts

    4
  • Joined

  • Last visited

Tool's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Ok i fixed those two lines but it doesnt click where it is supposed to still =[ call ("startup") func startup() Run ( "D2BS.EXE","") sleep(600) Run( "C:\Program Files\Diablo II\Diablo II.exe -w") WinWait("Diablo II") WinSetState("Diablo II","",@SW_MINIMIZE) sleep(650) call ("dstart") EndFunc func dstart() ControlClick("D2BS", "", "Left" , 1 , 425, 405 ) sleep(250) ControlClick("D2BS", "", "Left" , 1 , 425, 476 ) sleep(250) ProcessClose("D2BS.exe") WinWait("Diablo II") WinSetState("Diablo II","",@SW_MAXIMIZE) sleep(250) call ("exep") EndFunc func exep() winwait("Diablo II E") Sleep(3000) ProcessClose("game.exe") sleep(3000) call ("startup") EndFunc
  2. im not quite sure in how to do that but ill try Ok -edit- this is what i got but i dont think there is a window name for d2bs so what should i do? im going to test this right now tell me if you think it should work. another-edit- just tested and it says error line -1 exrpession error =/ call ("startup") func startup() Run ( "D2BS.EXE","") sleep(600) Run( "C:\Program Files\Diablo II\Diablo II.exe -w") WinWait("Diablo II") WinSetState("Diablo II","",@SW_MINIMIZE) sleep(650) call ("dstart") EndFunc func dstart() ControlClick("D2BS", "", [, Left [, 1 [, 425[, 405]]]] ) sleep(250) ControlClick("D2BS", "", [, Left [, 1 [, 425[, 476]]]] ) sleep(250) ProcessClose("D2BS.exe") WinWait("Diablo II") WinSetState("Diablo II","",@SW_MAXIMIZE) sleep(250) call ("exep") EndFunc func exep() winwait("Diablo II E") Sleep(3000) ProcessClose("game.exe") sleep(3000) call ("startup") EndFunc
  3. ok so i want this to work on user1 when im on user2. what i mean is run this script on 1 user on pc then log in and be on a different user aka user2. im pretty sure everything works in this code when im on user2 except "MouseClick("left", 403,405,1) sleep(250) MouseClick("left", 425,476,1) sleep(250)" that part any ideas? keep in mind im really new to autoit. call ("startup") func startup() Run ( "D2BS.EXE","") sleep(600) Run( "C:\Program Files\Diablo II\Diablo II.exe -w") WinWait("Diablo II") WinSetState("Diablo II","",@SW_MINIMIZE) sleep(650) call ("dstart") EndFunc func dstart() MouseClick("left", 403,405,1) sleep(250) MouseClick("left", 425,476,1) sleep(250) ProcessClose("D2BS.exe") WinWait("Diablo II") WinSetState("Diablo II","",@SW_MAXIMIZE) sleep(250) call ("exep") EndFunc func exep() winwait("Diablo II E") Sleep(3000) ProcessClose("game.exe") sleep(3000) call ("startup") EndFunc
×
×
  • Create New...