Jump to content

The_Noob

Active Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by The_Noob

  1. Ok, i understood everything up until the UPX stuff... Thats.... The compressor in the compiler? Im not really understanding how i would change or disable somthing like that.... The new AVG updates are working for me now... I did end up sending them a message along with a few other people, so thats a good thing. If somone wanted to explain the UPX thing a bit more, and how i might switch it so i no longer have problems, that would be cool
  2. This really pisses me off, its gonna be a strain to keep it rated G >;( AVG is my antivirus. It has been for years. Last night, it updated, as it often does. Now every single script i compile is coming up with this Worm.Autoit.AD thing. How do i run my programs?!?
  3. Ok well lets start with the code... HotKeySet("{TAB}", "TogglePause") HotKeySet("{Delete}", "End") Global $Paused = 0 $x = 1 $Timer = TimerInit() $timepaused = 0 Do $x += 1 if $x = 10 Then consolewrite("tick" & @crlf) [s]$timepaused = 0[/s] ;Duh this shouldnt be here! lol $x = 1 EndIf sleep(100) while $paused consolewrite("Paused" & @crlf) sleep(1000) WEnd until 1 = 2 func TogglePause() $paused = not $paused if $paused Then $timer_ = TimerDiff($Timer) $timepaused = $timer_ + $timepaused elseif not $paused Then $Timer = TimerInit() EndIf EndFunc Func End() consolewrite(TimerDiff($Timer) + $timepaused & @crlf & @crlf & @crlf & @crlf ) Exit EndFunc I overlooked somthing... duh... lol. Works now.
  4. I used that, but it counts accuracy as well...
  5. i was thinking about that... then i ralized the text was also displayed in the bottom right corner... so it shouldnt be that hard. Its just how do i "program" each letter?
  6. Im trying to make a bot for the neopets typing terror game, but am having problems starting off... How would somone make an OCR? Yes i know theres a search button, i searched for OCR, found a few people asking aobut it, but nothing thats going to help me. If somone could please assist me, i would appreciate it. http://neopets.com/games/play.phtml?game_id=574
  7. I have a problem... I have my code below: #include <NumBaseConvert.au3> $num = '44e15d91c5abe7f62add55bd052401' $new = "" For $i = 1 To 15 $new = stringLeft($num, 2) & $new $num = stringtrimleft($num, 2) Next $twentyfour = _NumBaseConvert($new, 16, 24) MsgBox(0, 'Start: ' & $new, 'Number in 24: ' & $twentyfour & @LF & _ 'Number in 16: ' & $new) ;$twentyfour should return ;4adm6li41hbah7h1mh569fhak the base 24 that i should get back is "4adm6li41hbah7h1mh569fhak", but thats not happening. Is there a way to make your prog work better with long (30 char) strings?
  8. Ok thanks for your assistance. Great bit of work you did here, i really like it
  9. i tried modifying what you supplied to: #include <A3LProgress.au3> $hProg = ControlGetHandle("My Program", "", "ControlID");where "My Program" and "ControlID" are replaced with the name and control ID of the program i am working with. It is a private program which i cannot provide. if $hProg = 0 then _Lib_ShowError("Unable to obtain progress handle") _Lib_ShowMsg("Progress bar position: " & _Progress_GetPos ($hProg)) _Lib_ShowMsg("Progress bar range lo: " & _Progress_GetRangeLo($hProg)) _Lib_ShowMsg("Progress bar range hi: " & _Progress_GetRangeHi($hProg)) What confuses me is how it works if Autoit makes the progress bar, however it doesnt work when its a progress bar on the program i am working with. Perhaps it does not work with all programs? Unfortunately i am unable to provide the program i am working with, as it is a private program and i dont have permission to share it. Thanks for bearing with my lack of skill
  10. ahh you used _Progress_GetPos, where i was using _Progress_GetRange. Thats the problem -edit- Strange, when i try to convert the code to work with my window, its giving me errors: _Mem_CtrlInt: Unable to allocate memory what does that mean? - Edit - I can get Getpos to work, but getrangelo and getrangehi dont seem to want to cooperate. Same error.
  11. Thank you very much for this. I did forget the include. Im still using #include <A3LProgress.au3> $window = "windowname" $controlID = "ControlID here" do $handle = ControlGetHandle ( "$window", "", "$controlID" ) $value = _Progress_GetRange($handle) tooltip($value) until 1 = 2 but its not displaying anything to the tooltip... Is there somthing special i need to do to make it work? I know my control and window names are correct as i tested with tooltip($handle) and that worked fine - edit - I added in $rangehi = _Progress_GetRangeHi($handle) $rangelo = _Progress_GetRangeLo($handle) and made a tooltip pause a second on each $range, $rangehi, and $rangelo. Its giving nothing for range, 0 for low, and 3000 for hi. No matter what the value of the progress bar.
  12. I am having problems understanding how to use this... i have a sample script below. do $handle = ControlGetHandle ( $window, "", $controlID ) ;this step i know works $value = _Progress_GetRange($handle) ;This step is giving me problems tooltip($value & @lf & $handle) until 1 = 2 Im not sure if the handle will change every time the window is opened or if it stays the same, like a control ID. When i run this, it doesnt seem to understand the underscore before progress, "Unknown Function Name" In your example, it had $tRange = _Progress_GetRange($hProg) MemoWrite("Low range .: " & DllStructGetData($tRange, "Low" )) MemoWrite("High range : " & DllStructGetData($tRange, "High")) How am i to use memowrite? Is that necessary for _Progress_GetRange? Please help me im very confused
  13. With this is it possable to read progress bars from other programs?
  14. I should have clearified, its not a GUI im making, but rather another program.
  15. So i thought i had to convert hex (base 16) to dec (base 10) but apparently for what i want to do, i need to convert a string to base 24. Any takers on how to do that manually? may help to wiki "Radix", And i found base 24 is 0 1 2 3 4 5 6 7 8 9 A B C D E F G H J K L M N P. No I or O because they can be confused with 1 and 0. Why would i want to do this? To be able to make a prog that recovers my Halo CD key. :/ I know the registry keys that i need to access, and i had a prog that was semi written, but once i figured this is what i had to do, i was stuck. Everything else is... well pretty much useless unless i can get this figured out. Im not real optimistic about this. If someone could figure it out that would totally surprise me.
  16. found what was prolly slowing the thing scripts down... http://www.autoitscript.com/forum/index.ph...c=47050&hl= One of the causes anyways.
  17. forget it, im an idoit.
  18. Is there a vista thread? This should prolly go in there. I realized some of my threads progs ran slow in vista and it took me a while to narrow it down, but apparently the pixelgetcolor command is slooooooooooooooooooooooooooow. Like, takes several seconds to complete tasks that normally take milliseconds. For instance $x = 1 do pixelgetcolor($x,1) Tooltip(" ",$x,1) $x = $x + 1 If $x = 50 then $x = 1 until 1 = 2 Yes i know its a do loop that could / should be a while loop, but i like my do loops.... either way its a fairly useless script, but it serves its puropose... On my XP machines it loops many times a second. In Vista, however, it takes TWO SECONDS to loop. remove the pixelgetcolor and it loops much much faster. I have modified my scripts to use other commands (for the life of me i cant remember now) and they run faster, but i would like to know why this command is taking soo long, and what (if anything) is being done to fix it. Is anyone else having this problem with Vista or is it just me? *edit* I ended up using pixelsearch or whatever that command is... it seems to work a lot faster. In reply to freefry, i had the latest version installed, it didnt help. That thread Jon is talking about tabs, whereas here im talking about getting the color of a specific pixel. Yes i had areo running, full fade effects and transparencies, the whole nine yards. I figure if you got a laptop thats worth 3 grand, and is more powerful than most PC's, running one of the most graphic intense operating systems ever, you might as well make a go of it.
  19. now that just totally confused me. But thanks for the information on while vs do is helpfull. I apprieate it. Thanks!
  20. I know i found one of these a while ago... somthing that would poll the laptop for the battery life.... i cant seem to find it anymore... If somone could assist me, i would apprieate it. Found it.
  21. well i know it works... but i want to know what the point of test\test is in the example... #include <Misc.au3> if _Singleton("test\test",1) = 0 Then Msgbox(0,"Warning","An occurence of test is already running") Exit EndIf I tried a few different things in "test/test" and they all worked... im somewhat confused... the other example works better IMO tho so im gonna stick with that. At this point its just morbid curiousity
  22. lol that confused me more... Is there a point for $g_szVersion or could it just be named $version or somthing simple? is there a use for the $g_sz? And what if its a process without a window? like somthing meant to run in the background? Does that rename the process itself? Whats going on there? I dont just want a "heres the solution, go away" i would much rather know why stuff works so i dont have to keep asking about it later #edit# So i did a search for _Singleton and found a lot of other people confused with it... it seems like its a long way to do somthing thats otherwise simple. I also found Global $AuthAgent="Script" If WinExists($AuthAgent)=1 Then Exit EndIf AutoItWinSetTitle($AuthAgent) which is pretty much the same thing as abive, but without the complicated name... so i guess that answers one of my questions. I decided to give it a go and test it, and its working, which i guess answers all of my other questions concerning MethodZero's post, except why he chose such a long name for $g_szVersion. My question to PianoMan still stands, but for what its worth this is a lot easier for me to understand, and it seems to work no explinations needed... Why do people need to make things more complicated than they need be? It confuses us noobs! lol
  23. i read it... its not making sense... #include <Misc.au3> if _Singleton("test\test",1) = 0 Then Msgbox(0,"Warning","An occurence of test is already running") Exit EndIf what is "test/test" ?? i get everything but that... Suppose my script is named Script.exe... would it be #include <Misc.au3> if _Singleton("script.exe",1) = 0 Then Msgbox(0,"Warning","An occurence of test is already running") Exit EndIf
  24. i tend to use do... until 1=2 to do my loops... i should prolly learn while ... wend theyre (supposedly) better... Perhaps have somthing like $time = 1 ;declares $time as a variable do ;starts the loop if $time = 10 then send("keys here") ;do at 10 seconds if $time = 13 then send("keys here") ;do at 13 seconds if $time = 13 then $time = 1 ;every 13 seconds it will reset $time to 1 sleep(1000) ;pauses for one second. $time = $time + 1 ;increases $time by one until 1 = 2 ;will loop until 1 = 2... which never happens Somthing like that, If you can code other languages you should be able to manipulate that to work. autoit wont read anything after ; so use them for notes. hey since i brought it up... whats the advantages of using do loops vs using while loops? #edit# Heh i just realized that what i put does the same thing as what Jon did, but in like twice as many lines. Duh... lol
  25. How can i detect if an instance of this script already exists? i tried if processexists("script.exe") then exit but that closes the script that im trying to run. Any suggestions?
×
×
  • Create New...