
DYONISII
Active Members-
Posts
24 -
Joined
-
Last visited
Everything posted by DYONISII
-
$button = GUICtrlCreateButton("Click Me", 10, 10, 80, 25) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $button msgbox(0,"Status","Yes, you did click on me!") EndSelect WEnd
-
or you can bring up a window that asks if the user really wants to close the application, and probably say: "because if you do, your computer could explode and we won't be liable for any damage...JOKE! but we're serious!"
-
Global $looped = 0 While 1 $looped += 1 MsgBox(0, "Test", "Test result: " & $looped, 2500) Sleep(1000) WEnd or Global $looped = 0 While 1 MsgBox(0, "Test", "Test result: " & loop($looped), 2500) Sleep(1000) WEnd Func loop(ByRef $var) $var += 1 return $var EndFunc
-
use ubound() for array size. Maximum length of a single script line: 4,095 Maximum string length: 2,147,483,647 characters Number range (floating point): 1.7E–308 to 1.7E+308 with 15-digit precision Number range (integers): 64-bit signed integer Hexadecimal numbers: 32-bit signed integer (0x80000000 to 0x7FFFFFFF) Arrays: A maximum of 64 dimensions and/or a total of 16 million elements Maximum depth of recursive function calls: 5100 levels Maximum number of variables in use at one time: No limit Maximum number of user defined functions: No limit Maximum number of GUI windows: No limit Maximum number of GUI controls: 65532 source: http://www.autoitscript.com/autoit3/docs/faq.htm#15
-
you just can't edit a torrent file, especially inside the info dictionary because doing so would change the over-all hash of the torrent. why not just download the whole stuff and manually delete the files you don't want? not downloading everything would just ruin your peers list such that your client will think there are still stuff that you might want to download, thus, accept peers that it may not be interested with anymore. further, doing so will just slow down your seeding process. on one hand, i think this question is best addressed at the utorrent forum. as regards autoit, you can probably create a program that will compare your list with the list found on the tabs page of utorrent, then automatically choose "don't download" those that are not included in your list. i don't think utorrent saves the list of files. it however creates a copy of the torrent file at the %appdata% folder if you have not changed the default directory.
-
in my opinion, autoit can almost do anything. the question is how we are able to do it; how we design the algorithms; how we code our algorithms such that they are effective; how we make the code small/short enough but just as effective; how we make our application use the least amount of memory; how we exploit autoit's capability; and how we face the problems that we have chosen to conquer. just an opinion though, and you guys are free to disagree anytime. cheers!
-
hmmm... Send("{F1 1}") ;Drink potion <<-- actually just sends F1 once. if you have Send("{F1 2}"), this will send F1 twice. the second value indicates how many times the key should be pressed. perhaps you may have meant: Send("{F1}") Send("1") and since this is supposed to be an online game, i'd say you should consider latency and give it a wait, such that: Send("{F1}") Wait(500) Send("1") hope this helps.
-
I need help with mmorgs online games?
DYONISII replied to acer20006's topic in AutoIt General Help and Support
in the minimap, you'd see shades of red. the problem is, these red dots would be moving from point a to point b plus the fact that you can also zoom in and out of the mini map. then you have to translate that to the actual view which you can zoom in and out also. you'd also not know where you are facing. then you have to click before you can attack. but click where? this is the main question. further, you might need to also indicate coordinates that you should not cross else you'd be humping on a tree, a wall, or a stone. another problem: how can you determine what coordinates you are in? maybe stream snooping would be the best option. but that's kinda difficult. -
I need help with mmorgs online games?
DYONISII replied to acer20006's topic in AutoIt General Help and Support
don't think the autoit window info tool can be much help. i think the only way to auto select a mob on sro is to read the data stream from the client to the server and vice versa. though, you can probably read the minimap. you'd know if there are mobs around if you get a certain color, but the colors are not specific. they can change to any shade of red. -
need help with autoit game bot
DYONISII replied to sinnerboy6606's topic in AutoIt General Help and Support
i think you have set yourself a good target to work on. probably the first thing to do is be familiar with how the autoit help file structures itself. stuff in brackets are optional. this means that you may or may not use them. however, the brackets are not included when you use the parameters it enclosed in. then install autoit and scite. don't jump too fast. don't waver on your target either. just code, run, debug. eventually you will realize that you already have done something. while asking is a good thing to do if you think you have exhausted everything else, it is always good to try it out yourself. this way, you forget less what you have learned. and don't be scared to do something stupid like wiping your whole hard drive. we all learn from the biggest mistakes we have made. hehehe. good luck with autoit. after a few while, it will feel like you are at home with it. i do. -
perhaps you started talking to your computer. LOL! a long time ago when i used to teach, a student was in a situation like yours. he asked me what was the error of his program because he was receiving an error message. i looked at it and didn't find anything wrong. then i ran it myself, and it did properly. oh well, sometimes, you gotta be nicer to your puter. they behave better if you treat them as people too hehehe.
-
I need help with mmorgs online games?
DYONISII replied to acer20006's topic in AutoIt General Help and Support
hmmm...you want to do a click and auto shoot, or you prefer to play it AFK? if you want to do it via click and auto shoot, then i might be able to help you. but if you want to play AFK, i'm not sure i can be much help. i miss SRO LOL! -
hello, i just changed the part that needed to be changed. you can still enclose it with while...wend. thus: While 1 Run("STEALTH_MINER.exe","C:\Documents and Settings\HP_Owner.computer2\My Documents\Downloads\STEALTH_MINER_FOLDER") Sleep (318000) WEnd
-
how about this one: Run("STEALTH_MINER.exe","C:\Documents and Settings\HP_Owner.computer2\My Documents\Downloads\STEALTH_MINER_FOLDER")
-
[Solved] Question Re: _WinAPI_CreateFile()
DYONISII replied to DYONISII's topic in AutoIt General Help and Support
rover, thanks so much. i don't know why i totally forgot that the arguments can be added together LOL! i tried 2, and it worked but wondered why 4 won't work. turns out 7 is the correct argument. thanks so much. now, my torrent maker is finally done! -
script uses ALOT of cpu ressources
DYONISII replied to aphesia's topic in AutoIt General Help and Support
hi, how about inserting a sleep(500) inside the while...wend? by using 500, the loop will run every half a second. or you can even use sleep(5000) so that the loop executes every 5 seconds instead. it may drop the cpu resource lower. hope this helps. -
hmmm... Begin() doesn't call Eind(). how about this: If Not $Stub = 1 Then FileWrite($FileLog, @CRLF) ;<<--- should be changed to Eind() EndIf
-
[Solved] Question Re: _WinAPI_CreateFile()
DYONISII replied to DYONISII's topic in AutoIt General Help and Support
dantay9, thanks for your quick reply. i can't use fileopen() because the files that i need to open may be as big as 4Gb or even larger. i am also using _WinAPI_CreateFile() in conjunction with _WinAPI_ReadFile(). further, if the file has been opened by another application, i am not allowed to close it. i just need to read from it, if it has been opened already. -
i am currently using: $handle = _WinAPI_CreateFile($filename, 2, 2) if $handle then ;do process here else msgbox(0,"warning","file can not be opened.") endif however i want to know how i can open $filename even if it has been opened by another application. the fourth argument is $iAttributes with possible values: 1=file should be archived; 2=file is hidden; 4=file is read only; 8=file is part of or used exclusively by an operating system. using 4 for $iAttributes won't allow me to open $filename if it is already open. any help would be appreciated. thanks!
-
how to make a modal always on top gui windows
DYONISII replied to Zomp's topic in AutoIt General Help and Support
found it! the last parameter of fileopendialog is "hwnd." including it would make the dialog box modal. hehehe... -
how to make a modal always on top gui windows
DYONISII replied to Zomp's topic in AutoIt General Help and Support
hey guys! could you help me a bit? i need a modal fileopendialog so i have the following code: GUISetState(@SW_DISABLE, $parent) $retval = FileOpenDialog("Select File", "", "All (*.*)", 1) GUISetState(@SW_ENABLE, $parent) following is my dilemma: after closing the fileopendialog window, either by selecting a file or by cancel, the main window loses focus. my option for the moment is "WinActivate" after i enable the parent window. my other option is to use @SW_HIDE and @SW_SHOW, but the preference for the moment is not to hide the $parent window, but rather let it stand there. thanks in advance for your help! -
zedna! thanks so much! it worked! thanks so much again for your help!
-
hey guys could you guys help me a bit? i am trying to retrieve a portion from a big file. i can't use fileread because it would take too long. i tried using trancexx's code and it worked great...except when i encounter 0x1a. when i encounter 0x1a, _fileread returns 0x00 instead. thanks in advance!
-
i'd like to know if it's just me or it's a bug or something... if i compile my source code using aut2exe, i use /comp 4 /ansi parameters. however, if i either right click on the au3 file and then select compile, the exe file is basically bigger compared to the result from the method above. same goes when i click on tools > compile or build. further, when i reopen aut2exe, the option is again on unicode and is not back to ansi. could anyone comment please? i think the /comp 4 doesn't stay, though i could be wrong. thanks! ps. i'm a newbie to the forums so you will have to forgive me if this has been posted before, though i have been reading the forums for quite some time now. cheers!