Toughguys000 u use autoit v3? i already save ur coding..but autoit give error
Toughguys000 u use autoit v3? i already save ur coding..but autoit give error
Code:#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <ImageSearch.au3> Global $Paused Global $Exit HotKeySet("{NUMPAD0}", "TogglePause") HotKeySet("{NUMPAD1}", "end") Local $result,$x,$y,$i,$fire $i = 1 $fire =1 WinActivate("Neverwinter") sleep (1000) while 1 MouseClick("left",432,618) Sleep(500) Send("{BACKSPACE 20}") sleep(200) Send("username") sleep(200) Send("{TAB}") sleep(200) Send("password") sleep(200) Send("{ENTER}") Sleep(3000) MouseClick("left",1435,1078) Sleep(7000) Send("f") sleep(4000) Send("f") Sleep(1500) Send("i") Sleep(1500) if $i = 8 then for $r=550 to 700 step 45 for $c=1270 to 1550 step 45 $found = 0 sleep(500) MouseMove($c,$r) sleep(500) $result = _ImageSearchArea("unidentified.png",1,920,500,1230,610,$x,$y,150) if $result=1 Then FOUND() ContinueLoop endif $result = _ImageSearchArea("rank2.png",1,920,500,1230,610,$x,$y,150) if $result=1 Then FOUND() ContinueLoop endif Next Next $i = 1 Else $i=$i + 1 endif Send("i") Sleep(500) mouseclick("left",921,452) Sleep(500) Send("{ESC}") Sleep(500) MouseClick("left",804,620) Sleep(500) MouseClick("left",821,643) Sleep(500) MouseClick("left",869,654) Sleep(2000) wend func found() MouseClickDrag("left",$c,$r,700,500,1) sleep(500) $result = _ImageSearch("delete.bmp",1,$x,$y,100) ; Discard button if $result=1 Then mouseclick("left",$x,$y) endif EndFunc Func end() MsgBox(4096, "Exit", "exit", 1) exit EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) WEnd WinActivate("Neverwinter") sleep (2000) EndFunc
item discarding not working...
how should i configure imagesearch or autoit to make it work? What about making pictures?
confused
This script is for AutoHotkey not Autoit. AHK = AutoHotkey
Hi all, i got 2 noob questions to this -.-
How do you join a dungeon ? do you q with the dungeon finder or do you go with 4 friends ?
Or are there a normal (classic) way to enter those dungeons without a q, if so there the hell is the entrance from this dungeon and from Never Castle ?
Feeling like a noob but I can ´t find a way to get into the hero dungeons without the dungeon finder :/
And y, I leveled with foundry :x
yea and heres a handy tool to find coords. paste this into an autoit script and save it. when you open it hover your mouse over the spot you want coords for.
WinWaitActive ("Neverwinter");
Sleep (5000)
$pos = MouseGetPos()
MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1])
Hello Arrakis, thanks for the script! I was wondering if you could post the .pngs?
Increase the timer of Sleep, 7000 to how many seconds it takes for the game to load (presently at 7s). For the logout button, make sure when it hits escape its hovering over the "logout" button, the screen auto-centers the mouse.
There is an application included with AHK that you can view co-ords with and its called "autoit3 window spy" if you need to adjust anything.
stop = 0
Loop
{
If stop = 1
Break
WinWait, Neverwinter,
IfWinNotActive, Neverwinter, , WinActivate, Neverwinter,
WinWaitActive, Neverwinter,
MouseClick, left, 575, 650
Sleep, 100
Send, {CTRLDOWN}v{CTRLUP}
MouseClick, left, 601, 954
Sleep, 3000
MouseClick, left, 1656, 961
Sleep, 9000
Send, f
Sleep, 7000
Send, f
Sleep, 500
Send, {ESC}
Sleep, 1000
MouseClick, left
Sleep, 1000
MouseClick, left, 957, 554
Sleep, 1000
MouseClick, left, 1043, 575f
Sleep, 2000
}
^q::
If stop = 0
{
stop = 1
return
}
If stop = 1
{
stop = 0
return
}
I followed your instructions. The mouse moves to the proper button locations but will not actually click anything despite the command being issued in the above script. I'm using a razer naga if that helps; not sure if the built in macros cause issues with the script? I am new to these things.