Jump to content

Pharon

Active Members
  • Posts

    33
  • Joined

  • Last visited

Pharon's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Alright, I'm trying to make a script that will type, in notepad, every combination of word and number using a-z, A-Z, and 1-0. Example: a b c d e.... then when it gets done with that it will go, aa ab ac ad.... then, ba bb bc... and so on. I've been messing around with this for a while and this is what I have to far. To be honest I don't even know how most of this script works, or if this is even the best way to do this. Please help. CODEHotKeySet("{DEL}", "MyStart") HotKeySet("{INS}", "MyExit") $alphabet = StringSplit('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890') $g = 1 While 1 Sleep (2000) Wend Func MyStart() While $g = 1 For $a = 1 to 62 $letter = $alphabet[$a] Send($letter) Send("{Enter}") Next $g = 2 WEnd While $g = 2 For $b = 1 to 62 $letterb = $alphabet[$b] Send($letterb) Next For $a = 1 to 62 $letter = $alphabet[$a] Send($letter) Send("{Enter}") Next $g = 3 WEnd EndFunc FuncMyExit() Exit EndFunc Also, why does codebox get rid of my tabs?
  2. I know how to memory hack and how to write trainers, this is all old to me, I just don't know if I have to save that script as a file and include it in the script or add it into my script.
  3. Anyway... anyone want to try and explain it to me?
  4. I was woundering if Autoit can read memory addresses and then do an action when a value is equal to something. I did a little searching and found this http://www.autoitscript.com/forum/index.php?showtopic=19329 but I don't understand how to use it at all... What I would like to do is when the memory value is at a certain point, move the mouse. Any help would be appreciated.
  5. I just write my scripts in notepad, I don't think I've ever indented them...
  6. Thanks that helped but... HotKeySet("{DEL}", "MyStart") HotKeySet("{INS}", "MyExit") $alphabet = StringSplit('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-_=+,./;''[]\<>?:"{}|', '') $g = 1 While 1 Sleep (2000) Wend Func MyStart() Do If $g = 1 Then For $i = 1 to 92 $letter = $alphabet[$i] Send($letter,1) Send("{Enter}") Next If $i = 92 then $g = 2 EndIf EndIf Until 0 Do If $g = 2 Then For $i = 1 to 92 $letter = $alphabet[$i] Send("a") Send($letter,1) Send("{Enter}") Next EndIf Until 0 EndFunc Func MyExit() Exit EndFunc Now it will go through the first part, but when it gets to where it's supposed to put a first, it doesn't. I'm not sure if $g isn't being changed to 2 or whats going on.
  7. HotKeySet("{DEL}", "MyStart") HotKeySet("{INS}", "MyExit") $alphabet = StringSplit('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-_=+,./;''[]\<>?:"{}|', '') $g = 1 While 1 Sleep (2000) Wend Func MyStart() If $g = 1 Then Do For $i = 1 to 92 $letter = $alphabet[$i] Send($letter,1) Send("{Enter}") Next If $i = 92 then $g = 2 Until 0 EndIf EndIf If $g = 2 Then Do For $i = 1 to 92 $letter = $alphabet[$i] Send("a") Send($letter,1) Send("{Enter}") Next Until 0 EndIf EndFunc Func MyExit() Exit EndFunc I keep getting errors with either Until 0 has no matching do function or EndIf has no matching If function?
  8. lol, thanks I can't believe I missed that... Edit: What I actually want to do is make a password program, that will start with a, then just keep going up to ab, aba, abac, etc. It's this the best way to do this?
  9. It will print up to abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*() then it cuts off.
  10. HotKeySet("=", "MyExit") HotKeySet("-", "Start") $alphabet = StringSplit('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-_=+,./;''[]\<>?:"{}|', '') Do Until 0 Func Start() Do For $i = 1 to 102 $letter = $alphabet[$i] Send($letter) Next Until 0 EndFunc Func MyExit() Exit EndFunc The code does the letters and numbers fine, but it messes up on the symbols, why?
  11. $alphabet = StringSplit('abcdefghijklmnopqrstuvwxyz', '') For $i = 1 to 26 $letter = $alphabet[$i] msgbox(0, 0, $letter) Next Thanks that works except, I also need to put in !@#$%^&*()-_=+,./;'[]\<>?:"{}| into the stringsplit, but I can't figure out how without it trying to make it into another command.
  12. ah thanks larry it works perfectly, now, I can make numbers count up, is there a way to do it with letters going a-z?
  13. Alright I can get done into a variable, how do I check it so that if done is true then it will perform the next thing?
  14. At the bottom of the window, when a page is done loading it says done, is there anyway for AutoIt to read this?
  15. Gah, I can't believe I didn't notice thouse other if statements in my code x.x I see what you were saying now, I just didn't realize I didn't end thouse...
×
×
  • Create New...