Sign in to follow this  
Followers 0
budinsky

Error connecting to . The RPC server is too busy to complete this operation. [1723]

8 posts in this topic

I have an annoying popup whenever I print something at work and if I don't press Print on the popup it doesn't print my files.

This script solves that problem:

----START

$var = 1

While $var = 1

Sleep(2000)

WinWaitActive("Print job billing")

Send("!p")

Wend

; Finished!

----END

Problem is I sometimes get this error 'Error connecting to . The RPC server is too busy to complete this operation. [1723]'

Why does this happen and what can I do to fix it?

Share this post


Link to post
Share on other sites

I tried to make AutoIt wait thinking that would help but it just made it worse.

It reproduced the error instantly so I included the code below so that you can see the error and hopefully tell me what I have done wrong. Thanks

$var = 1

While $var = 1

Sleep(2000)

WinWait("Print job billing")

WinActivate("Print job billing")

Send("!p")

Wend

; Finished!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Ah .. printer problems .. gotta love 'em.

Let me take a wild guess .. HP?

50/50 shot - oh well ...

Is that an AutoIt error or your printer software giving the error?

Try running this with Notepad -- does it give the same error?

Run('Notepad.exe')
While 1
    Sleep(2000)
    If WinActive('Untitled - Notepad') Then
        Send("^p")
        ExitLoop
    EndIf
WEnd
Exit

Edit - Scratch that

.

Edited by ripdad

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Share this post


Link to post
Share on other sites

One thing I noticed about your script -- it's sending "!p" every 2 seconds.

He is using WinWaitActive() so it shouldn't keep pressing !p every 2 seconds unless the window is active.

Share this post


Link to post
Share on other sites

He is using WinWaitActive() so it shouldn't keep pressing !p every 2 seconds unless the window is active.

umm .. look at the code again - please


"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Share this post


Link to post
Share on other sites

OK, I looked again. Yep, still using WinWaitActive() in the top version, and WinWait() in the second post version.

Both WinWaitActive() and WinWait() "Pauses execution of the script"

Share this post


Link to post
Share on other sites

@danwilli

oops .. I misread it.

Probably because I don't use those functions.


"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Share this post


Link to post
Share on other sites

@danwilli

oops .. I misread it.

Probably because I don't use those functions.

No worries :idea:

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