
AntiBNI
Members-
Posts
16 -
Joined
-
Last visited
About AntiBNI
- Birthday 09/15/1989
Profile Information
-
Location
Under Ur Bed
AntiBNI's Achievements

Seeker (1/7)
0
Reputation
-
Thnx alot guys. I had 6 scripts that they work but dint knew how to loop them and fixing them atm =P. apriciate every 1ns answers.
-
Sorry for making such many questions but im learning programing and every 1 learns with errors xD. heres the thing im making a GUI script and when i try to loop the script. Heres my full script #include <GUIConstants.au3> #NoTrayIcon GUICreate ("Testthing",450,280) $button1=GUICtrlCreateButton ("Start",1,68,445,30) GUICtrlSetTip ($button1,"Start","Start",0,1) $button3 = GUICtrlCreateButton ("Exit",400,20,40,40) GUICtrlSetTip ($button3,"Stop and Exit","Exit",0,1) GUICtrlCreateLabel ("To Pause the script Press Pause",10,1) GUICtrlCreateLabel ("To Exit Press Esc",10,15) GUICtrlCreateGroup ("Loot for",10,29,145,40) $time=GUICtrlCreateInput ("Time in Milliseconds",14,43,135,20) GUICtrlSetTip ($time,"Type in milliseconds how long you want to bot. To get the time 1sec= 1000 milliseconds 1000 1min= 60000 1 Hour= 3600000, 7200000= 2Hours and so on.","Time in Miliseconds",0,1) GUISetBkColor (0xEFFFFFF) $pic = GUICtrlCreatePic("",0,100,450,180) GUICtrlSetImage($pic, @ScriptDir & "\mainbg.jpg") GUISetState () Global $Paused Hotkeyset ("{Pause}","Pause") Hotkeyset ("{Esc}","Terminate") Func Pause () $Paused = NOT $Paused While $Paused Sleep (100) ToolTip ("Paused",0,0) WEnd ToolTip ("") EndFunc Func Terminate () Exit 0 EndFunc While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop $i = 1 Do ;This is the part that when i start the bot gives me an error saying "Case" statement with no matching "select" or "switch" statement. its like blocking the Select stame ment, i donno what to do. Case $msg = $button1 ToolTip ("Please go to Notepad Window to Begin") WinWaitActive ("NotePad","") ToolTip ("") Send ("f") Sleep (1000) Send ("f") Sleep (1000) Case $msg = $button3 Exit Case $msg = $time WinWaitActive ("NotePad","") Sleep (GUICtrlRead ($time)) WinWaitClose ("NotePad","") Run ("Notepad.exe") Sleep (2000) Send ("time has finished.",$lvl) Send ("{Enter}") Send ("ThankYou for using the script.") Send ("{Esc}") EndSelect WEnd $i = $i + 1 Until $1 = 10 While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend If the loop is infinit it would be even better. i realy dont know what to do at this rate. Cheers. Anti.
-
yeah, i dont know whats wrong but it aint creating the file.
-
Ok, here it is. #include <GUIConstants.au3> #include <File.au3> GUICreate("programl",200,200) $misc=GUICtrlCreateInput ("",100,100,110,20) $save=GUICtrlCreateButton ("save",50,50) GUISetState () While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $save _FileWriteLog (@SystemDir & "\file\save.log",GUICtrlRead($misc)) EndSelect Wend I just want to save what you typed in the input save it on the log file. Cheers. Anti
-
hmm, i have another obstacle on my way xD. The problem is that i want to write a log file from an input. i tried many ways and all ended in failure. i tried: _FileWriteLog (@SysDir & "\file\save.log",GUICtrlRead($misc)) $misc is the Input av _FileWriteLog (@SysDir & "\file\save.log",$misc none of those work. im new in log , ini , dll stuff so. sorry if im making an horrible mistake xD.
-
In having a litle problem in making a Timer
AntiBNI replied to AntiBNI's topic in AutoIt General Help and Support
hmm i just want to know how to implement the value given to the input into @SEC thats all. and Time init/Diff its in miliseconds i need a value of Secs or Hours. -
well im making a script that it consists of a GUI with a Input. what i want it to do is that when i type a anumber i want the script to run untill that time is up and make something. heres my script #include <GUIConstants.au3> GUICreate ("test",300,300) $time=GUICtrlCreateInput ("",1,1) $button=GUICtrlCreateButton ("start",50,50) GUISetState () While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $button If @SEC = $time Then; heres the thing i want as meny seconds as i type in the input,i tried & $time tried GUICtrlRead ($time) and bunch of ways but none had work. MsgBox (1,"test","test msg") EndIf EndSelect WEnd so im posting cuz many minds thing better then 1 xD. Thanks in Advice Cheers... Anti
-
Clicking on a text after finding it.
AntiBNI replied to AntiBNI's topic in AutoIt GUI Help and Support
Atleast ani one know how to put a $string in mousecoords? like sleep (5000) $text = WingetText ("Notepad","Clickme") If WingetText ("Notepad","")=$text Then MouseClick("left", $text,$text, 1) EndIf I cant figure out how to put $text on the mouse coords. btw that code recognices the text and all but the mouse moves to coods x=0 y=0 instead of the coords that the actual text is. -
ok heres my code Case $PM = 6 If PixelGetColor (122,591)=305140 Then WinClose ("Nomad of Silver Spirit - Nostale") EndIf EndSelect Select Case $talk = 6 If PixelGetColor (122,591)=16382457 Then WinClose ("Nomad of Silver Spirit - Nostale","") EndIf EndSelect well its just the part that dosent work. aniways the thing is that i want the Bot to when some one Whispers me (Private Messege) the bot Closes the Game in this case Nomad of Silver Spirit - Nostale. It aint closing the window,i dont know why but its not closing it. Thanks in Advice. Cheers, Anti
-
Is my logic wrong?, pixelsearch program.
AntiBNI replied to Glyph's topic in AutoIt General Help and Support
PixelGetColor (coordsX,CoordsY)=Type here The Color That cheks if the color on that coords are what you want. ex. If PixelGetColor (215,498)04589745 Then MsgBox ("Color","The color is White.") Else MsgBox ("Error","Could Not locate colo White in those Coordinates.") EndIf or you could use PixelSearch. If PixelSearch (Left,Top,Right,Bottom,Color)=Color Then MsgBox ("Color Found","Yay the color was found ^^") Else MsgBox ("Error","Awww dint find it") EndIf Hope that Helps. -
Clicking on a text after finding it.
AntiBNI replied to AntiBNI's topic in AutoIt GUI Help and Support
wow i gues noone knows or care lol. -
Clicking on a text after finding it.
AntiBNI replied to AntiBNI's topic in AutoIt GUI Help and Support
Ok,hmm heres an ilustrative example: If $text = WinGetText ("NotePad1","") = "Whatever" Then MouseClick ("left"´,$text,$text,1,) End If This code i know that will NOT work but its just so u guys have an ilustrative example about what i want to do. I want that when WinGetText Searches NotePad1 and Finds the word "Whatever" The MouseClick aplication Clicks on top of the word "Whatever". Thanks in advice.... Cheers, Anti -
Ok heres the thing i know how to find a text on a window title and all that stuff blah blah ,But the thing is that i want the script to find the text and then click on the text. I have tried but Failed countless times sending me into a corner banging my head into the wall triying to find a logical solution . so i gues is like ppl say 2 heads thinks better then 1. Thanks in advice... Cheers, Anti
-
Script closes when it shouldnt.
AntiBNI replied to AntiBNI's topic in AutoIt General Help and Support
nvm,did it. i changed the PixelGetColor (174,31) = 47616 to PixelSearch (x,0,y,0,Pixel Color)=PixelColor =P thanks Uten for ur response. Apriciate it. Cheers, Anti -
Script closes when it shouldnt.
AntiBNI replied to AntiBNI's topic in AutoIt General Help and Support
I just want that when my chars HP gets low the bots send numkey (4) or if HP is not so low it keeps killing and yah i will do a loop.i just want to know why it dosent send 4 and it closes.