Jump to content

BotTr

Active Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by BotTr

  1. I recently ran a script which i had the source to for laughs figuring it was probably going to do something stupid (which it did) it stole the cdkey to the game instead of working for the game (macros, reveal map etc) now i was wondering if someone who is pretty experience in AutoIt can check out this code and make sure it did not actually install anything to PC or keylog me in anyway. I haven't worked with AutoIt for years so for me to look at it i wouldn't trust exactly what i am looking at. i will attach the file here. If thats not allowed i will remove it and PM it to anyone who is willing to peek at it. Thanks guys and i hope to be back and have time to pick up on autoit again.
  2. Kind of off topic here but since u have a GUI is it possible to remove the system tray icon?
  3. i decided to use functions but this GrahamS youe method works great i appreciate all the help from you guys thanks
  4. Yea thats what im stuck on because if i eliminate the Else it does the same thing over n over lol im sure this is simple again i am probably overlooking something.
  5. The exe is still closing after the 1st section. If i want it to do the 2nd section after the 1st am i suppose to use something besides Else??
  6. Im having trouble here is my code $Plant = IniRead("settings.ini", "Main", "Plant", "Error Reading INI") $Harvest = IniRead("settings.ini", "Main", "Harvest", "Error Reading INI") AutoItSetOption("MouseCoordMode", 0) WinActivate("Window") Sleep(4000) Global $slot1 Global $slot2 Global $slot3 Global $p Global $h $p = 0 $h = 0 ;section1 If WinExists("Window") Then Do $slot1 = MouseMove(25,66) MouseClick("left") MouseClick("left") Sleep(1000) MouseMove(461,318) Sleep(1000) MouseClick("left") Sleep(1000) $slot3 = MouseMove(85,68) Sleep(1000) MouseClick("left") MouseClick("left") Sleep(1000) MouseMove(461,318) MouseClick("left") Sleep(2000) Send("{UP}") $p = $p + 1 Until $p = $plant Else ;section 2 if $p <= $plant Then Do Sleep(900) $slot3 = MouseMove(56,65) MouseClick("left") MouseClick("left") Sleep(1000) MouseMove(461,318) Sleep(1000) MouseClick("left") Sleep(3000) Send("{DOWN}") $h = $h + 1 Until $h = $Harvest EndIf If NOT WinExists("Window") Then MsgBox(16, "Window Is Not Present In Memory") EndIf Ok now my problem is that it does the first section of code but when it gets to the 2nd part (else) it does not do it and the program closes. I was hoping to make it do the 1st set there and then move on to the 2nd section but only the ammount of times that is put into the INI. I am very lost this is for personal use only, for a game yes but only being made to help me understand things better i hope im not breaking any rules here Thanks in advance
  7. Its more like mouse movements, it moves fine just doesnt stop using the While function Working on getting it to stop at a certain point thanks for the help tho im sure it will dawn on me
  8. Thanks that worked great!! A little off topic here but i was wondering how u could loop something but stop the loop at a certain time in its loop Like if it has loop'ed 7 times stop n do something else (type in hello loop it 7 times, end the loop and do something else) I am sorry if this sounds stupid but i am new and i am probably overlooking it somewhere in the help file..
  9. Ok i am wondering if it is possible to detect where you are located (x,y) And once that has happened move to a assigned spot (x,y) Any kind of help will be appreciated Thanks
×
×
  • Create New...