Please refrain from posting multiple times in a row mate, it makes things harder to read for me!
There is no such setting that i know of, but you should really try finding the color your graphics card renders using windowspy, it is installed with AHK. It is very much possible that your graphics card renders the purple color a little different than most other and thus pixelsearch is not working for you.
Hi, I got a suggestion you can probably implemented into your code. I have implemented this DeadlyDragon's script for my own use. This is a command on autohotkey for image search, what this is for is those who have friends that joins the battlenet sometimes will mess up your location on right click etc. This however will require everyone to take their own screenshot of your 'Host" (blue name) and "Join Party".
CheersCode:ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, *TransBlack %A_WorkingDir%\Cloud.png ;searches for the image "Cloud" if ErrorLevel = 2 { MsgBox Could not conduct the search. } else if ErrorLevel = 1 { MsgBox png could not be found on the screen. } else { MouseClick, right, FoundX + 10, FoundY + 10 ; Right click on top friend }
Sorry for asking, but how is one supposed to do this? I have the windowspy open, mouse over Adria, but i'm getting a dozen of number combinations and it switches so fast there is no way in hell to memorize any of them before i get another one.
It's like, first second it's 0xF283932, then 0.3 second later it is 0xD8392J3, then 0.3 second later it is 0x88D382 and so on so on.(examples).
I simply never get a chance to see any of the complete numbers before they are gone and replaced by another combination. :-/
Last edited by Crackjack; 06-23-2012 at 06:18 AM.
When you have Window spy open you could hover your mouse over Adria and press Shift+Alt+Tab, which which freeze the numbers inside the Active WIndow Info of Window Spy or just select the Diablo window press Alt+Print open Paint and Insert the screenshot then you can find out the numbers with Windows spy without them changing.
Cheers! Feeling a little stupid, here i was sitting with pen and paper trying to be fast enough..
Now i just need to find a color that actually work then, tried about 20 so far and it works for 5-20 minutes and then it all crashes down and i end up at character screen and profile viewer.![]()
I have a strange resolution appearantly (1920 x 1200 and a 2nd monitor in vertical mode 900 x 1440).
Things I changed:
1) Added sleep timers for overheating issues
2) after the lowbie clicks on the quest (during the walk) I have it press C so you can see the amount of gold
3) sometimes it would mess up and try and join during the game so I put the place where it would click to join
Code:; Script by 08449, also known as Adessis ; Version 1.2 ; 6/21/2012 ; Working with patch 1.03 Hotkey, F2, Pause ; If different pausebutton is needed, replace F2 with hotkey code F1:: ; If different pausebutton is needed, replace F1 with hotkey code loop { Send, o ;open friends sleep, 500 RandSleep(101,431) MouseClick, left, 853, 395 ;invite sleep, 500 RandSleep(501,731) MouseClick, left, 1787, 993 ;accept invite - If too fast, increase sleeptimer one rule above this ; This next click is needed when you don't leave game with lowlvl correctly, this happens ad random to me ; When script did leave the game like its supposed to, nothing happens. sleep, 1800 RandSleep(301,431) MouseClick, left, 406, 690 RandSleep(301,431) MouseClick, left, -576, 22 ;select window left RandSleep(401,631) MouseClick, left, 165, 462 ;resume game Sleep, 5000 ;Waittime before highlvl joins game - Time this yourself and adjust accordingly! RandSleep(101,431) Send, {ESC} ;open menu RandSleep(101,431) Sleep, 700 MouseClick, left, 480, 629 ;click leave game RandSleep(101,231) Sleep, 600 MouseClick, left, 410, 686 ;confirm leave Sleep, 1500 ;Wait timer to make sure highlvl left game - if not, increase sleeptimer RandSleep(401,531) ;SEARCH FOR ADRIA, you spawn at different locations so have to perform a pixelsearch ;Color might not work for everyone, use windowspy to find color that works for you Pixelsearch, Px, Py, 970, 40, 1145, 120,0x23243D, 4, fast RandSleep(201,367) MouseClick, left, %Px%, %Py% ;click adria Send, c ;opens character menu to check gold and lvl Sleep, 3500 ;Waittime for walking to adria, if pressing esc to fast/slow adjust (Depends on movespeed) RandSleep(101,431) Send, {ESC} ;close conversation RandSleep(101,431) Send, {ESC} ;close quest complete panel RandSleep(101,431) Sleep, 1500 Send, {ESC} ;open menu RandSleep(101,431) Sleep, 600 MouseClick, left, 481, 628 ;click leave game RandSleep(101,231) Sleep, 600 MouseClick, left, -576, 22 ;select window left RandSleep(101,231) sleep, 2500 } return ;restart script RandSleep(x,y) { Random, rand, %x%, %y% Sleep %rand% } Pause: pause return
After a lot of work and time spent infront of screen i got the configuration now to work properly for me and my computer.
The only thing i'm stuck with is when the character/script won't find Adria.
Sometimes it finds Leah instead and i am fine with that(like 1 out of 10 runs), because there is no harm done except 10 000 less xp.
But it's when it doesn't find either, and take a few steps behind Adria that the problems start, it will as a result fail to logout, and then fail to restart the script.
Is there any workaround for this, so that it, even if it fails to find Adria, could still logout and restart properly?
Last edited by imdasandman; 06-23-2012 at 11:59 AM.
My Frost/Unholy DK WoL ranking edits(4.3) and crystals Hunter Beta profiles-
https://imdasandmandeathknight.googl...com/svn/trunk/
Yes!
I've worked out a script that only fails if you take too long to resume game, because then it might turn in the quest with both toons in the party. However, all other "fails" have been "patched" and will restart the script properly after a cycle. I've added the following code. You'll have to use your own coords and colorcode though!
Edits are in bold. What I changed was:Code:loop{ Send, o ;open friends RandSleep(801,931) MouseClick, right, 630, 218 ;rightclick friend RandSleep(501,731) MouseClick, left, 691, 296 ;Request invite from friend RandSleep(501,731) MouseClick, left, -292, 11 ;select window left RandSleep(501,731) MouseClick, left, 751, 92 ;exit profile Sleep, 250 MouseClick, left, 698, 540 ;accept request RandSleep(401,531) MouseClick, left, 1331, 541 ;accept invite RandSleep(401,531) Sleep, 1000 MouseClick, left, -493, 256 ;resume game Sleep, 4000 ;Waittime before highlvl joins game - Time this yourself and adjust accordingly! RandSleep(401,531) Send, {ESC} ;open menu RandSleep(401,531) MouseClick, left, 397, 346 ;click leave game RandSleep(401,531) MouseClick, left, 339, 380 ;confirm leave Sleep, 500 ;Wait timer to make sure highlvl left game - if not, increase sleeptimer RandSleep(401,531) MouseClick, left, 1075, 12 ;select window right RandSleep(401,531) MouseClick, left, 274, 213 ;click towards adria ;SEARCH FOR ADRIA, you spawn at different locations so have to perform a pixelsearch ;Color might not work for everyone, use windowspy to find color that works for you Pixelsearch, Px, Py, 8, 28, 396, 213,0x212238, 4, fast ; 0x23243C 0x1D2233 Send, {1} RandSleep(201,367) MouseClick, left, %Px%, %Py% ;click adrio Sleep, 3500 ;Waittime for walking to adria, if pressing esc to fast/slow adjust (Depends on movespeed) RandSleep(201,431) Send, {ESC} ;close conversation RandSleep(201,431) Send, {ESC} ;close quest complete panel RandSleep(201,431) Send, {ESC} ;open menu RandSleep(201,431) MouseClick, left, 402, 348 ;click leave game RandSleep(201,231) sleep, 2500 } return ;restart script RandSleep(x,y) { Random, rand, %x%, %y% Sleep %rand% } Pause: pause return
- Sometimes the cycle would screw up and end up with the profile open on the left window. I modified the script so that it takes 1/4th of a second to close it if it is open. If not, nothing happens.
- I added a 1 second timer when waiting for the group to be formed.
- It now clicks slightly in Adria's direction before pixelscanning.
- After pixelscanning, before clicking, 1 is pressed. This must be mapped to a spell that forces your character to stand still. (DH - HA, Wiz - Hydra, etc). Finding Adria has never failed for me after this addition along with the click above.
Note: This is the 1440x900 script. If you are using the original script, take the parts in bold and add them into your script, modifying the coords for the clicks.
Last edited by Iaccidentallytwink; 06-23-2012 at 12:20 PM.
Hey and thanks for taking time to asssist!
I added the exit profile and the 1 button after pixelsearch as adviced.
The exit profile seems to work as it should, but not sure i did it wrong with the 1 buttonpush?
In short, it casts Hydra on top of Adria and making it impossible to find her and interact with her for me.
This is my script currently, with the 1 buttonpush included.
Code:; Script by 08449, also known as Adessis ; Modified by darktic 1440x900 ; 6/22/2012 ; Working with patch 1.03 Hotkey, F2, Pause ; If different pausebutton is needed, replace F2 with hotkey code F1:: ; If different pausebutton is needed, replace F1 with hotkey code loop { MouseClick, left, -88, 592 ;Click left window RandSleep(201,731) MouseClick, left, 752, 94 ;exit profile Sleep, 250 MouseClick, right, 635, 226 ;rightclick friend RandSleep(201,731) MouseClick, left, 687, 288 ;Invite RandSleep(201,731) MouseClick, left, 1567, 545 ;accept request RandSleep(500,1000) MouseClick, left, -724, 262 ;resume game Sleep, 1000 ;Waittime before highlvl joins game - Time this yourself and adjust accordingly! RandSleep(1500,2500) Send, {ESC} ;open menu RandSleep(201,331) MouseClick, left, 397, 346 ;click leave game RandSleep(201,331) MouseClick, left, 339, 380 ;confirm leave Sleep, 400 ;Wait timer to make sure highlvl left game - if not, increase sleeptimer RandSleep(401,531) MouseClick, left, 987, 102 ;select window right ;SEARCH FOR ADRIA, you spawn at different locations so have to perform a pixelsearch ;Color might not work for everyone, use windowspy to find color that works for you Pixelsearch, Px, Py, 970, 40, 1145, 120,0x1F233A, 5, fast ; 0x23243C 0x1D2233 Send, {1} RandSleep(201,367) MouseClick, left, %Px%, %Py% ;click adria Sleep, 3500 ;Waittime for walking to adria, if pressing esc to fast/slow adjust (Depends on movespeed) RandSleep(301,431) Send, {ESC} ;close quest complete panel RandSleep(301,431) Send, {ESC} ;open menu RandSleep(301,431) MouseClick, left, 403, 349 ;click leave game RandSleep(301,431) sleep, 2000 } return ;restart script RandSleep(x,y) { Random, rand, %x%, %y% Sleep %rand% } Pause: pause return
You probably clicked on her. What that click does for me is it clicks just enough so that her full body is in view at the end of the run, and by then it finds the pixel. You're not supposed to make that click ON her, just a few steps towards her.
EDIT: Here's an image. Black dot is where I'm clicking.
![]()
Last edited by Iaccidentallytwink; 06-23-2012 at 01:52 PM.
has anyone gotten the pixel search to work? Too many friends are logging on and off and messing it up.![]()