DS - dynamic position

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

DS - dynamic position

by gdsp on Sun Sep 21, 2008 2:37 pm

Hi,

I try to use dynamic position with CMD=MOVETO command. I don't know if it's possible.
I would like to get IMAGEX and IMAGEY position with IMAGESEARCH, and add 50px for each (x & y)

' get position
IMAGESEARCH IMAGE=m_civility.bmp CONFIDENCE=100
DS CMD=MOVETO X={{!IMAGEX}} Y={{!IMAGEY}}
DS CMD=CLICK X={{!IMAGEX}} Y={{!IMAGEY}}
DS CMD=KEY X=0 Y=0 CONTENT=thecontent

' move the cursor
SET !VAR1 {{!IMAGEX}}+50
SET !VAR2 {{!IMAGEY}}+50
DS CMD=MOVETO X={{!VAR1}} Y={{!VAR2}} ' problem...


Do you think it's possible ?

Thanks in advance,

Regards
gdsp
 
Posts: 4
Joined: Tue May 06, 2008 1:25 am

Re: DS - dynamic position

by Tech Support on Tue Sep 23, 2008 8:32 am

Please use
SET !VAR1 {{!IMAGEX}}
ADD !VAR1 50
SET !VAR2 {{!IMAGEY}}
ADD !VAR2 50
DS CMD=MOVETO X={{!VAR1}} Y={{!VAR2}}
User avatar
Tech Support
 
Posts: 5003
Joined: Tue Sep 20, 2005 12:25 pm

Re: DS - dynamic position

by Aditya93 on Fri Jan 05, 2018 2:16 am

Hi

i am trying to use this but sometimes the cursor moves and sometime it doesnt

Code: Select all
VERSION BUILD=10022823
SIZE X=845 Y=868
IMAGESEARCH POS=1 IMAGE=spy_slider.png CONFIDENCE=95
DS CMD=LDOWN X={{!IMAGEX}} Y={{!IMAGEY}} CONTENT=
DS CMD=MOVETO X=625 Y=480 CONTENT=
WAIT SECONDS=0.094
DS CMD=LUP X=250 Y=481 CONTENT=


not sure where the issue is
Aditya93
 
Posts: 39
Joined: Fri Nov 24, 2017 10:34 pm


Return to General Support & Discussions

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 3 guests

-->