Sign in to follow this  
Followers 0
Robertkb3lnn

New member Hello

8 posts in this topic

Let me tell you a little about myself. I use to write code in Basic back in the 1970's on a Radio Shack color computer & color computer Three. I had wrote a program that let me play the game Othello on two different computers at two locations Via. a Radio link @ six miles. I have since been out of the game and now own four Dell computers running Windows XP, Windows 7. I am very new to this type of script and trying to get a handle on it. This is why I come here , I have no were else to go. I am trying to write a script that will do a mouse click on a video capture program. I can get it to run but then I need to click on the Record button. Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites



Hi, Robertkb3lnn, welcome to the forum. A couple of suggestions to get you the most help:

  • Ask that a Mod move this to the General Help and Support forum; you'll get many more eyes on the problem
  • Please expand on the problem you are having - what is the application you're using, etc. etc.
  • Post any code you have written thus far, even if it is not working, so we can assist.
  • Try to be patient - we ask that you give up to 24 hours for someone answers before you bump your thread. Those that volunteer their time here are spread all over the globe, sometimes the person best suited to help you won't be on until the middle of the night (for you) :)

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

 

Ask that a Mod move this to the General Help and Support forum; you'll get many more eyes on the problem

Done pro-actively :)

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Welcome to the forum. So long as you are not automating the program Othello (game automation is not allowed - see forum rules), people will gladly try and help. Have you tried using the AutoIt Window Info tool? Perhaps you can get information about the control you want to click.

Share this post


Link to post
Share on other sites

This has nothing to do with automating the program Othello that just was just an example of what type of programming I have done in the past. What I am trying to do now is I have this USB Video Capture and it came with a program when you run it it comes up as a video window and displays what ever composite video you have fed to it. In my case it is a satellite receiver. Well the problem is I would like to have the program run while I am not home I.E. a show is on the air that I would like to record. I can get the program to run at the time I would like to but then to record the program the record button has to be pressed, but you see the problem is I am not at the computer to do this. Now I know that the script can do this. I just need some examples on how to do this. let me tell you that I am very new to this. The programs name is ENMVG-3 by Encore electronics. Any help on this matter would be great. Thank you in advance.

Share this post


Link to post
Share on other sites

a temporary solution until you get your script working could be to install TeamViewer, LogMeIn, or Chrome Remote Desktop (still lots of work bugs to work out on that one) on your pc and you can remote access from any smartphone or tablet with internet connection.

:alien:


if @error Then
	MsgBox(262192,"",@ComputerName&" slaps "&@UserName&" around a bit with a large trout!")
	EndIf

>Exit code: 0

REAL search results

"Yeah yeah yeah, patience. How long will that take?"  -Ed Gruberman

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

1) use "C:Program Files (x86)AutoIt3Au3Info.exe" to see ClassNameNN of controls inside target window

2) use ControlClick() function - details in AutoIt's helpfile "C:Program Files (x86)AutoIt3AutoIt.chm"

Edited by Zedna

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

You might even be able to use another program to record from the USB video capture device.  I can't imagine it only works with the included software...but that's an assumption I'm making. 

If you must use the included capture software and it does not support standard windows controls you could automate clicking the button by "finding" the button by color and sending a mouse at the button position.

Look up the PixelSearch function.

edit: Try Zedna's suggestion first as it is a more elegant and reliable solution if the application supports it.

Edited by spudw2k

Share this post


Link to post
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
Sign in to follow this  
Followers 0