Derk Posted July 12, 2011 Share Posted July 12, 2011 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") Link to comment Share on other sites More sharing options...
JohnOne Posted July 12, 2011 Share Posted July 12, 2011 #include <Date.au3> Send(_NowTime() & @CRLF) ; & @CRLF just to carraige return ;Or $Time = _NowTime() Send($Time) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Derk Posted July 12, 2011 Author Share Posted July 12, 2011 not sure this will work. I need to hit the space bar and only put in the minutes Link to comment Share on other sites More sharing options...
kaotkbliss Posted July 12, 2011 Share Posted July 12, 2011 Send(@min) wherever it is you want to insert the minutes? 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Derk Posted July 12, 2011 Author Share Posted July 12, 2011 So do i put these in the script along with @MIN #include <Date.au3> Send(_NowTime() & @CRLF) ; & @CRLF just to carraige return Link to comment Share on other sites More sharing options...
JohnOne Posted July 12, 2011 Share Posted July 12, 2011 not sure this will work. I need to hit the space bar and only put in the minutesThese 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. Link to comment Share on other sites More sharing options...
JohnOne Posted July 12, 2011 Share Posted July 12, 2011 So do i put these in the script along with @MIN#include <Date.au3>Send(_NowTime() & @CRLF) ; & @CRLF just to carraige returnNo. 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. Link to comment Share on other sites More sharing options...
Derk Posted July 12, 2011 Author Share Posted July 12, 2011 i put in Send("@MIN") and it just entered @MIN Link to comment Share on other sites More sharing options...
JohnOne Posted July 12, 2011 Share Posted July 12, 2011 (edited) Send(@MIN) EDIT: The quotes are needed only if you are sending a string literal. Edited July 12, 2011 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Derk Posted July 12, 2011 Author Share Posted July 12, 2011 Nice. Thank you so much! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now