Jump to content

CoderDunn

Active Members
  • Posts

    336
  • Joined

  • Last visited

Everything posted by CoderDunn

  1. How about: Global $Minutes = 60 $Minutes = $Minutes * 60000 $Main_Timer = TimerInit() While TimerDiff($Main_Timer) < $Minutes If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit Sleep(1) WEnd ; Shutdown code Hallman
  2. Look at PixelSearch(). You will need to find a unique color for every monster. Hallman
  3. Well, in that case, what do you use as a control ID? I did a test with notepad and using the notepad window handel as the control ID but it didn't work ...
  4. Control send wont work ... as there is no standard windows control to send it to.
  5. Well then I don't think it's possible with AutoIt's current functions. Anyone correct me if I'm wrong. Hallman
  6. It sounds like to me you want to "run" the scripts. To do that it would be like: _Random(Random(1,3,1)) Func _Random($Number) Select Case $Number = 1 $RUN_PID = Run(@AutoItExe & " /AutoIt3ExecuteScript ""PATH\SCRIPT1.au3""") Case $Number = 2 $RUN_PID = Run(@AutoItExe & " /AutoIt3ExecuteScript ""PATH\SCRIPT2.au3""") Case $Number = 3 $RUN_PID = Run(@AutoItExe & " /AutoIt3ExecuteScript ""PATH\SCRIPT3.au3""") EndSelect EndFunc Hallman
  7. Look at WinSetState() in the help file. Hallman
  8. I don't think it possible with AutoIt's built in functions. If there are no controls, why do you want to send keystrokes to it? A screenshot of the window may help. Hallman
  9. Well, is a memory editor such as T-Search able to freeze this address? On a side note, if you are still using wOuter's mem functions the attached seems to be easier to use. Hallman
  10. Look into the Assign() function in the helpfile. Hallman
  11. But whats the point? You still have to write all the functions out as when you write a script. I think a click and select GUI is more practical. I don't mean to strike down your idea. Hallman
  12. As stated in the AutoIt3 help file FAQ, only certain files can "Run". Try doing Run('POWER POINT EXE "PATH OF .pps"',"DIR OF POWERPOINT EXE") Hallman
  13. A little advice ... Your whole script can be summed up to one line. FileWrite("SAVE PATH\msbatchbb.bat","@Echo Off" & @CRLF & "Msg * Hey Jared. This is chris and it looks like you restarted your computer!" & @CRLF & "exit") Replace SAVE PATH with where you want to save it. If you want to have a message saying it's gonna install, add a MsgBox() to the top. Hallman
  14. Well i have no idea what the problem is but ... To make your script much better look into BlockInput(), and FileWrite() in the AutoIt helpfile.
  15. Well I sort of solved a problem I had about keeping the cmd window open by using: Run(@SystemDir & "\cmd.exe", @SystemDir) then using the Send() function to do a command.
  16. But even with that errror it wouldn't make the compiled script do nothing. It would say "Script Error Line 36".
  17. Seems like the compiler is broke. Try reinstalling AutoIt
  18. Try adding this at the top of your script then compile it. MsgBox(0,"","The compiled script ran.") See if it displays the msg. The code doesn't seem to have errors. Spoke to soon ... Line 36 has a bracket to end the function instead of a parenthese
  19. If you posted the code, then someone might be able to help you. Maybe you need to reinstall AutoIt3? Hallman
  20. If you need to create an array with more than 64 dimensions ... what kind of script are you making Don't confuse dimensions with elements as it seems you have. Hallman
  21. Well the limit for HotkeySet is up to 64 hotkeys. Hallman
  22. I don't know if I misunderstood question ... but to keep the user from typing letters into the input you could just add the $ES_NUMBER style to the inputbox. Hallman
  23. Download the latest beta from http://www.autoitscript.com/autoit3/files/...-beta-setup.exe
  24. Well the first thing i notice when looking at this is you could replace lines 11 - 35 with these three For $i = 1 to 25 Step 1 Assign("Charlvlis" & $i,_GUICtrlComboAddString($Charlvl,$i),2) Next Maybe do something similar with the other ones too
  25. Thanks, that helped alot since I was trying to use a port number of 82153 So the port can be anything as long as it's between 0 and 65535 right? Hallman
×
×
  • Create New...