SilverKey Posted June 25, 2010 Share Posted June 25, 2010 I've tried a few things. My simple script either blows right through with no effect (except a beep), or pauses. The script is equivalent to clicking "Inspection Lot"/"Functions"/"Cancel Lot" and "Save", then an {End}. Is there some basic thing I have overlooked? In a related vein the rdbms Paradox similarly ignores scripts. Opt("SendKeyDelay", 15) Opt("WinTitleMatchMode", 1) WinWait("[CLASS:SAP_FRONTEND_SESSION]") ;WinActivate("Change inspection lot: Origin","") Send("!L") Send("F") Send("O") Send("^S") Send("{END}") Link to comment Share on other sites More sharing options...
kaotkbliss Posted June 25, 2010 Share Posted June 25, 2010 Try adding some small sleeps between the sends. it may be that the tree isn't opening fast enough to register the commands. 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...
SilverKey Posted June 25, 2010 Author Share Posted June 25, 2010 kaotkbliss, thanks. I had half-second sleeps in there before, where the blank lines are. Unless I need a longer sleep... that's not the problem. Link to comment Share on other sites More sharing options...
GEOSoft Posted June 25, 2010 Share Posted June 25, 2010 Try changing the WinWait to WinWaitActive() George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
kaotkbliss Posted June 25, 2010 Share Posted June 25, 2010 Try changing the WinWait to WinWaitActive()That was going to be my next suggestion Followed by try controlsend if that still doesn't work 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...
GEOSoft Posted June 25, 2010 Share Posted June 25, 2010 And the sad news is we could still be wrong. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
SilverKey Posted June 25, 2010 Author Share Posted June 25, 2010 (edited) Thanks guys. WinWaitActive was in my first version, with the sleeps. Didn't work. I will try ControlSend. Well, this doesn't even work: WinWaitActive("[CLASS:SAP_FRONTEND_SESSION]") ControlSend("[CLASS:SAP_FRONTEND_SESSION]", "", "[ID:Afx:00910000:1008]", "{ENTER}") Sleep(1000) Nice website George! Edited June 25, 2010 by SilverKey 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