Re: Re: Event plugin

"pprotcmd [email protected] [power-pro]" <[email protected]> Tue, 26 Mar 2019 11:46:55 +0300
Newsgroups gmane.comp.windows.power-pro
Message-ID <[email protected]>
I fist want to get exactly what is described in help: "creates an event which checks for a visible notepad window, sends key abc to it, and then ends. The event continues until notepad appears or 10 seconds elapse".

Four variations of single line script follow:

1) Exactly from help:
e=event.create(2,10,"keys abc\r event.destroythis", \+
?=visiblewindow("*notepad*")=)

Bad expression: invalid number, string, or variable at
\+
event.create(2,10,"keys abc\r event.destroythis", \+

Error occurred near line 1 of script test:
e=event.create(2,10,"keys abc\r event.destroythis", \+

2) The same, without line break:
global e=event.create(2,10,"keys abc\r event.destroythis", ?=visiblewindow("*notepad*")=)

No error. String "abc\r event.destroythis" is sent to active Notepad window 10 times.

3) Your latest script, letter of 25th March:
global e=event.create(2,10,"keys abc\re=e.destroy,\+
?=visiblewindow("*notepad*")=)

Bad expression: invalid number, string, or variable at
"keys abc\re=e.destroy,\+
event.create(2,10,"keys abc\re=e.destroy,\+

Error occurred near line 1 of script test:
global e=event.create(2,10,"keys abc\re=e.destroy,\+

4) The same, without line break:
global e=event.create(2,10,"keys abc\re=e.destroy, ?=visiblewindow("*notepad*")=)

Bad expression: invalid number, string, or variable at
")=)
event.create(2,10,"keys abc\re=e.destroy, ?=visiblewindow("*notepad*")=)

Error occurred near line 1 of script test:
global e=event.create(2,10,"keys abc\re=e.destroy,
?=visiblewindow("*notepad*")=)

Thank you for your response.

26.03.2019, 11:13, "[email protected] [power-pro]" <[email protected]>:

Worked in my limited tests as I understood the output

If you want further help, describe what you think it should do, what it did in your tests, and what you expected it to do.

--
С уважением,

Вахмурка

__._,_.___

----------

Posted by: pprotcmd <[email protected]>
----------

PowerPro's download site: http://powerpro.cresadu.com/

Visit Your Group

https://groups.yahoo.com/neo;_ylc=X3oDMTJkaTIybHFsBF9TAzk3NDc2NTkwBGdycElkAzI0ODc3NzcEZ3Jwc3BJZAMxNzA2MDMwNDA5BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNTUzNTkwMDIw

• Privacy • Unsubscribe • Terms of Use

__,_._,___