Jump to content

How would I?


Recommended Posts

I want to know what do I need to look into to Have This script Run for this program only.

Won't effect anything else I'm using at the same time. Ex;

#cs ----------------------------------------------------------------------------

AutoIt Version: 3.2.10.0

Author: AznGirl

Script Function:

Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

HotKeySet("-", "Stop") ;script can be stopped by pressing -

Sleep(4000) ;wait some time before starting the Script cycle, to allow the user to navigate to the correct window

While 1 ;repeat endlessly

Send ("{F3}")

Sleep(1350) ;wait 5.1seconds

send ("{F6}")

Sleep(2500) ;wait 5.1seconds

WEnd ;repeat

Func Stop() ;to allow the script to stop

Exit ;same

EndFunc

Link to comment
Share on other sites

Change your Sends to ControlSend - you can then specify which program to send the input to.

Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
Link to comment
Share on other sites

Ok, this is what i got when i tried to Control send.

control title text class and then code

I put this code in no errors But it will not send the code?

Any help

#cs ----------------------------------------------------------------------------

AutoIt Version: 3.2.10.0

Author: Azngirl

Script Function:

Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

HotKeySet("-", "Stop") ;script can be stopped by pressing -

Sleep(4000) ;wait some time before starting the Script cycle, to allow the user to navigate to the correct window

While 1 ;repeat endlessly

ControlSend ( "TwelveSky", "Twelvesky", "Twelvesky", "F3")

Sleep(1350) ;wait 5.1second

ControlSend ( "TwelveSky", "Twelvesky", "Twelvesky", "F6")

Sleep(2500) ;wait 5.1second

WEnd ;repeat

Func Stop() ;to allow the script to stop

Exit ;same

EndFunc

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...