//flex table opened by JP

Click to See Complete Forum and Search --> : Need help with this program


darknavi
08-06-2004, 02:26 AM
I found this program http://www.yuasa.kuis.kyoto-u.ac.jp/ylab/yamakaku/AutoMouse/index.html but I can't seem to get it to work. Is it only for Win95/98?

Is there a program that searches for an image in a window and clicks on it? Like in the screenshot,there are 2 frames in a window,the "GO" button appears at different parts of the screen but always within the top yellow frame,is there a program that can search for the button and click on it automatically isntead of me clicking on it everytime?

Terminator
08-06-2004, 09:58 AM
Not sure about that program but if you wan't a program that records and allows you to play back mouse moves/clicks/etc..and it allows you to vary the speed that it does it at then you should get Ghost Mouse.

http://www.filesforfree.com/download/ghost_mouse.php

Have used it many times. It does not record key strokes. If you need a program to automate keystrokes then OKScript is what I use.

http://www.softpile.com/Games/Patches_and_Updates/Review_21932_index.html

You can use Ghostmouse to trigger OKScript so you have both mouse and keystroke automation.

Write a dead simple VB program and use external calls to either one.

T



:t

darknavi
08-06-2004, 05:37 PM
thanks.erm...is there a program that clicks by searching for an image in a certain window? Cuz the link I wanna click has random position,so it could be anywhere,macros only record 1 location,so when the link changes random position,it will be hard to click using macros,any ideas?:confused:

Terminator
08-06-2004, 07:06 PM
Let me understand this correctly......You want to be able to click/keystroke on a link that will randomly change on a web page...correct?

The way I did this in the past was using an OCR program to capture part of the screen then correlating this to find the position of the link I needed.

I used a program called Textract but it can produce results that are garbled because it does not recognise ALOT of fonts used on web pages.
I also used a program called Colorcop which will allow you to position the cursor and pick up the HEX value of the color that the cursor is under. This is copied to the clipboard and if you combine this with ghost mouse then wrap the whole lot up in a VB program you will have the ability to tell what color is in a certain position and hence where your link will be.

I do not know of any program that does specifically what you want.
Some example of code I used to locate text on screen :-


-----------------------------------------------------------------------------------
.
.
.
myAppID = Shell("c:\textract\Textra.exe /capture 185 480 200 487 /ascii c:\tmp.txt", 2)
Open "c:\tmp.txt" For Input As #1 ' Open file.
Do While Not EOF(1) ' Loop until end of file.
result = result + Input(1, #1)
Loop
Close #1 ' Close file.
Sleep (6000)
result = Mid(result, 4, 4)

If result <> "text" Then
myAppID = Shell("c:\gmouse20\gmouse.exe c:\example.gms", 1)
AppActivate myAppID
endif

.
.
.
.
.
------------------------------------------------------------------------------------





T


:t

darknavi
08-06-2004, 07:18 PM
wow,that sounds really hard....but I will try it anyway,except for the part about making a VB program,I can't do that yet:eek: I will try the rest though. Thanks :t

Terminator
08-06-2004, 07:22 PM
Glad to help.
By the way NOTHING in computing is hard..it just takes time and sometimes a sh-t load of patience. ;)

If you get stuck then PM me and I'll post you some code samples I used.

T

:t

darknavi
08-06-2004, 07:27 PM
thanks,I will try:t I don't really know much about making programs in VB but I can still try;)

:t