 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Fralex43205
Joined: 19 May 2009 Posts: 8 Location: Dublin, OH
|
Posted: Thu Jun 04, 2009 5:36 pm Post subject: waiting until a step happens before preceeding |
|
|
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! |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Jun 04, 2009 5:47 pm Post subject: |
|
|
| ah sleep? |
|
| Back to top |
|
 |
Fralex43205
Joined: 19 May 2009 Posts: 8 Location: Dublin, OH
|
Posted: Thu Jun 04, 2009 6:08 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
MasterFocus
Joined: 08 Apr 2009 Posts: 3035 Location: Rio de Janeiro - RJ - Brasil
|
Posted: Thu Jun 04, 2009 7:33 pm Post subject: |
|
|
KeyWait? _________________ "Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried."
Antonio França
My stuff: Google Profile |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Jun 04, 2009 8:30 pm Post subject: |
|
|
| 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? |
|
|
| Back to top |
|
 |
bqw371
Joined: 26 Nov 2008 Posts: 32
|
Posted: Fri Jun 05, 2009 5:31 am Post subject: |
|
|
| 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}
|
|
|
| Back to top |
|
 |
Fralex Guest
|
Posted: Fri Jun 05, 2009 1:25 pm Post subject: sweet help on a crappy job |
|
|
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  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|