Jump to content
Sign in to follow this  
Derk

How to enter system time into an application using keystrokes.

Recommended Posts

Derk

I have an application that i use to connect to my phone system on an XP PC. I have created a script using key strokes that will input a certain time into the phone system. What i would like it to do is check the PC time and enter that into the application. I have been reading up on "_NowTime", but i am not sure how i will pass this to the custom phone application. Here is the script i have now.

I have just started to get into AutoIt today.

Run ("C:\Program Files\UNITe\GateWay\UniteGW.exe")

WinWaitActive("AdvanceIP")

AutoItSetOption("SendKeyDelay", 40)

send("{alt}Se")

Send("{enter}")

Send("{UP}")

Send("{TAB}")

Send("{TAB}")

Send("{enter}")

send("{alt}C")

Send("{enter}")

run ("C:\Program Files\UNITe\eManager\eManager.exe")

WinWaitActive("eManager")

send("{alt}t")

send("S")

Send("{enter}")

WinWait("System Terminal")

Send("4{enter}")

Send("{space}")

Send("{space}")

Send("{space}")

Send("15")

Send("{space}")

Send("{space}")

Send("{space}")

Send("{space}")

Send("{space}")

Send("13{enter}")

Send("{enter}")

WinActivate("eManager")

send("{alt}f")

send("x")

Share this post


Link to post
Share on other sites
Derk

not sure this will work. I need to hit the space bar and only put in the minutes

Share this post


Link to post
Share on other sites
Derk

So do i put these in the script along with @MIN

#include <Date.au3>

Send(_NowTime() & @CRLF) ; & @CRLF just to carraige return

Share this post


Link to post
Share on other sites
JohnOne

not sure this will work. I need to hit the space bar and only put in the minutes

These are the kind of small details you you should make clear, you know, the small details of what you want to do.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
JohnOne

So do i put these in the script along with @MIN

#include <Date.au3>

Send(_NowTime() & @CRLF) ; & @CRLF just to carraige return

No. just @MIN, if the current minute is all you require to send.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
Derk

i put in Send("@MIN") and it just entered @MIN

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.