Jump to content

Copy-Paste-Replace Integration


mathpie
 Share

Recommended Posts

Sorry for bothering you yet again, but I just can't seem to integrate the multiplication and copy-paste integration...

This is what I have so far:

Sleep (500)

$active = 1

MouseMove (650,510)

MouseClick ("Left")

Sleep (2500)

While 1=1

While $active = 1

;GETTING DATA FROM SITE

MouseMove (350,420)

MouseClickDrag ("Left",360,420,700,420)

Send("^c")

StringReplace('x', 'x', '*')

WinActivate ("Calculator")

WinWaitActive ("Calculator")

Send("^v")

Sleep (500)

Send("^c")

$active = 3

WEnd

;END DATA FROM SITE

;START COPYING INTO WEBSITE

While $active = 3

WinActivate ( "Aywas [beta] - Mozilla Firefox")

Send ("{TAB}")

Sleep (500)

Send ("^v")

Send ("{ENTER}")

$active = 1

WEnd

WEnd

What is there that I need to change? I think it is a problem with not specifying the clipboard to the program, but I don't know how to do it...

Thanks,

mathpie

Link to comment
Share on other sites

change

MouseMove (350,420)

MouseClickDrag ("Left",360,420,700,420)

to

MouseClick (Left,350,420)

Send("+{END}")

and remove all Whiles/Wends.

and probably script stops on this line

WinWaitActive ("Calculator")

because for continue execution, you need to deactivate calc-window manually. Remove it too..

Edited by Godless

_____________________________________________________________________________

Link to comment
Share on other sites

Hm.. There's another problem with that... if it hits end, there's lots more text on the website after that, and I don't want it picking up other numbers... so that won't work. The calculator thing does work, though, and it switches between the two windows

Thanks for trying to help,

mathpie

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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