Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.advocacy > #373083
| From | "Octavian W. Lagrange" <olagrang@perch.invalid> |
|---|---|
| Newsgroups | comp.os.linux.advocacy |
| Subject | Re: Copy all URLs |
| Date | 2016-09-28 04:06 +0000 |
| Organization | O.W.L. |
| Message-ID | <hjadug003.agr3@perch.invalid> (permalink) |
| References | (6 earlier) <D4106A1B.7EAAE%usenet@gallopinginsanity.com> <ahfkigua3.age@perch.invalid> <D410765D.7EABC%usenet@gallopinginsanity.com> <ashjdgjic0.fji@perch.invalid> <D4108201.7EAC3%usenet@gallopinginsanity.com> |
Snit <usenet@gallopinginsanity.com> wrote:
> On 9/27/16, 7:33 PM, in article ashjdgjic0.fji@perch.invalid, "Octavian W.
> Lagrange" <olagrang@perch.invalid> wrote:
>
>> Snit <usenet@gallopinginsanity.com> wrote:
>>> On 9/27/16, 6:51 PM, in article ahfkigua3.age@perch.invalid, "Octavian W.
>>> Lagrange" <olagrang@perch.invalid> wrote:
>>>
>>> ...
>>>>>> You already have thisWindow set to give you the window's id by having it
>>>>>> set to the initial value of window 1's id, (when that window is window 1),
>>>>>> but instead of sending each window the value of thisWindow, you send them
>>>>>> the current value of window 1's id, which changes on refocus, so that you
>>>>>> have both windows receiving the current value, rather than the value of
>>>>>> thisWindow, which would be that window's id.
>>>>>>
>>>>> I think you need to diagram that sentence. LOL!
>>>>>
>>>> It diagrams just fine. I take it subordinate clauses present a difficulty
>>>> for you?
>>>>
>>> By all means do explain why you mean by that run-on nonsense.
>>>
> And Owl gives up... his sentence is run-on nonsense based on his own lack of
> understanding. OK. Fair enough.
>
It is not a run on sentence, moron.
>>>>> To be clear: I am not saying there is no mistake or better way to do my
>>>>> scripts... but, please, re-read your sentence and try to translate it to
>>>>> English. Heck, I will say the idea of "both windows receiving the current
>>>>> value" is wrong... each message is set to one window (except where I have
>>>>> referenced "all windows" or the like).
>>>>>
>>>>>> You also send the string "send this to window 1", rather than "to window
>>>>>> N". Both windows are receiving this "to window 1" stuff when they are not
>>>>>> both window 1.
>>>>>>
>>>>> Only the window that is window 1 receives the messages set to window 1 (or
>>>>> at least follows them).
>>>>>
>>>> No. Each window is receiving the id value of the current window 1, but they
>>>> both receive a string 'echo "send this to window 1"' when they do not have
>>>> focus.
>>>>
>>> Which video do you mean? But even without knowing that I can tell you that
>>> window 1 is the only window responding to messages sent to window 1.
>>
>> But you are not sending them to window 1.
>
> Correct: I am sending messages to windows which are not the front window.
> Were you under the impression that was a secret?
>
The string "Send this to window 1" reveals your intent.
>> You are sending them to the window whose id is thisWindow, which was
>> initialized with the value of window 1's id when *that* window was window 1.
>
> Right.
>
>> The value of thisWindow does not change after initialization.
>
> The value of its ID does not change but the value of its index does (as do
> other values).
>
Of course. But you are not sending to an index. You are sending to
a window id stored in thisWindow.
>> For the orange window, thisWindow has value 18026; for the red window it is
>> 18027.
>
> Those are their IDs. If that is what you mean by their "value" then you are
> correct.
>
>> You are sending those windows not the value of thisWindow, but the value of
>> the current window 1's id, which in the case of the white window is 18028, so
>> when the white window has focus, both the red and orange windows echo the
>> value 18028.
>
> Correct.
>
>> -----------------------
>> set thisWindow to id of window 1 as integer
>> repeat 10000 times
>> do script "echo " & id of window 1 as string in window id thisWindow
>> ...
>>
>> -----------------------
>>
>> The value of thisWindow does not change in the loop. It always refers
>> to the value it was initialized with.
>
> Again: correct. Good to see you are getting this (and hopefully you retain
> it!).
>
If only you got it.
> This might show it a bit better:
>
> <https://youtu.be/RpbhPFEMnsk>
>
That is not the same code. You are using '"echo " & thisWindow ...'
instead of the '"echo " & id of window 1 ...' that you used in the
code under discussion. So here you are echo'ing the window's own
id.
>>>>>> Sometimes neither of them is window 1 (when you bring the white terminal
>>>>>> to the fore), but they are both still receiving that string, along with
>>>>>> the id of the white window (the current value of the id of window 1).
>>>>>>
>>>>> Only window 1 gets the info sent to window 1.
>>>>>
>>>> No. That's not what is happening in your video.
>>>>
>>>> http://i.imgur.com/25nRs24.png
>>>>
>>>> As you can see here, when the white window has focus (it is now window 1)
>>>> the red and orange windows are receiving the string "send this to window 1"
>>>> and are also echo'ing the value of the white window's id, 18028. The orange
>>>> window is id 18026, and the red is 18027, as you see earlier in the video.
>>>>
>>> Re-watch the video and see if you can find your error. :)
>>
>> I made no error. I detected your error. What makes you think that
>> window 1 is "receiving" anything? You are not sending to window 1.
>
> Sure I am.
>
If so, why is the white window not receiving any input when it has focus and
is window 1? What part of the code sends to window 1? You are confused
about your own code.
>> You are sending to the window whose id is thisWindow:
>
> Right: which may or may not be window 1.
>
In the case of your code, it is not. And why say "Send this to window 1"
and why above say that you *are*
sending to window 1?
owl:
"You are not sending to window 1."
snit:
"Sure I am."
>> do script "echo " & id of window 1 as string in window id thisWindow
>
> Good grief... ANOTHER video to help you understand. Um, OK:
>
> <https://youtu.be/Yy4ynfiGPPM>
>
> I might blow your mind by moving windows without having them become the
> focus (they do not become window 1 as I move them).
Why would that blow my mind? It is trivial. But as you can see in
that very video, you are not moving the windows programmatically, but by
grabbing them with the mouse, and giving them focus, and you will note
that as you do so the echo'ed value of "Window 1" changes to reflect
the change in focus.
>
>>> Hint: If the line said:
>>>
>>> do script "echo Send this to yo' mama!" ...
>>>
>>> That would not have meant the message would have been sent to your mother or
>>> anyone else's. :)
>>
>> Which is my point.
>
> But not the one you said. :)
>
> Keep in mind, ONLY window 1 gets any message sent to window 1.
Yes, and if you had actually sent any message to window 1, it might
have received one.
> As far as I
> know there are no exceptions (though maybe you can set up a way to intercept
> it... never heard of such a thing).
>
>> You word the string to say that it is is sent to
>> "window 1" when it is not.
>
> See the newest and see if that helps you to understand...
>
>
Maybe this will clear it up for you:
When the first script is run, it sets its thisWindow variable to 18026:
http://i.imgur.com/nqOpSmY.png
The value of window 1's id (still 18026) is echo'd in the window 18026.
The string 'echo "Send this to window 1" is sent to window 18026.
When the second script is run, it sets its thisWindow variable to 18027:
http://i.imgur.com/LxT0jQP.png
The value of window 1's id (now 18027) is echo'd both the windows 18026
and 18027, the respective values of thisWindow in the two scripts.
The string 'echo "Send this to window 1" is also sent to both windows.
When the white window is opened and has focus, the value of window 1's
id is now 18028, so both the green and orange windows are echo'ing the
value 18028, as well as the string "Send this to window 1":
http://i.imgur.com/SVqSLUu.png
Not also that while the white window has focus at this point and is
"window 1," it is receiving no input. That is because nothing was
sent to "window 1."
Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-26 14:18 -0700
Re: Copy all URLs Silver Slimer <.m@nsn.s> - 2016-09-26 17:21 -0400
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-26 14:28 -0700
Re: Copy all URLs Silver Slimer <.m@nsn.s> - 2016-09-26 17:31 -0400
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-26 14:28 -0700
Re: Copy all URLs tmelmosfire <tmelmosfire@gmail.com> - 2016-09-26 14:33 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 06:24 +0000
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 08:31 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 18:07 +0000
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 11:38 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 19:56 +0000
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 13:23 -0700
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 08:54 -0700
Re: Copy all URLs tmelmosfire <tmelmosfire@gmail.com> - 2016-09-27 11:00 -0700
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 11:13 -0700
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 12:14 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 19:28 +0000
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 12:44 -0700
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 12:46 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 20:21 +0000
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 13:27 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 21:58 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 23:43 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 01:16 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 01:51 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 02:33 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 04:06 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 06:19 +0000
Re: Copy all URLs Marek Novotny <marek.novotny@marspolar.com> - 2016-09-28 14:03 +0000
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-28 09:09 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 04:13 +0000
Re: Copy all URLs Jim Polaski <jpolaski@linuxmail.org> - 2016-09-28 13:30 +0000
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-28 08:35 -0700
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-28 10:03 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 21:59 +0000
Re: Copy all URLs tmelmosfire <tmelmosfire@gmail.com> - 2016-09-27 12:38 -0700
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 13:13 -0700
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 14:27 -0700
csiph-web