Jump to content
Sign in to follow this  
funster

simple 'clicker' not clicking in correct window

Recommended Posts

funster

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.

Share this post


Link to post
Share on other sites
BigDod

Read the rules



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
Melba23

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.