AutoHotkey Community

It is currently May 26th, 2012, 7:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: June 4th, 2009, 6:36 pm 
Offline

Joined: May 19th, 2009, 6:26 pm
Posts: 8
Location: Dublin, OH
Basically I am delaing with a really slow computer & sometimes the SEND'S dont match up with where the program is & I have to do it manually-
This is a simple script with Gui or inputs really, just sending the right stuff at the right time.

So yeah, basically I just need like a wait maneuver before precedding to the next line? any ideas?

Also in another more complicated script - Thanks to you Guys!!
I enter dates & amounts and then write stuff off, while I can now perform this faster than most I was wondering if there is sort of a smart text like a T9 I can write - all the dates i need to enter are saturdays in 2008 or 09-
So i was thinking maybe I type the first 3 digits & it fills in the rest?

Thanks in advance!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2009, 6:47 pm 
ah sleep?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2009, 7:08 pm 
Offline

Joined: May 19th, 2009, 6:26 pm
Posts: 8
Location: Dublin, OH
yeah- im using sleep.
but HOTKEY jsut waits on sleep- if my idiot computer is still thinking, hotkey is send the next stroke wether the program is ready or not-
I need somethiong that says- As SOON as I click up here to send the account number, you GO! And if I dont send it - frickin' wait!

dig it?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2009, 8:33 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
KeyWait?

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2009, 9:30 pm 
Code:
[code]#NUMPAD9::
WINACTIVATE JOB ahk_class HostExplorer
SLEEP 100
SEND {NUMPADSUB}
SLEEP 300
WINACTIVATE CTBar32 - 4.0.0
SLEEP 1500
CLICK 25,34
SLEEP 1500
SEND AHA
SLEEP 500
SEND {TAB}
SLEEP 100
FormatTime, CurrentDateTime,, MMddyy
SendInput %CurrentDateTime%
SLEEP 100
SEND {ENTER}[/code]

I GUESS THAT WAS CONFUSING- Im not actually hitting anything after the first hotkey - what i meant by 'click up here' is that its all automated. heres  the script except I omitted the company I work for.

See those huge sleeps after CT bar? I dont want to have to guess in milliseconds how shitty my computer is running that day- I want an IF /THEN solidness except with speed.
If it hasnt clicked CT bar - it DOES NOT move on....
dig it?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2009, 6:31 am 
Offline

Joined: November 26th, 2008, 4:16 pm
Posts: 32
Code:
WinWait, JOB ahk_class HostExplorer
IfWinNotActive, JOB ahk_class HostExplorer
WinActivate, JOB ahk_class HostExplorer
WinWaitActive, JOB ahk_class HostExplorer
;SLEEP 100
SEND {NUMPADSUB}
;SLEEP 300

WinWait, CTBar32 - 4.0.0
IfWinNotActive, CTBar32 - 4.0.0
WinActivate, CTBar32 - 4.0.0
WinWaitActive, CTBar32 - 4.0.0

;SLEEP 1500  ; Now that CTBar32 is active, we shouldn't need to sleep..
CLICK 25,34
; Is the ClassNN shown in window spy when hovering over the spot to be clicked in the CTBar32 window?  If so, what is the ClassNN (control)?
; Are you clicking an edit box, to send "AHA"?
; Are you clicking a button, waiting for another window to open & then send "AHA"?
; If another window opens, what is the wintitle?
SLEEP 1500 ;This sleep hasn't been removed yet.  More info is needed as to WHY we wait.
SEND AHA       
;;; ControlSend may (or may not) send text more reliably.
;ControlSend, Control, AHA, CTBar32 - 4.0.0 ; Send text "AHA" to ___ on CTBar32.

SLEEP 500
SEND {TAB}
SLEEP 100
FormatTime, CurrentDateTime,, MMddyy
SendInput %CurrentDateTime%
SLEEP 100
SEND {ENTER}


Report this post
Top
 Profile  
Reply with quote  
PostPosted: June 5th, 2009, 2:25 pm 
ok- No classNN button is shown on CTBar32
-
basically what CT Bar is -
I use two programs here at *job* - one is CT, written by Ontario Systems in like the early 80's & the other we'll say is Fed Ex.
Ct is out way of talking to Fed Ex as you cant really document the actual Fed Ex system. CT BAR is a way of automatically sending whatever account you are working on to Fed Ex - as they are 6 digit alpha numerics & a pain in the ass to type.
I dont really have a problem Winactivating things - when you click the CT bar to send the account # - it takes a second. So I want to TAKE OFF the moment it sends that account #. The 1500 is what Im trying to kill.......
everything after the Winactivate Fed Ex is sent to spaces inside the Fed Ex program (ie no msg boxes / input boxes)

Essentially - It may not be possible because AHK cant talk to Ct BAr & will never know when it sends the account# But I appreciate the help :D


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Alpha Bravo, bobbysoon, BrandonHotkey, Google Feedfetcher, joetazz, krajan, over21, RaptorX, rbrtryn, SKAN and 72 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group