[UntzBot] SWTOR auto focus and crash fix [open source] menu

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 15 of 40
  1. #1
    TheDank's Avatar Member
    Reputation
    5
    Join Date
    Apr 2012
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [UntzBot] SWTOR auto focus and crash fix [open source]

    First and for most, this is open source and was created by me. why is this open source? because these programs require you to place your SWTOR password into the program. for me, i would be skeptical of this kinda of program. so, to eliminate and funny business, this is open source.

    Now, these programs do require your password and they also require that there is no security key on your account. if you dont want to lower your account security, then i am not forcing you to use anything i provide you.

    This bot only supports the latest version of UntzBot currently (5.0x3). I have not used Luckys so i dont know anything about it. if there is a high demand for this to be supported on Luckys then please post. i dont mind making a modified script for Luckys bot.


    Here is the most up-to-date code:


    This is Focus4. this will make sure SWTOR is the focused window at all times. it will also ensure that, if for some reason, SWTOR closes/crashes randomly, Focus4 will re-open SWTOR and login for you.

    Here is the setup:

    1. Download SciTE from the autoIT website.
    2. Install SciTE
    3. Open Focus4.au3 in SciTE
    4. you will notice that there is a line near the top of the code that reads: $PASSWORD = "Your Password here" replace Your Password here with your actual SWTOR password and be sure to leave the quotation marks or the program WILL NOT WORK
    5. Save the file (Ctrl + S)
    6. click Tools -> Compile
    7. in the new window that pops up, click either, "Use X86 version" or "Use X64 version"
    NOTE: X86 should be used for 32-bit OS. X64 is for 64-bit OS. If your OS is 32-bit, the X64 version WILL NOT WORK
    8. Click "Compile Script" and let it do its thing
    9. Once done compiling, go to the Focus4 Bundle folder and you will see a Focus4.exe
    10. Move the Images folder and Focus4.exe to your UntzBot folder
    11. Minimize all windows and take a screenshot of your desktop icons
    12. Open Paint (or any other photo editting program you would like) and paste the screenshot (CTRL + v)
    13. Crop the image so that only the middle of the SWTOR icon is in the picture. (look at the Icon.png in the Images folder as an example)
    14. once cropped, save the file as a .png and replace the Icon.png that is already in your Images folderin the UntzBot folder.
    15. Double Click the Focus4.exe located in the UntzBot folder


    Here are the hotkeys the Focus4 uses:
    F1 = runs the full bot, makes sure SWTOR has focus and will re-launch if it crashes
    F2 = opens UntzBot and DeathCheck and repositions them accordingly
    F3 = Closes UntzBot, DeathCheck and Focus3


    Code:
    #RequireAdmin
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_UseX64=n
    #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    ;Updated 8/1/2012
    ;Version 4.3
    ;Frozen.exe is no longer needed!
    #include <Imagesearch.au3>
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <Timers.au3>
    AutoItSetOption("WinTitleMatchMode", 3)
    
    $Form1 = GUICreate("Focus4", 400, 200, @DesktopWidth - 410, @DesktopHeight - 275)
    GUISetBkColor(0x0000FF)
    GUISetState(@SW_SHOW)
    HotKeySet("{F1}", "GetFocus")
    HotKeySet("{F3}", "CloseAll")
    HotKeySet("{F2}", "StartUp")
    ;HotKeySet("{F4}", "LockBoxes")
    
    $x2 = 0
    $y2 = 0
    $CrashCount = 0
    
    
    $PASSWORD = "YOUR PASSWORD HERE"
    Global $Focus = False
    $Exists = 0
    
    While 1
    	$nMsg = GUIGetMsg()
    	Switch $nMsg
    		Case $GUI_EVENT_CLOSE
    			Exit
    
    	EndSwitch
    WEnd
    
    Func LockBoxes()
    ;~ 	WinActivate("Star Wars™: The Old Republic™")
    ;~ 	Sleep(500)
    ;~ 	Send("i")
    ;~ 	Sleep(500)
    ;~ 	$result2 = _Imagesearcharea("Images/LockBoxes.PNG",1,0, 0, @DesktopWidth/2, @DesktopHeight/2,$x2,$y2,50)
    ;~ 	While $result2 = 1
    ;~ 		MouseClick("Right", $x2, $y2, 2, 0)
    ;~ 		$result2 = _Imagesearcharea("Images/LockBoxes.PNG",1,45, 200, 332, 433,$x2,$y2,50)
    ;~ 	WEnd
    While 1
    	ControlClick("Star Wars: The Old Republic", "Close the program", "Button2")
    
    
    WEnd
    EndFunc
    
    Func CloseAll()
    	Close()
    	Exit
    EndFunc
    
    Func Close()
    	$Exists = WinExists("UntzBot v5.0x3 Lite")
    	if $Exists = 1 Then
    		ControlClick("UntzBot v5.0x3 Lite", "SAVE", "Button4", "Left", 1)
    		Sleep(200)
    		Send("x")
    		Sleep(200)
    	EndIf
    	$Exists = WinExists("DeathCheck")
    	If $Exists = 1 Then
    		Send("f")
    	EndIf
    EndFunc
    
    
    Func Focus()
    
    	While $Focus = True
    		$Exists = WinExists("Star Wars™: The Old Republic™")
    		if $Exists = 0 Then
    			Send("e")
    			Launch()
    		Else
    			WinActivate("Star Wars™: The Old Republic™")
    			Sleep(250)
    			ShowFocus()
    		EndIf
    	WEnd
    EndFunc
    
    
    Func GetFocus()
    	$Focus = Not $Focus
    	ShowFocus()
    	Focus()
    EndFunc
    
    Func ShowFocus()
    	If $Focus = True Then
    		If _Timer_GetIdleTime() > 5000 Then
    			ToolTip(_Timer_GetIdleTime(), 0, 0)
    		Else
    			ToolTip("SWTOR has focus.", @DesktopWidth/2, @DesktopHeight/2)
    		EndIf
    		If _Timer_GetIdleTime() >= 90000 Then
    			$pid = ProcessExists("Star Wars™: The Old Republic™")
    			ProcessClose("Star Wars™: The Old Republic™")
    			WinClose("Star Wars™: The Old Republic™")
    			Local $file = FileOpen("log.txt", 1)
    			$time = Time()
    			FileWriteLine($file, $time & "-- SWTOR was closed.")
    			FileClose($file)
    			ToolTip("")
    		EndIf
    	Else
    		ToolTip("")
    	EndIf
    EndFunc
    
    Func StartUp()
    	$Exists = WinExists("UntzBot v5.0x3 Lite")
    	if $Exists = 0 Then
    		Run("UntzBot50x3.exe", @ScriptDir)
    		Sleep(500)
    		If WinExists("UntzBot") Then
    			WinClose("UntzBot")
    		EndIf
    		ControlClick("UntzBot Login v5.0x3", "&FreeMode", "Button3", "Left", 2)
    		Sleep(200)
    		$result = ControlClick("UntzBot v5.0x3 Lite", "LOAD", "Button5", "Left", 2)
    		Sleep(200)
    	EndIf
    
    
    	$Exists = WinExists("DeathCheck")
    	If $Exists = 0 Then
    		Run("DeathCheck50x3.exe", @ScriptDir)
    		Sleep(200)
    	EndIf
    
    	WinMove("UntzBot v5.0x3 Lite", "", @DesktopWidth - 310, 5)
    	WinMove("DeathCheck", "", @DesktopWidth - 310, 600)
    	Sleep(300)
    	WinMove("Focus4", "", @DesktopWidth - 410, @DesktopHeight - 275)
    EndFunc
    
    Func Icon()
    If WinExists("STAR WARS™: The Old Republic™") Then
    	Sleep(100)
    Else
    	$x2 = 0
    	$y2 = 0
    	MouseMove(@DesktopWidth,0,0)
    	WinMinimizeAll()
    	Sleep(500)
    	$result2 = _Imagesearcharea("Images/Icon.PNG",1,0,0,@DesktopWidth,@DesktopHeight,$x2,$y2,100)
    	If $result2 = 1 Then
    		Mouseclick("Left", $x2, $y2, 2, 0)
    		MouseMove(@DesktopWidth,0,0)
    		ToolTip("Waiting 30 seconds for the Login window to appear.", @DesktopWidth/2, @DesktopHeight/2)
    	Else
    		ToolTip("The SWTOR icon was not found on your Desktop.", @DesktopWidth/2, @DesktopHeight/2)
    		Sleep(2000)
    	EndIf
    EndIf
    EndFunc
    
    Func LoginScreen()
    $x2 = 0
    $y2 = 0
    If WinExists("STAR WARS™: The Old Republic™") Then WinActivate("STAR WARS™: The Old Republic™")
    	$result2 = _WaitForImageSearch("Images/Splash.PNG",30,1,$x2,$y2,100)
    	If $result2 = 1 Then
    		Close()
    		$Size = WinGetClientSize("STAR WARS™: The Old Republic™")
    		While IsArray($Size) = 0
    			$Size = WinGetClientSize("STAR WARS™: The Old Republic™")
    		WEnd
    		WinMove("STAR WARS™: The Old Republic™", "", 0,0, $Size[0], $Size[1])
    		Sleep(500)
    		MouseClick("Left", $Size[0]/2, $Size[1]/2, 1, 0)
    		Send($PASSWORD)
    	ElseIf $result2 = 0 Then
    		ToolTip("SWTOR took longer than 30 seconds to load.", @DesktopWidth/2, @DesktopHeight/2)
    		Sleep(2000)
    	EndIf
    EndFunc
    
    Func CheckWin()
    If WinExists("STAR WARS: The Old Republic") Then
    	While WinExists("STAR WARS: The Old Republic")
    		$pid = WinGetProcess("STAR WARS: The Old Republic")
    		ProcessClose($pid)
    	WEnd
    EndIf
    If WinExists("STAR WARS™: The Old Republic™") Then
    	$pid = WinGetProcess("STAR WARS™: The Old Republic™")
    	ProcessClose($pid)
    	Launch()
    EndIf
    EndFunc
    
    
    Func Launch()
    $x2 = 0
    $y2 = 0
    
    Icon()
    LoginScreen()
    	$Exists = WinExists("STAR WARS™: The Old Republic™")
    	While $Exists = 0
    		ToolTip("Trying to re-launch SWTOR.", @DesktopWidth/2, @DesktopHeight/2)
    		MouseClick("Right", @DesktopWidth, 0, 1, 0)
    		Sleep(1000)
    		MouseClick("Left", 0, 0, 1, 0)
    		Icon()
    		LoginScreen()
    		$Exists = WinExists("STAR WARS™: The Old Republic™")
    	WEnd
    MouseMove(@DesktopWidth,0,0)
    ToolTip("Looking for Login and Play buttons to appear.", @DesktopWidth/2, @DesktopHeight/2)
    	$result2 = _Imagesearcharea("Images/Login.PNG",1,0,0,@DesktopWidth,@DesktopHeight,$x2,$y2,100)
    	Mouseclick("Left", $x2, $y2, 1, 0)
    	MouseMove(@DesktopWidth,0,0)
    	$result2 = _WaitForImageSearch("Images/Play.PNG",30,1,$x2,$y2,100)
    	If $result2 = 1 Then
    		Mouseclick("Left", $x2, $y2, 1, 0)
    		MouseMove(@DesktopWidth,0,0)
    		While WinMove("Star Wars™: The Old Republic™", "", 0, 0, 800, 600, 0) = 0
    			WinMove("Star Wars™: The Old Republic™", "", 0, 0, 800, 600, 0)
    		WEnd
    		ToolTip("Waiting for the Character select screen to appear.", @DesktopWidth/2, @DesktopHeight/2)
    		$result2 = _WaitForImageSearch("Images/CharSelect.PNG",60,1,$x2,$y2,100)
    		Mouseclick("Left", $x2, $y2, 1, 0)
    		ToolTip("Waiting for character to load.", @DesktopWidth/2, @DesktopHeight/2)
    
    		$result2 = _WaitForImageSearch("Images/CharLoaded.PNG",60,1,$x2,$y2,100)
    		ToolTip("Character loaded! Starting up UntzBot.", @DesktopWidth/2, @DesktopHeight/2)
    		StartUp()
    	ElseIf $result2 = 0 Then
    		CheckWin()
    	EndIf
    	If $Focus = True Then
    		Send("q")
    	EndIf
    
    EndFunc
    
    Func Time()
    	$DAY = @WDAY
    
    	Select
    		Case $DAY = 1
    			$DAY = "SUN"
    		Case $DAY = 2
    			$DAY = "MON"
    		Case $DAY = 3
    			$DAY = "TUE"
    		Case $DAY = 4
    			$DAY = "WED"
    		Case $DAY = 5
    			$DAY = "THU"
    		Case $DAY = 6
    			$DAY = "FRI"
    		Case $DAY = 7
    			$DAY = "SAT"
    	EndSelect
    
    	Return ($DAY & " " & @MDAY & "/" & @MON & "/" & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC & " ")
    EndFunc   ;==>Time



    Bundle with Environment support download link: https://dl.dropbox.com/u/1333326/Foc...d%20Bundle.rar

    Post if you have any questions.

    Paypal email: [email protected]
    Last edited by TheDank; 08-01-2012 at 05:42 PM.

    [UntzBot] SWTOR auto focus and crash fix [open source]
  2. #2
    trendkilla254's Avatar Knight-Lieutenant
    Reputation
    34
    Join Date
    Feb 2012
    Posts
    255
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks

    Sent from my SPH-D700 using Tapatalk 2

  3. #3
    TheDank's Avatar Member
    Reputation
    5
    Join Date
    Apr 2012
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Bayoya View Post
    TheDank, i just Donate you, also i let the bot run last night and when i get back from work this happend:

    Attachment 7524

    looks like i got DC or lose internet connect and the window stay there, as you can see Frozen Was open but it didnt close the window to restart it.
    updated the Frozen code. replace the code you currently have with the updated code and test it out by loading SWTOR manually and then letting Frozen get to 90k idle time (just sit there and dont move the mouse or press any keys on the keyboard)


    let me know if that fixes it or not.
    Last edited by TheDank; 05-26-2012 at 02:25 AM.

  4. #4
    TheDank's Avatar Member
    Reputation
    5
    Join Date
    Apr 2012
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Testing out the new Focus3 script that will make sure Frozen is running and will re-open it if it closes/crashes for some reason. Once I get home from work, see if it is successful and if it is, I will update the script.

    If there r any features you would like to see, please post and ill see if it is possible.

  5. #5
    Bayoya's Avatar Active Member
    Reputation
    39
    Join Date
    Aug 2007
    Posts
    213
    Thanks G/R
    0/0
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its working good now Bud, Thanks again, by the way did u get the Donation ?

  6. #6
    TheDank's Avatar Member
    Reputation
    5
    Join Date
    Apr 2012
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Bayoya View Post
    its working good now Bud, Thanks again, by the way did u get the Donation ?
    Ok sweet. And yes I did get the donation! Thank you very much! I'll keep up the support if its needed.

  7. #7
    wtf1234's Avatar Private
    Reputation
    1
    Join Date
    May 2012
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay it works but it only opens free mode of the space bot and 34 skross mission, are these changeable ? Does the script allow a password for unzt bot and select mission 44 aten ? also im willing to pay for a script that only logs into stwor thanks !!

  8. #8
    TheDank's Avatar Member
    Reputation
    5
    Join Date
    Apr 2012
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by wtf1234 View Post
    Okay it works but it only opens free mode of the space bot and 34 skross mission, are these changeable ? Does the script allow a password for unzt bot and select mission 44 aten ? also im willing to pay for a script that only logs into stwor thanks !!
    i can make you a custom script but its not really needed.

    load the full version of Untzbot
    change it to whatever settings you want them to be (select the mission, select crew skills)
    Click Save
    Close Untzbot

    when focus3 opens untzbot, it will load whatever settings r saved.

    why would u only want it to log into swtor??
    Last edited by TheDank; 05-30-2012 at 03:09 AM.

  9. #9
    TheDank's Avatar Member
    Reputation
    5
    Join Date
    Apr 2012
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Focus4 has been released! faster and more efficient! Check the first post for the download link and code source

  10. #10
    shaggsdope's Avatar Sergeant Major
    Reputation
    21
    Join Date
    Jun 2012
    Posts
    178
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I seem to be having issues with both of the Login buttons, it opens the client, types in pass, but won't press logging. It moves the launcher to a different spot on the screen but doesn't press Login. If I press Login it WILL press Play, then after the game logs in and is at the character screen it doesn't press that Login button either... If I press Login, it loads everything else fine... I tried taking a new screenshot of the Login button, but it didn't seem to work so I just put the default back in and asked hehe

  11. #11
    wert1098's Avatar Private
    Reputation
    1
    Join Date
    Apr 2012
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am having the same problems as shaggs also I was wondering will this start the bot for me aswell also I am running it on a laptop if that changes anything.

  12. #12
    shaggsdope's Avatar Sergeant Major
    Reputation
    21
    Join Date
    Jun 2012
    Posts
    178
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by wert1098 View Post
    I am having the same problems as shaggs also I was wondering will this start the bot for me aswell also I am running it on a laptop if that changes anything.
    I know it will auto start the bot, death check, and swtor. Hope that helps, and hope we can get some suggestions on the script... I'm gonna play with it a little and let you know if i find anything out :P

  13. #13
    wert1098's Avatar Private
    Reputation
    1
    Join Date
    Apr 2012
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes that would be great thank you for working on it.r+
    Originally Posted by shaggsdope View Post
    I know it will auto start the bot, death check, and swtor. Hope that helps, and hope we can get some suggestions on the script... I'm gonna play with it a little and let you know if i find anything out :P

  14. #14
    shaggsdope's Avatar Sergeant Major
    Reputation
    21
    Join Date
    Jun 2012
    Posts
    178
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried a couple things and couldn't get it working... hopefully we get a response :-/

  15. #15
    wert1098's Avatar Private
    Reputation
    1
    Join Date
    Apr 2012
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by shaggsdope View Post
    I tried a couple things and couldn't get it working... hopefully we get a response :-/
    Hey atlest you tried and I hope TheDank gets on and can help us because this seams good.

Page 1 of 3 123 LastLast

Similar Threads

  1. [Bot] New BOT auto-rotation and stopcast focus PVP PVE mode undetectable for years
    By Zarkis3 in forum World of Warcraft Bots and Programs
    Replies: 6
    Last Post: 09-27-2016, 05:34 AM
  2. [Tool] [Source] And-Yet-Another open-source Windows / Windows Mobile Authenticator
    By cdm in forum World of Warcraft Bots and Programs
    Replies: 54
    Last Post: 05-17-2012, 01:00 PM
  3. Need a server auto restarter and...
    By 30480 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 09-09-2007, 02:23 AM
  4. orc male > human male, and helm fix? +rep
    By gr33ksoldi3r in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 08-26-2007, 04:49 AM
  5. Orc Male To Draenei Male And Helm Fix
    By Frezzingheath in forum World of Warcraft Model Editing
    Replies: 0
    Last Post: 07-24-2007, 04:42 PM
All times are GMT -5. The time now is 03:18 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search