Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Alternative to Using Recorder Mouse Clicks


  • Please log in to reply
8 replies to this topic
Desolate
  • Members
  • 6 posts
  • Last active: Feb 09 2009 01:26 AM
  • Joined: 05 Feb 2009
AutoIt v3 Window Info. The only information I get is the basic window info and the mouse position. Control, Statuts Bar, Visible Text, and Hidden Text are all blank. My understanding is that I must have that information to code my script rather than using mouse clik positions. Am I doing something very basic wrong here? I've already gone the Recorder, then edit to suit me route and been disatisfied with the result. I couldn't use it on my laptop or other computers. Very frustrating to be stuck with a script that only, sort of, works from a single box in certain conditions.


I've already tried searching the forum. For a time I thought I had my answer. That lasted all of 10 seconds. I have no code for you to review here, just a basic problem which I cannot find the information to solve.

I am attempting to automate downloading information from an online database in a game. Note: I am not building a script to handle powerlevling for WoW or a Mining Bot for Eve or whatever else people try and do. This has more in common with making a hotkey.

Everyone who uses Recorder has these problems with the mouse grid records for various reasons. You move the window, or in my case, the time it takes to retrieve the information varies from .5 seconds to maybe 8 or 10 seconds. I did get one to work rather well using the recorder, but I am unsatisfied with this solution and wanted to make a cleaner attempt without using Mouse Clicks. I tried both the Spy that comes with AHK and AutoIt3. When I mouse over the lists, I get nothing.

Edit: Moved last paragraph to top for brevity and quick information.

Desolate
  • Members
  • 6 posts
  • Last active: Feb 09 2009 01:26 AM
  • Joined: 05 Feb 2009
Here is the thread I have already read through which led me to believe Window Info from AutoIt3 was the answer.

<!-- m -->http://www.autohotke... ... ouse click<!-- m -->

Desolate
  • Members
  • 6 posts
  • Last active: Feb 09 2009 01:26 AM
  • Joined: 05 Feb 2009
PixelCheckSum and PixelSearch won't work on this either. I checked others work and OCR is apparently a major problem as well. What am I left with? I haven't done programming in years, as in they were just switching off from using line numbers in Basic and QB. (I was a kid, I am not THAT old :p)

I doubt my abiliites to go into Python or C to get this working. If people can script things like mining bots though, this is a hell of a lot simpler. I must be doing something very basic wrong.

Desolate
  • Members
  • 6 posts
  • Last active: Feb 09 2009 01:26 AM
  • Joined: 05 Feb 2009
40 some odd views and no comments?

Slanter
  • Members
  • 739 posts
  • Last active: Jul 08 2011 05:26 AM
  • Joined: 28 May 2008

40 some odd views and no comments?

How many of those views were you? Also, try not bumping your topic every hour or two, it really doesn't make me want to help you
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.

evan
  • Guests
  • Last active:
  • Joined: --
ok if u expected everyone that view this thread has to give comments, probably everyone will have the same comment:
sorry i dont know how to fix ur problem

Desolate
  • Members
  • 6 posts
  • Last active: Feb 09 2009 01:26 AM
  • Joined: 05 Feb 2009
Just to forestall any more comments like the 2 above, I will say what I put in a private message to Slanter.

1. I am used to different forums (mainly Beyond3d and Arstechnica). I guess comments come faster there.

2. I posted additional comments so that people would know I was working on the problem, and not just someone in here expecting others to code their work for them. They were not meant as cheap topic bumps.

3. I guess I did expect someone to chime in and say "you are up a creek then", or something to that effect. Based on other threads, they were averaging about 1 comment per 30 or so views.

As to the code. I guess I will have to use mouse clicks and manually edit the code line by line for sleep times. I just figured there had to be a better way. This seemed, inelegant to say the least and too limited in portability.

Desolate
  • Members
  • 6 posts
  • Last active: Feb 09 2009 01:26 AM
  • Joined: 05 Feb 2009
apprx 48 hour bump

Still at something of a loss. I've just been proceeding with the recorder and editing. Quite the bummer.

sinkfaze
  • Moderators
  • 6367 posts
  • Last active: Nov 30 2018 08:50 PM
  • Joined: 18 Mar 2008
There are a lot of users here who have written WoW scripts, have you searched the forums for 'Wow'? The window title and ahk_class are usually sufficient to create context-sensitive hotkeys but many of the WoW scripts use the unique ID instead.