Sign in to follow this  
Followers 0
SilverKey

I searched first, I promise

7 posts in this topic

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}")

Share this post


Link to post
Share on other sites



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 game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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!"

Share this post


Link to post
Share on other sites

Try changing the WinWait to WinWaitActive()

That was going to be my next suggestion :mellow: Followed by try controlsend if that still doesn't work

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

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!"

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by SilverKey

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  
Followers 0