Re: Scripting systemWindow
Hi Andrew, What have you found where in the forums? Do you have a link? One possibility here is that the stack that this stack refers to changes when the systemWindow property is set. Is the button with your script part of the stack that becomes a system window? It is possible that there is a bug in the debugger, which prevents the answer dialog from showing up. Try writing a header plus the error data to a file. Once you have the error message, you can parse it at http://runrev.info/error.html -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer Economy-x-Talk is always looking for new software development projects. Feel free to contact me for a quote. Op 2 mrt 2010, om 19:58 heeft Andrew Kluthe het volgende geschreven: on mouseUp try if sSystemWindow is 0 then set the systemWindow of this stack to true put 1 into sSystemWindow else set the systemWindow of this stack to false put 0 into sSystemWindow end if catch e answer e end try end mouseUp I have this little guy to allow me to pin a stack on top of everything. It won't work, it seems like it throws an error because it brings tRev up to this chunk of code; however, I cannot get this error to display at all. I searched through the forums and found that someone else had tried almost the exact same code I did, but on MAC and got a bug. This was in 2006, so surely we can script systemWindow in windows 7 now. anyone else have trouble with this or have another snippet for pinning stacks on top? Thanks! Andrew ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scripting systemWindow
Post I found: http://n4.nabble.com/systemWindow-question-td300545.html#a300545 Yes, the button belongs to the stack that is executing it. I had originally given it the path to the stack with the same results. And, I am kind a noob to rev here. Can you elaborate on the process to do what you request? Also, I will try it with the regular Rev editor later instead of tRev to see if I get a different message or response. Thanks, Andrew -- View this message in context: http://n4.nabble.com/Scripting-systemWindow-tp1575500p1575588.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scripting systemWindow
I figured out what you meant, and no error message is being output and the script editor is not doing anything now. However, the above statement has no effect on the systemWindow property of the stack. -- View this message in context: http://n4.nabble.com/Scripting-systemWindow-tp1575500p1575596.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scripting systemWindow
Andrew Kluthe wrote: Post I found: http://n4.nabble.com/systemWindow-question-td300545.html#a300545 I just tried it and it works fine here, on both Mac OS X and Windows XP. I used this: on mouseUp set the systemwindow of this stack to not the systemwindow of this stack end mouseUp On Windows the window dims if it isn't in focus but it still floats. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scripting systemWindow
J. Landman Gay's snippet works. How is it so different pragmatically from what I did? Hmm weird. Thanks! -- View this message in context: http://n4.nabble.com/Scripting-systemWindow-tp1575500p1575655.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scripting systemWindow
I looked at your script. I am not sure what sSystemWindow is. But using NOT to toggle a logical value is really what you are looking for. Bob On Mar 2, 2010, at 12:27 PM, Andrew Kluthe wrote: J. Landman Gay's snippet works. How is it so different pragmatically from what I did? Hmm weird. Thanks! -- View this message in context: http://n4.nabble.com/Scripting-systemWindow-tp1575500p1575655.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scripting systemWindow
Hi Andrew, Just a wild guess, did you perhaps forget to make sSystemWindow a local or global variable? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer Economy-x-Talk is always looking for new software development projects. Feel free to contact me for a quote. Op 2 mrt 2010, om 21:27 heeft Andrew Kluthe het volgende geschreven: J. Landman Gay's snippet works. How is it so different pragmatically from what I did? Hmm weird. Thanks! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scripting systemWindow
:-P doh, that explains why after fixing it, the button would always toggle false. -- View this message in context: http://n4.nabble.com/Scripting-systemWindow-tp1575500p1575708.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scripting systemWindow
Heh heh. Been there, done that. I think that's why setting the property to *NOT* the property is a better way to go. Less moving parts. I think of properties as variables that remain persistent and are global by nature. Obviously they are a different kind of animal, as anyone on this list will be quick to point out, but from a programmatical point of view it serves me well. One other advantage to accessing a property directly is I can tell any time I want what is in the property. With Variables, I have to be running a script, either in a script or in the message box. That bit of wisdom and $2.40 will get you a venti brew with 5 shots of your favorite syrup at your local Starbucks. Bob On Mar 2, 2010, at 1:00 PM, Andrew Kluthe wrote: :-P doh, that explains why after fixing it, the button would always toggle false. -- View this message in context: http://n4.nabble.com/Scripting-systemWindow-tp1575500p1575708.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution