funster Posted July 11, 2011 Share Posted July 11, 2011 Hi all, I hope someone here can help I recently started to play on the Star Wars Galaxies emulator server, I used to play the official SWG a few years ago. When I played before I used a macro program to help me craft while Away From keyboard. this program basically repeated a mouse double-click at two different locations. I dug out this software but couldnt get it to work (The clicking would work on the desktop but would not work within the actual game window. So, I downloaded autoit and decided to have a go at creating something myself. this is the script I use $a = 1 while $a = 1 Sleep(1000) MouseClick("left", 328, 314) Sleep(50) MouseClick("left", 328, 314) Sleep(250) MouseClick("left", 382, 316) Sleep(50) MouseClick("left", 382, 316) Sleep(1000) WEnd As with the old software, this works fine on the desktop, but, as soon as the game-window is there, it stops controlling the pointer. Im running the latest version of Autoit, Windows 7 64 bit Any help given will be very much appreciated. Link to comment Share on other sites More sharing options...
BigDod Posted July 11, 2011 Share Posted July 11, 2011 Read the rules Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 11, 2011 Moderators Share Posted July 11, 2011 funster,Welcome to the AutoIt forum. However, you seem to have missed the Forum Rules which forbid any discussion of game automation here. I look forward to helping you when you post a legitimate question. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts