Jump to content

Recommended Posts

Posted

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

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.

Posted

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

Posted

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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...