Jump to content

Recommended Posts

Posted

hi, i need a small script that do a simple thing, but i'm not an expert do i tryed to look in the manual but i can't really figure out how to handle this.

so i have a window (always a new title when i open) and i need that when the title of this window change, while is open, i need to click the mouse in some point of the screen.

the problem is i need it in loop, means after the title change and make the click, it should keep checking if the tile change again e do again the same thing...and again...and again o:)

any suggestion?

  • Moderators
Posted (edited)

Hi, FrancescoCameli, welcome to the forum. We are glad to provide assistance, but are not in the business of writing scripts for you (we follow the "Teach a Man to Fish" motto). So, if the window title is changing, I would suggest looking in the help file under ControlClick. Firstly, this is much better than a mouseclick. Secondly, the example in this section shows you how to use the CLASS type for the window instead of the title. That should get you started.

If you could provide us with the CLASS type returned from the AutoIt Window Info tool (in the same directory you installed AutoIt, called Au3Info.exe), or a screenshot of the application window you're working with, we can definitely do more to assist.

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

It's also help file to explain you overall goal, as well as letting us know what you tried from the help file.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

thanks for the reply...of course i don't pretend a full alredy made script...even if it will help :*

just a start, maybe know what function i should looking for

so i have a window with this title (the x change every time number and letters):

Title: xxxxxxxxxxx-xxxxxxxxxxxxxx 1' -xxxxxxxxxxxx: xxxxxxx

Class: QWidget

so if the number i left change need the mouse click.

how can i specific this title changing? what i miss it's how che i monitor the title if change...i can't found anything in the help

Edited by FrancescoCameli
  • Moderators
Posted

FrancescoCameli,

You may also find this thread of interest. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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:

  Reveal hidden contents

 

Posted

  On 1/10/2013 at 2:05 PM, 'somdcomputerguy said:

FrancescoCameli, this function may be of use to you - WinGetTitle?

my original idea was doing something like this:

x = number from 1 to 100

WinGetTitle("title" "text" notepad x")

if "x" change  than

mouseclick   "x" "y"
Posted

can i use something like this and use regex to match just the number changin in that tile?

if WinWaitClose("[REGEXPCLASS:....]") then
 
MsgBox(4096, "Test", "This box will time out in 10 seconds", 10)

the msg box it's just for example

but i can't figue out what regex use

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...