[Mini-Script] Shutdown on DC

06/04/2007 13:09 blizzgotbanned#1
I usually leave my pc stalling all night, the problem is that sometimes when I wake up I have the DC confirmation window and I think: "wtf... dc? I might as well leave my pc off".
But today I had an Idea.. What about if wenever the game DCs the pc shutsdown? well this is what this script does..
I was gonna make an .exe of it, but since then I would get a lot of noobs sain it was a keylogger and things like that I'll just paste the code here.

Instructions:
1Download and install Autoit V3
2Copy the code and paste it into a .txt and rename it to .au3
3Run the script when u r planning to go afk.

Code:
$a=1
While $a==1
Sleep(1000)
If PixelGetColor(361,318)=0x424242 Then
	If PixelGetColor(472,410)=0xDECE94 Then
 *$a=0
 *Shutdown(1)
	EndIf
EndIf
WEnd
That's it... All the script does is detect the dc window and shutsdown if detected sucesfull. :cool:

Ok, I said that I wouldn't up the exe, but here it is, just in case u don't want to have all that trouble. Scan all u want.
[Only registered and activated users can see links. Click Here To Register...]
06/04/2007 13:55 Marcioreis#2
hehe =P i like it

i am a beginer on programation ^_^ i had that idea but start its not easy

congratz
06/04/2007 16:49 Reclaimer991#3
blizz please just post the programm here......ill like to check it...ohh and dont give a shit to what noobs say...just post it man
06/04/2007 18:01 xplodek#4
I got DC and my computer didn't shut down.
BTW. in what resolution this script works?
06/04/2007 19:14 blizzgotbanned#5
Ok, I'll post the program here in a minute.
It works in 1024*768.
06/04/2007 19:23 xplodek#6
ok thx, I solve the problem, i had silk minimized and now it works thx again :)
its very useful and +k for you of course
06/04/2007 20:04 blizzgotbanned#7
ok Reclaimer I added it to the main thread...

btw someone called to my atention that since the party req window is somehow like the DC window that u would probabily shutdown on party req.
Can someone test this pelase?
Keep in mind that I made this in 2 mins or so, and only tested it once...

<hr>Append on Jun 4 2007, 20:07<hr>
Quote:
Originally posted by xplodek@Jun 4 2007, 19:23
ok thx, I solve the problem, i had silk minimized and now it works thx again :)
its very useful and +k for you of course
doesn't work with sro minimized...
thx 4 k ;)

<hr>Append on Jun 4 2007, 20:24<hr> edition in the code:
added Sleep(1000) so it does't get so heavy
new compiled exe dl link:
[Only registered and activated users can see links. Click Here To Register...]
added to main thread
06/05/2007 07:18 Naruto1000#8
thx man ,it works with 1024*768

you said you make the script in 2 minutes

can you make a script for 1280*1024 , too?

ty if you can
06/05/2007 08:09 gaslyman#9
post up the .exe
we nub don noe how to use autoit ^^
06/05/2007 08:29 xplodek#10
Quote:
Originally posted by gaslyman@Jun 5 2007, 08:09
post up the .exe
we nub don noe how to use autoit ^^
lol, he posted .exe file ---> [Only registered and activated users can see links. Click Here To Register...]
BTW. why did you said "we" :D
I'm not noob and i know how to use autoit :P
06/05/2007 16:42 Gh3tt0PlAyA#11
ok cool u are giving me ideas what to make next :0
yea autoit is the best so far u should make it in gui tho
06/05/2007 19:41 rsalumpit#12
auto it is in what script?i mean like c, c# or java??thnx im noob
06/06/2007 01:08 blizzgotbanned#13
Quote:
Originally posted by Gh3tt0PlAyA+Jun 5 2007, 16:42--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Gh3tt0PlAyA @ Jun 5 2007, 16:42)</td></tr><tr><td id='QUOTE'> ok cool u are giving me ideas what to make next :0
yea autoit is the best so far u should make* it in gui tho [/b]

nã... I'm not gonna make a gui, cos initially I made this for my personal use only,but the I decided to shar it... But u r welcome to change it and enhance it. ;)

<hr>Append on Jun 6 2007, 01:12<hr><!--QuoteBegin--rsalumpit
@Jun 5 2007, 19:41
auto it is in what script?i mean like c, c# or java??thnx im noob [/quote]
autoit is in... autoit :S
It's a very powerfull scripting language that has the ability to work by itself or atached to any other program(s) (controling it(them) and/or sending/recieving data from it(them)).
02/16/2008 12:21 dandelion#14
that works if sro is hided with botmoon¿
02/16/2008 12:28 --EpoX--#15
it doesnt work for me i even in solution of 1024 * 768 =(