Autoit can not click SWTOR window. menu

User Tag List

Results 1 to 15 of 15
  1. #1
    jimmythegreat's Avatar Member
    Reputation
    2
    Join Date
    Jan 2012
    Posts
    74
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Autoit can not click SWTOR window.

    Hello. I am having a bit of an issue. I have created an autoit script for SWTOR however the SWTOR window does not seem to want to react to any of the commands autoit is telling it to do. It won't move the cursor.. it won't right click or left click. It automatically starts working when I minimize the SWTOR window.. but not inside the window. Does any one have a sample script that is currently working for them? Or a different program?

    This is mine below..

    HotkeySet ("{F6}", "Stop")
    HotkeySet ("{F5}", "Start")
    Func Start ()
    WinActivate ("Star Wars: The Old Republic")
    $i=1
    While $i<3600001

    MouseClick("Left", 1721, 858, 1)
    Sleep(1000)
    WEnd
    EndFunc

    While (1)
    Sleep (1)
    WEnd

    Func Stop ()
    Exit 0
    EndFunc

    Autoit can not click SWTOR window.
  2. #2
    Xiandri's Avatar Established Member
    Reputation
    66
    Join Date
    Feb 2008
    Posts
    159
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try removing the line "WinActivate ("Star Wars: The Old Republic")"

    should work now

  3. #3
    jimmythegreat's Avatar Member
    Reputation
    2
    Join Date
    Jan 2012
    Posts
    74
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope

    Once again works on my windows desktop but not in the game.

  4. #4
    tms's Avatar Member
    Reputation
    1
    Join Date
    Jan 2007
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jimmythegreat View Post
    Nope

    Once again works on my windows desktop but not in the game.
    Try this script. Set SWTOR resolution to 1024x768 window mode (not fullscreen).

    ; ----------------------------------------------------------------------------
    ;
    ; Author: tMs
    ; Script Function: Anti Afk Warzone
    ;
    ; ----------------------------------------------------------------------------
    AutoItSetOption ( "MouseCoordMode", 2 ) ; Do not change this parameter! It's needed for windowed.
    AutoItSetOption ( "PixelCoordMode", 2 ) ; Do not change this parameter! It's needed for windowed.

    local $signup = 0
    local $inwarzone = 0
    local $bike = 0
    local $0hp = 0
    local $antiafk = 0
    local $inhuttball = 0
    local $invoidstar = 0
    local $warzonefinished = 0

    WinActive("Star Wars: The Old Republic")
    ToolTip("Starting BOT", 0, 0)
    SendKeepActive("Star Wars: The Old Republic")

    While $signup < 1
    sLeep(2500)
    prepare()
    WEnd

    Func prepare()
    WinActive("Star Wars: The Old Republic")
    TooLTip("Signing up for a warzone", 0, 0)
    MouseClick ("primary", 1009, 734, 2)
    sleep(500)
    MouseClick ("primary", 508, 510, 2)
    sleep(500)
    $signup = $signup + 1
    ToolTip("Signed up, waiting for popup window", 0, 0)
    waitforqueue()

    EndFunc

    Func waitforqueue()
    WinActive("Star Wars: The Old Republic")
    while 1
    $pixel = PixelSearch(406, 105, 617, 173, 0xE84344, 1)
    If @error = 0 Then
    Tooltip("Warzone is ready, joining warzone", 0, 0)
    sleep(1000)
    MouseClick ("primary", 455, 158, 2)
    warzoneselection()
    EndIf
    WEnd
    EndFunc

  5. #5
    Xiandri's Avatar Established Member
    Reputation
    66
    Join Date
    Feb 2008
    Posts
    159
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by tms View Post
    Try this script. Set SWTOR resolution to 1024x768 window mode (not fullscreen).
    what does this script do?

  6. #6
    jimmythegreat's Avatar Member
    Reputation
    2
    Join Date
    Jan 2012
    Posts
    74
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol nope. it worked on my desktop but literally did nothing in my game. ahh. very very frustrating..

  7. #7
    tms's Avatar Member
    Reputation
    1
    Join Date
    Jan 2007
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xiandri View Post
    what does this script do?
    That part of the script will sign up for a warzone and join it when it is ready.

    Got 2 warzone's working. Making it so i can fully afk and farm at night.

  8. #8
    Gabbz's Avatar Contributor
    Reputation
    184
    Join Date
    Dec 2011
    Posts
    451
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you run the script as admin ?

  9. #9
    dieweb's Avatar Member
    Reputation
    2
    Join Date
    Jan 2012
    Posts
    20
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had the same problem as you. I have resolved it:

    -compile your autoit script => exe
    -launch your exe script (right click => run as administrator), and it will work.

  10. #10
    tms's Avatar Member
    Reputation
    1
    Join Date
    Jan 2007
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dieweb View Post
    I had the same problem as you. I have resolved it:

    -compile your autoit script => exe
    -launch your exe script (right click => run as administrator), and it will work.
    Are u using Windows 7? If so try disabling UAC. Then try running the script again.

    How to Disable and Turn Off UAC in Windows 7 « My Digital Life

  11. #11
    Kelz's Avatar Sergeant Major
    Reputation
    73
    Join Date
    May 2010
    Posts
    166
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    #RequireAdmin

    Easy as this. You just need to run the bot as admin.
    That's what I used in my bot.

  12. #12
    nightkiler3's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Malharhak is right^^

    its a privelage issue

  13. #13
    jimmythegreat's Avatar Member
    Reputation
    2
    Join Date
    Jan 2012
    Posts
    74
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you!!

  14. #14
    Tr3v0r's Avatar Private
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any luck on getting this to work? I would love to get my hands on a pvp bot

  15. #15
    TarkinMX's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's a very easy fix,

    Some Genius got the Steam Overlay working in The Old Republic!!!!!! - Steam Users' Forums

    Though it's written to allow steam to run I noticed that it allowed AutoIt to run as well and you don't need to link it to steam, just use the .exe file that's created to play SWTOR instead.
    Last edited by TarkinMX; 04-03-2012 at 10:19 PM.

Similar Threads

  1. can not acsent initialisieren
    By Veldomert in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 01-20-2008, 03:32 AM
  2. Help with MySQL, keeps saying I can't start a Windows Service
    By Redviper2321 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 11-11-2007, 03:17 PM
  3. can not make toon
    By LJN in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 11-09-2007, 06:37 PM
  4. Fast cash - Can not be banned -
    By Daxo in forum WoW Scam Prevention
    Replies: 15
    Last Post: 09-25-2007, 01:25 PM
  5. Can not edit post - Mod please help
    By DJRehab in forum Community Chat
    Replies: 3
    Last Post: 08-05-2007, 04:09 PM
All times are GMT -5. The time now is 07:50 PM. 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