Re: mouseStillDown - Problem for trapping the mouse btn number
2010/1/15 Nicolas Cueto : > > Copy-pasted your script and it worked in a stack (didn't test a > standalone) on my Vista Rev4.0 Build950 set-up. Not working for me. 2010/1/15 Sarah Reichelt : > I haven't tried this, but I assume it is an error in the docs. It may > not be included for speed reasons. > One work-around would be to store the mouse button in a script local > on mouseDown. That way you could refer to it on every mouseStillDown > without having to poll it again. Anyway it seems logical. It's like I'm putting the same value in a variable inside an infinite loop. Not really useful and optimized... For the moment this is the second time that I found an error in the docs. I'll consider making a compilation after my reading 8) Thanks Nicolas, René and Sarah for your answers ;) -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ 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: mouseStillDown - Problem for trapping the mouse btn number
On Fri, Jan 15, 2010 at 10:12 AM, zryip theSlug wrote: > Hi all, > > Maybe I'm doing something wrong but I can't trap the mouse button > number in a mouseStillDown handler. > > local lmyLoop > > on mouseStillDown pMouseBtnNumber > add 1 to lmyLoop > put "Test "&&lmyLoop&&"Button pressed"&&pMouseBtnNumber into fld "Field" > end mouseStillDown > > My pMouseBtnNumber remains desperately empty... I haven't tried this, but I assume it is an error in the docs. It may not be included for speed reasons. One work-around would be to store the mouse button in a script local on mouseDown. That way you could refer to it on every mouseStillDown without having to poll it again. Cheers, Sarah ___ 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: mouseStillDown - Problem for trapping the mouse btn number
Error ! I don't correctly understood the question. For me it is like for you... René Le 15 janv. 2010 à 01:12, zryip theSlug a écrit : > Hi all, > > Maybe I'm doing something wrong but I can't trap the mouse button > number in a mouseStillDown handler. > > local lmyLoop > > on mouseStillDown pMouseBtnNumber > add 1 to lmyLoop > put "Test "&&lmyLoop&&"Button pressed"&&pMouseBtnNumber into fld "Field" > end mouseStillDown > > My pMouseBtnNumber remains desperately empty... > > > I missed something ? > > Operating systems : Mac OS X 10.5.5 and Windows XP Pro sp 2 > Run Rev version : Enterprise 4.5 > > > Thanks > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.co.cc > ___ > 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: mouseStillDown - Problem for trapping the mouse btn number
Hello TheSlug, Here with Mac OS X 10.6.2 RunRev Studio 4.0.0. All is right with button script : on mouseStillDown pass mouseStillDown end mouseStillDown Bon souvenir de Paris René Le 15 janv. 2010 à 01:12, zryip theSlug a écrit : > Hi all, > > Maybe I'm doing something wrong but I can't trap the mouse button > number in a mouseStillDown handler. > > local lmyLoop > > on mouseStillDown pMouseBtnNumber > add 1 to lmyLoop > put "Test "&&lmyLoop&&"Button pressed"&&pMouseBtnNumber into fld "Field" > end mouseStillDown > > My pMouseBtnNumber remains desperately empty... > > > I missed something ? > > Operating systems : Mac OS X 10.5.5 and Windows XP Pro sp 2 > Run Rev version : Enterprise 4.5 > > > Thanks > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.co.cc > ___ > 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: mouseStillDown - Problem for trapping the mouse btn number
Hello -Zryip TheSlug, Copy-pasted your script and it worked in a stack (didn't test a standalone) on my Vista Rev4.0 Build950 set-up. -- Nicolas Cueto ___ 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
mouseStillDown - Problem for trapping the mouse btn number
Hi all, Maybe I'm doing something wrong but I can't trap the mouse button number in a mouseStillDown handler. local lmyLoop on mouseStillDown pMouseBtnNumber add 1 to lmyLoop put "Test "&&lmyLoop&&"Button pressed"&&pMouseBtnNumber into fld "Field" end mouseStillDown My pMouseBtnNumber remains desperately empty... I missed something ? Operating systems : Mac OS X 10.5.5 and Windows XP Pro sp 2 Run Rev version : Enterprise 4.5 Thanks -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ 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-2: information about over which line in a field the mouse is
Jan, thanks for the hint. That was exactly what i was looking for. Regards, Matthias Original Message Subject: Re: information about over which line in a field the mouse is (25-Mai-2009 18:30) From:Jan Schenkel To: runrev260...@m-r-d.de > > --- On Mon, 5/25/09, runrev260...@m-r-d.de wrote: > > > From: runrev260...@m-r-d.de > > Subject: information about over which line in a field the mouse is > > To: use-revolution@lists.runrev.com > > Date: Monday, May 25, 2009, 9:09 AM > > > > Hi all, > > > > i want to get the information over which line of a field > > the mouse is. As the field is not as width as the lines are, > > i want to put the line, over which the mouse is, into the > > tooltip. > > > > Regards, > > > > Matthias > > > > > > Take a look at the 'mouseLine' function in the dictionary. > ## > The mouseLine function returns a chunk expression of the form line > lineNumber of field fieldNumber. > ## > > Jan Schenkel. > = > Quartam Reports & PDF Library for Revolution > <http://www.quartam.com> > > = > "As we grow older, we grow both wiser and more foolish at the same time." ( > La Rochefoucauld) > > > > ___ > 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 > > > > > To: use-revolution@lists.runrev.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: information about over which line in a field the mouse is
--- On Mon, 5/25/09, runrev260...@m-r-d.de wrote: > From: runrev260...@m-r-d.de > Subject: information about over which line in a field the mouse is > To: use-revolution@lists.runrev.com > Date: Monday, May 25, 2009, 9:09 AM > > Hi all, > > i want to get the information over which line of a field > the mouse is. As the field is not as width as the lines are, > i want to put the line, over which the mouse is, into the > tooltip. > > Regards, > > Matthias > > Take a look at the 'mouseLine' function in the dictionary. ## The mouseLine function returns a chunk expression of the form line lineNumber of field fieldNumber. ## Jan Schenkel. = Quartam Reports & PDF Library for Revolution <http://www.quartam.com> = "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) ___ 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
information about over which line in a field the mouse is
Hi all, i want to get the information over which line of a field the mouse is. As the field is not as width as the lines are, i want to put the line, over which the mouse is, into the tooltip. Regards, Matthias ___ 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: Flipping thru cards, capturing the mouse position
Kay, two ways to do this - in the stack script, one of: 1) a repeat loop with waits on flipThroughCards repeat with n = 1 to the number of cds in this stack go cd n of this stack wait 1 second -- or whatever end repeat end flipThroughCards or 2) send in time on flipToCard cardNum go cd cardNum if cardNum < the number of cds in this stack then add 1 to cardNum send "flipToCard cardNum" to me in 1 second end if end flipToCard best, Mark On 31 Mar 2009, at 06:31, klists wrote: Hi: I'm a newbie who is stumped by this: I would like to click a button, which would start a process of flipping thru the cards of a stack, capturing the mouse position over each card as it runs. I would like to write the mouse position coordinates to each card, and to set the speed of the flipping before starting. I can get the mouse position ok, but am having trouble seeing how to build the flipping process "the Revolution Way". Any help on what concepts or functions would be useful is appreciated! Thanks, kay ___ 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: Flipping thru cards, capturing the mouse position
Bonjour Kay, Welcome to this list :-)) Not sure I understand precisely what you want but try the following : On a new stack, I put a button "flip" a field "thePosition" ; group this field ; on the property inspector (pane Basic properties) set the background behavior to true; place the group on each card In the script of the button "flip" : ON mouseUp answer "how many seconds?" WITH "1" OR "2" OR "3" REPEAT the number of cds in this stack wait it sec -- DURING THIS SECONDS YOU CAN MOVE THE MOUSE ON THE CURRENT CARD put the short name of this cd & tab & the mouseloc into fld "thePosition" go next END repeat END mouseUp HTH Don't hesitate to ask again if you get troubles or of it is not what you were expecting Best regards from Grenoble André Le 31 mars 09 à 07:31, klists a écrit : Hi: I'm a newbie who is stumped by this: I would like to click a button, which would start a process of flipping thru the cards of a stack, capturing the mouse position over each card as it runs. I would like to write the mouse position coordinates to each card, and to set the speed of the flipping before starting. I can get the mouse position ok, but am having trouble seeing how to build the flipping process "the Revolution Way". Any help on what concepts or functions would be useful is appreciated! Thanks, kay ___ 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: Flipping thru cards, capturing the mouse position
Hi Kay I don't quite get your problem. After all, if the user clicks on the button, surely the mouse position is going to remain the same? Or are you expecting your user to be prompted on each 'flipped' card to click elsewhere? It all depends on what you mean by 'flipping'. In case you have missed it, there has recently been a discussion on a 'page turning' effect when navigating between cards. I can't paste in a URL to the discussion as the Nabble site is currently under 'scheduled maintenance'. However, the subject of the discussion was: "Animate contents of a stack/card to turn like a page" The flipping should be done by using 'visual effect' e.g. in your button you would have visual effect push left -- visual effect wipe left go next card Navigating between cards in this manner dates back to Hypercard. You can try the various effects and see which is most suitable. However, please bear in mind this bugreport: http://quality.runrev.com/qacenter/show_bug.cgi?id=7358 . Maybe they will work for you, but for me navigation using visual effects is broken in many ways. As to capturing the coordinates of the mouse pointer, you need to use the 'mouseLoc'. You can find more information on that in the Revolution Dictionary. Hope that is of some help. Bernard On Tue, Mar 31, 2009 at 6:31 AM, klists wrote: > > Hi: > > I'm a newbie who is stumped by this: I would like to click a button, which > would start a process of flipping thru the cards of a stack, capturing the > mouse position over each card as it runs. I would like to write the mouse > position coordinates to each card, and to set the speed of the flipping > before starting. I can get the mouse position ok, but am having trouble > seeing how to build the flipping process "the Revolution Way". Any help on > what concepts or functions would be useful is appreciated! > > Thanks, > > kay > ___ > 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
Flipping thru cards, capturing the mouse position
Hi: I'm a newbie who is stumped by this: I would like to click a button, which would start a process of flipping thru the cards of a stack, capturing the mouse position over each card as it runs. I would like to write the mouse position coordinates to each card, and to set the speed of the flipping before starting. I can get the mouse position ok, but am having trouble seeing how to build the flipping process "the Revolution Way". Any help on what concepts or functions would be useful is appreciated! Thanks, kay ___ 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: How to click the mouse on another application
There is also the free CLICLICK for OS X. http://www.bluem.net/downloads/cliclick-en/ Jim Lambert ___ 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: How to click the mouse on another application
tell application "Extra Suites" set x to ES mouse location ES move mouse {item 1 of x, (item 2 of x) + 10} end tell tell application "Extra Suites" ES move mouse {10,30} end tell tell application "Extra Suites" ES move mouse -30 with locally ES click mouse end tell ES is $10 shareware but can be distributed for run only applications I have no affiliation with ES Tom McGrath III Lazy River Software 3mcgr...@comcast.net iTunes Library Suite - libITS Information and download can be found on this page: http://www.lazyriversoftware.com/RevOne.html On Jan 15, 2009, at 5:38 PM, Generic Email wrote: This is perfect! Thanks so much. On Jan 15, 2009, at 1:44 PM, Thomas McGrath III wrote: This can be done easily using Applescript. If you use the Extra Suites.sdef you will see dictionary commands for ES click mouse, ES move mouse, ES select menu item, ES type key, ES type string, ES mouse location, ES keys down. There is only a limited ability to do this in VBScript, however. But it is straight forward in Applescript. Tom On Jan 8, 2009, at 2:48 PM, Bert Shuler wrote: Then my guess is this would require an external. What would be the best mechanism to request a quote for the development of an external? SendClick (h,v) SendKeys (h,v) "string to send" (including Alt+F style key combinations) Should would correctly on OS X, Win32, and linux. Thanks Bert On Jan 8, 2009, at 2:23 PM, Generic Email wrote: I am using: set the screenMouseLoc to (h,v) to move the mouse over a button on another application. Now I need to "Click" the mouse. The transcript click function does not seem to actually click the mouse, but instead simulate a mouse click only in a rev stack. Any help would be appreciated. Bert ___ 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: How to click the mouse on another application
This is perfect! Thanks so much. On Jan 15, 2009, at 1:44 PM, Thomas McGrath III wrote: This can be done easily using Applescript. If you use the Extra Suites.sdef you will see dictionary commands for ES click mouse, ES move mouse, ES select menu item, ES type key, ES type string, ES mouse location, ES keys down. There is only a limited ability to do this in VBScript, however. But it is straight forward in Applescript. Tom Tom McGrath III Lazy River Software 3mcgr...@comcast.net iTunes Library Suite - libITS Information and download can be found on this page: http://www.lazyriversoftware.com/RevOne.html On Jan 8, 2009, at 2:48 PM, Bert Shuler wrote: Then my guess is this would require an external. What would be the best mechanism to request a quote for the development of an external? SendClick (h,v) SendKeys (h,v) "string to send" (including Alt+F style key combinations) Should would correctly on OS X, Win32, and linux. Thanks Bert On Jan 8, 2009, at 2:23 PM, Generic Email wrote: I am using: set the screenMouseLoc to (h,v) to move the mouse over a button on another application. Now I need to "Click" the mouse. The transcript click function does not seem to actually click the mouse, but instead simulate a mouse click only in a rev stack. Any help would be appreciated. Bert ___ 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 ___ 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: How to click the mouse on another application
This can be done easily using Applescript. If you use the Extra Suites.sdef you will see dictionary commands for ES click mouse, ES move mouse, ES select menu item, ES type key, ES type string, ES mouse location, ES keys down. There is only a limited ability to do this in VBScript, however. But it is straight forward in Applescript. Tom Tom McGrath III Lazy River Software 3mcgr...@comcast.net iTunes Library Suite - libITS Information and download can be found on this page: http://www.lazyriversoftware.com/RevOne.html On Jan 8, 2009, at 2:48 PM, Bert Shuler wrote: Then my guess is this would require an external. What would be the best mechanism to request a quote for the development of an external? SendClick (h,v) SendKeys (h,v) "string to send" (including Alt+F style key combinations) Should would correctly on OS X, Win32, and linux. Thanks Bert On Jan 8, 2009, at 2:23 PM, Generic Email wrote: I am using: set the screenMouseLoc to (h,v) to move the mouse over a button on another application. Now I need to "Click" the mouse. The transcript click function does not seem to actually click the mouse, but instead simulate a mouse click only in a rev stack. Any help would be appreciated. Bert ___ 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: How to click the mouse on another application
Then my guess is this would require an external. What would be the best mechanism to request a quote for the development of an external? SendClick (h,v) SendKeys (h,v) "string to send" (including Alt+F style key combinations) Should would correctly on OS X, Win32, and linux. Thanks Bert On Jan 8, 2009, at 2:23 PM, Generic Email wrote: I am using: set the screenMouseLoc to (h,v) to move the mouse over a button on another application. Now I need to "Click" the mouse. The transcript click function does not seem to actually click the mouse, but instead simulate a mouse click only in a rev stack. Any help would be appreciated. Bert ___ 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: How to click the mouse on another application
Awesome. Please excuse my anxiousness. Bert On Jan 12, 2009, at 12:36 PM, J. Landman Gay wrote: Generic Email wrote: I have emailed my external requirements to this list, altuit.com, swcp.com, and hyperactive software, and I have recieved 0 replies. Is this normal? Am I doing something wrong? I just responded. Your mail came in on a Saturday and I try not to work on weekends. -- 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 ___ 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: How to click the mouse on another application
Generic Email wrote: I have emailed my external requirements to this list, altuit.com, swcp.com, and hyperactive software, and I have recieved 0 replies. Is this normal? Am I doing something wrong? I just responded. Your mail came in on a Saturday and I try not to work on weekends. -- 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: How to click the mouse on another application
I have emailed my external requirements to this list, altuit.com, swcp.com, and hyperactive software, and I have recieved 0 replies. Is this normal? Am I doing something wrong? Any advice would be appreciated. Bert On Jan 9, 2009, at 2:04 PM, Generic Email wrote: I believe these are my requirements. Would anyone like to send me an estimate? Please provide an estimate and timeline for developing software based on these requirements. 1) All rights for software developed and work products created as a result of this work become property of the client (me) 2) Software is to me implemented as a Runtime Revolution (RunRev) external 3) Software can be distributed as one single external file in a RunRev distribution. 4) Software must support Win32, Linux and Mac OS X 5) Must trap and report errors correctly. 6) function ScreenClick(button, h, v) as string button can be "Primary" "Secondary" "Left" "Right" "Middle" h is the horizontal screen location v is the vertical screen location the return value is the name of the application that was clicked on, or empty if there was an error 7) function ScreenKeys(text, h, v) as string text can be a series of keys to send, including key combinations like Alt-S and Alt-F4 h is the horizontal screen location v is the vertical screen location the return value is the name of the application that was clicked on, or empty if there was an error 8) function ScreenDrag(button, starth, startv, endh, endv) as string button can be "Primary" "Secondary" "Left" "Right" "Middle" starth is the horizontal screen location of the drag start startv is the vertical screen location of the drag start endh is the horizontal screen location of the drag end endv is the vertical screen location of the drag end the return value is the name of the application that the drag started on, a return, then the name of the application the drag finished on, or empty if there was an error If there is a better way to request an estimate for the creation of an external, of if I am making any mistakes in my request, please let me know. On Jan 9, 2009, at 1:44 PM, Bernard Devlin wrote: I believe that I have done this before on Windows using VBScript (although in my case I had to start the other application from Rev). After the other app was started I needed to click on some menus, then close it all via VBScript). If that sounds like what you need to do, then let me know and I'll hunt out the code. Bernard On Thu, Jan 8, 2009 at 7:23 PM, Generic Email wrote: I am using: set the screenMouseLoc to (h,v) to move the mouse over a button on another application. Now I need to "Click" the mouse. The transcript click function does not seem to actually click the mouse, but instead simulate a mouse click only in a rev stack. Any help would be appreciated. Bert ___ 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 ___ 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: How to click the mouse on another application
I believe these are my requirements. Would anyone like to send me an estimate? Please provide an estimate and timeline for developing software based on these requirements. 1) All rights for software developed and work products created as a result of this work become property of the client (me) 2) Software is to me implemented as a Runtime Revolution (RunRev) external 3) Software can be distributed as one single external file in a RunRev distribution. 4) Software must support Win32, Linux and Mac OS X 5) Must trap and report errors correctly. 6) function ScreenClick(button, h, v) as string button can be "Primary" "Secondary" "Left" "Right" "Middle" h is the horizontal screen location v is the vertical screen location the return value is the name of the application that was clicked on, or empty if there was an error 7) function ScreenKeys(text, h, v) as string text can be a series of keys to send, including key combinations like Alt-S and Alt-F4 h is the horizontal screen location v is the vertical screen location the return value is the name of the application that was clicked on, or empty if there was an error 8) function ScreenDrag(button, starth, startv, endh, endv) as string button can be "Primary" "Secondary" "Left" "Right" "Middle" starth is the horizontal screen location of the drag start startv is the vertical screen location of the drag start endh is the horizontal screen location of the drag end endv is the vertical screen location of the drag end the return value is the name of the application that the drag started on, a return, then the name of the application the drag finished on, or empty if there was an error If there is a better way to request an estimate for the creation of an external, of if I am making any mistakes in my request, please let me know. On Jan 9, 2009, at 1:44 PM, Bernard Devlin wrote: I believe that I have done this before on Windows using VBScript (although in my case I had to start the other application from Rev). After the other app was started I needed to click on some menus, then close it all via VBScript). If that sounds like what you need to do, then let me know and I'll hunt out the code. Bernard On Thu, Jan 8, 2009 at 7:23 PM, Generic Email wrote: I am using: set the screenMouseLoc to (h,v) to move the mouse over a button on another application. Now I need to "Click" the mouse. The transcript click function does not seem to actually click the mouse, but instead simulate a mouse click only in a rev stack. Any help would be appreciated. Bert ___ 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 ___ 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: How to click the mouse on another application
I believe that I have done this before on Windows using VBScript (although in my case I had to start the other application from Rev). After the other app was started I needed to click on some menus, then close it all via VBScript). If that sounds like what you need to do, then let me know and I'll hunt out the code. Bernard On Thu, Jan 8, 2009 at 7:23 PM, Generic Email wrote: > I am using: > set the screenMouseLoc to (h,v) > > to move the mouse over a button on another application. > > Now I need to "Click" the mouse. > > The transcript click function does not seem to actually click the mouse, > but instead simulate a mouse click only in a rev stack. > > Any help would be appreciated. > > Bert > ___ > 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: How to click the mouse on another application
Not sure if this is for something you want to run yourself or if it's for distribution, but you can always use QuicKeys. Bob Sneidar IT Manager Logos Management Calvary Chapel CM On Jan 9, 2009, at 9:56 AM, Ben Rubinstein wrote: Klaus Major wrote: Fact is, you cannot "click in another app" from within Rev! On the Mac you could do this via AppleScript (but I don't know how:-), no idea of Windows. Actually I'm not even sure you can do this via AppleScript. I was looking into this a while ago for automated soak testing - couldn't find a way. You can send key presses to another app using the "System Events" accessibility mechanism; and via the same mechanism, can 'click on' a control in another app, if it's built via the standard Cocoa routines (so for example not a rev control, not a page in a browser, not anything in Flash) - but I failed to find a way to send a generic mouse click at a location to another app. In the end I had to forget about using Rev, and do the whole thing in Xcode instead. - Ben ___ 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: How to click the mouse on another application
Klaus Major wrote: Fact is, you cannot "click in another app" from within Rev! On the Mac you could do this via AppleScript (but I don't know how:-), no idea of Windows. Actually I'm not even sure you can do this via AppleScript. I was looking into this a while ago for automated soak testing - couldn't find a way. You can send key presses to another app using the "System Events" accessibility mechanism; and via the same mechanism, can 'click on' a control in another app, if it's built via the standard Cocoa routines (so for example not a rev control, not a page in a browser, not anything in Flash) - but I failed to find a way to send a generic mouse click at a location to another app. In the end I had to forget about using Rev, and do the whole thing in Xcode instead. - Ben ___ 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: How to click the mouse on another application
Then my guess is this would require an external. What would be the best mechanism to request a quote for the development of an external? SendClick (h,v) SendKeys (h,v) "string to send" (including Alt+F style key combinations) Should would correctly on OS X, Win32, and linux. Thanks Bert ___ 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: How to click the mouse on another application
Hmmm. In HC, the mouseClick message would not go anywhere, as there is no target underneath it, and HC only sends its own essages to its own environment. I suspect rev works similarly. The message can't interact with another app, as any app, even the finder, would not care a whit, and certainly would not know what to do with it if it did. If I understand what you want, which is to bring another app forward, can't you just "open" that app? Craig Newman ** A Good Credit Score is 700 or Above. See yours in just 2 easy steps! (http://pr.atwola.com/promoclk/10075x1215047751x1200957972/aol?redir=http://www.freecreditreport.com/pm/default.aspx?sc=668072%26hmpgID =62%26bcd=DecemailfooterNO62) ___ 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: How to click the mouse on another application
Hi Bert, I am using: set the screenMouseLoc to (h,v) to move the mouse over a button on another application. Now I need to "Click" the mouse. The transcript click function does not seem to actually click the mouse, but instead simulate a mouse click only in a rev stack. Fact is, you cannot "click in another app" from within Rev! On the Mac you could do this via AppleScript (but I don't know how:-), no idea of Windows. Any help would be appreciated. Bert Best Klaus Major kl...@major-k.de http://www.major-k.de ___ 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
How to click the mouse on another application
I am using: set the screenMouseLoc to (h,v) to move the mouse over a button on another application. Now I need to "Click" the mouse. The transcript click function does not seem to actually click the mouse, but instead simulate a mouse click only in a rev stack. Any help would be appreciated. Bert ___ 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: Testing if the mouse clicked on ME (button)?!
Hi Jacqueline, Bloomin terrifying. :-o So, thanks very much for your encouragement, it really made me feel great! I'm so flat out with my toddler most of the time, and wish I had more time to stay in "the Rev Zone". Or even keep up with all the posts daily phew! I just want to thank everyone sooo much for your time and detailed help with every question I have :) especially for the last 10 or so replies to my last questions that I haven't yet followed up on. Hope I get to read them all and work on them tonight FINALLY after a few days of toddler hell! Cheers, Heather - Original Message - From: "J. Landman Gay" <[EMAIL PROTECTED]> To: "How to use Revolution" Sent: Sunday, August 10, 2008 4:31 AM Subject: Re: Testing if the mouse clicked on ME (button)?! H Baric wrote: > Making a timer, with just one button and one field. > The one button is to start and stop the timer. > The button's label is changed to "Stop" when it starts, and "Start" when > it > stops. I think I got that? > But, how to test when the user clicks on the button during the process? > (sorry, hey don't laugh! I have been searching and trying everything I > know, > which isn't much yet!) I'm just delighted you are posting here. I think this list can be scary for newcomers and they don't always post. I wish we had more like you. Please don't stop. > > But it's simple right? *blush* It can be, but the easy way isn't the right way. First let's fix your script to do it the easy way, and then I'll tell you why you shouldn't use it. > on mouseUp > if the label of me is "Start" then > set the label of me to "Stop" > repeat with tCount = 1 to 60 > put tCount into fld "Counter Show" > wait 1 second While this repeat is running, nothing else can happen. The 60-second wait will block all other processes on the whole computer while the repeat loop goes around and around. Other background programs will stop whatever they are doing, the whole CPU will hang in limbo until that minute is over. That's one reason why we don't do it this way. But let's look at the script some more anyway. > if (I am clicked??) and the label of me is "Stop" then The event you want here is "the mouseclick". When the user clicks, the "mouseclick" event is sent to whatever object is clicked. So the correct line is: if the mouseclick then You don't need to check to see if the label is "stop" because the first line of the "if" clause has already set that and it can't possibly be anything else. > exit repeat > set the label of me to "Start" When you exit the repeat, any remaining lines in the repeat loop will be skipped and the handler will proceed to the line after the "end repeat". That means the label here will never be set to "start" because the loop has already exited. Change the order so that the "exit" is the last thing that happens: set the label of me to "Start" exit repeat So, here's the whole working script: on mouseUp if the label of me is "Start" then set the label of me to "Stop" repeat with tCount = 1 to 60 put tCount into fld "Counter Show" wait 1 second if the mouseclick then set the label of me to "Start" exit repeat end if end repeat end if end mouseUp That's the easy way, but don't do it. In addition to blocking the CPU while this repeat loop runs, there's another reason to avoid this technique. The "mouseclick" (or any other mouse events) are not reliable when checked in a loop. The engine will only recognize a mouse event if it occurs at the same moment the script is checking for it. In a very short loop, it will probably "see" the mouse event most of the time. But in very long scripts inside a repeat loop, another part of the handler may be running when the mouse is clicked (like during the 1-second wait above,) and the script won't be checking at that precise moment, so the loop will not exit. So a much better way to handle this kind of thing is to use the techniques that Eric and others have pointed out. It's more complicated, but it is more reliable and it doesn't block the CPU. There is more info about this technique here: <http://www.hyperactivesw.com/polling.html> Thanks again for posting, I hope you inspire all our other new Revvers to do the same. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___
Re: Testing if the mouse clicked on ME (button)?!
H Baric wrote: Making a timer, with just one button and one field. The one button is to start and stop the timer. The button's label is changed to "Stop" when it starts, and "Start" when it stops. I think I got that? But, how to test when the user clicks on the button during the process? (sorry, hey don't laugh! I have been searching and trying everything I know, which isn't much yet!) I'm just delighted you are posting here. I think this list can be scary for newcomers and they don't always post. I wish we had more like you. Please don't stop. But it's simple right? *blush* It can be, but the easy way isn't the right way. First let's fix your script to do it the easy way, and then I'll tell you why you shouldn't use it. on mouseUp if the label of me is "Start" then set the label of me to "Stop" repeat with tCount = 1 to 60 put tCount into fld "Counter Show" wait 1 second While this repeat is running, nothing else can happen. The 60-second wait will block all other processes on the whole computer while the repeat loop goes around and around. Other background programs will stop whatever they are doing, the whole CPU will hang in limbo until that minute is over. That's one reason why we don't do it this way. But let's look at the script some more anyway. if (I am clicked??) and the label of me is "Stop" then The event you want here is "the mouseclick". When the user clicks, the "mouseclick" event is sent to whatever object is clicked. So the correct line is: if the mouseclick then You don't need to check to see if the label is "stop" because the first line of the "if" clause has already set that and it can't possibly be anything else. exit repeat set the label of me to "Start" When you exit the repeat, any remaining lines in the repeat loop will be skipped and the handler will proceed to the line after the "end repeat". That means the label here will never be set to "start" because the loop has already exited. Change the order so that the "exit" is the last thing that happens: set the label of me to "Start" exit repeat So, here's the whole working script: on mouseUp if the label of me is "Start" then set the label of me to "Stop" repeat with tCount = 1 to 60 put tCount into fld "Counter Show" wait 1 second if the mouseclick then set the label of me to "Start" exit repeat end if end repeat end if end mouseUp That's the easy way, but don't do it. In addition to blocking the CPU while this repeat loop runs, there's another reason to avoid this technique. The "mouseclick" (or any other mouse events) are not reliable when checked in a loop. The engine will only recognize a mouse event if it occurs at the same moment the script is checking for it. In a very short loop, it will probably "see" the mouse event most of the time. But in very long scripts inside a repeat loop, another part of the handler may be running when the mouse is clicked (like during the 1-second wait above,) and the script won't be checking at that precise moment, so the loop will not exit. So a much better way to handle this kind of thing is to use the techniques that Eric and others have pointed out. It's more complicated, but it is more reliable and it doesn't block the CPU. There is more info about this technique here: <http://www.hyperactivesw.com/polling.html> Thanks again for posting, I hope you inspire all our other new Revvers to do the same. -- Jacqueline Landman Gay | [EMAIL PROTECTED] 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: Testing if the mouse clicked on ME (button)?!
> But it's simple right? *blush* Yup (BTW, I'm assuming it should count as being stopped after the 60 seconds are up): local sStartTime on mouseUp if the label of me is "Start" then set the label of me to "Stop" put the seconds into sStartTime send "CheckTimer" to me in 0 milliseconds -- allows script to continue else CancelPending "CheckTimer" set the label of me to "Start" end if end mouseUp on CheckTimer put (the seconds - sStartTime) into fld "Counter Show" if (the seconds - sStartTime = 60) then set the label of me to "Start" answer "Time's up!" else send "CheckTimer" to me in 1 second end if end CheckTimer on CancelPending pMsg put the pendingMessages into tPending filter tPending with "*," & pMsg & ",*" repeat for each line tMsg in tPending -- just in case there's more than 1 cancel item 1 of tMsg end repeat end CancelPending Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.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: Testing if the mouse clicked on ME (button)?!
Hi Heather: you should check out the "Message Mechanics" stack by list member Dar Scott. A well-written stack and essential learning experience to get you head around messages and timers. Many AHA moments. Then you can do other stuff while your timer runs. http://www.swcp.com/dsc/revstacks.html A Primer on Message Mechanics. This module (stack file) is a primer on using send, cancel, pendingMessages and callbacks. Those are the basic Revolution components needed to get your stacks to do several things at the same time. The primer starts from the basics and builds on those, providing examples and details along the way. It is 88 tiny pages long and if that is not long enough for you, note that it is set up so you can add your own pages. It is fun and... It is Free! Ugh. Sorry for another probably easy/obvious one to you clever folk, but I can't seem to work out how to do this (and probably shouldn't be at this time as I'm just about falling asleep, but it's driving me crazy as it was supposed to be a quick simple thing to do): Making a timer, with just one button and one field. Cheers, Heather - Who's toddler and teenager messed with most of her brain cells today. -- stephen barncard s a n f r a n c i s c o - - - - - - - - - - - - ___ 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: Testing if the mouse clicked on ME (button)?!
Bonjour Heather, It's not as simple as it seems :-) There are many problems to solve here: I am clicked??, a wait that will hang Rev, etc. All this is a good reason to choose another architecture using the 'send ' command. To get you started: local lCancelID -- script local variable constant kTimerDelay = 1 -- constant -- on mouseUp if the label of me is "Start" then put 0 into fld "Counter Show" set the label of me to "Stop" send "SetTimer true" to me in kTimerDelay second -- else put empty into fld "Counter Show" set the label of me to "Start" SetTimer false -- end if end mouseUp -- on SetTimer pFlag if pFlag then -- starts timer add 1 to fld "Counter Show" if "SetTimer" is not in the pendingMessages then -- to avoid having a double pending message send "SetTimer true" to me in kTimerDelay second -- end if put the result into lCancelID else -- stops timer by canceling pending message cancel lCancelID end if end SetTimer See 'send', 'cancel' and 'pendingMessages' in the docs :-) Le 9 août 08 à 16:19, H Baric a écrit : Ugh. Sorry for another probably easy/obvious one to you clever folk, but I can't seem to work out how to do this (and probably shouldn't be at this time as I'm just about falling asleep, but it's driving me crazy as it was supposed to be a quick simple thing to do): Making a timer, with just one button and one field. The one button is to start and stop the timer. The button's label is changed to "Stop" when it starts, and "Start" when it stops. I think I got that? But, how to test when the user clicks on the button during the process? (sorry, hey don't laugh! I have been searching and trying everything I know, which isn't much yet!) But it's simple right? *blush* Here goes: on mouseUp if the label of me is "Start" then set the label of me to "Stop" repeat with tCount = 1 to 60 put tCount into fld "Counter Show" wait 1 second if (I am clicked??) and the label of me is "Stop" then exit repeat set the label of me to "Start" end if end repeat end if end mouseUp Cheers, Heather - Who's toddler and teenager messed with most of her brain cells today. ___ 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
Testing if the mouse clicked on ME (button)?!
Ugh. Sorry for another probably easy/obvious one to you clever folk, but I can't seem to work out how to do this (and probably shouldn't be at this time as I'm just about falling asleep, but it's driving me crazy as it was supposed to be a quick simple thing to do): Making a timer, with just one button and one field. The one button is to start and stop the timer. The button's label is changed to "Stop" when it starts, and "Start" when it stops. I think I got that? But, how to test when the user clicks on the button during the process? (sorry, hey don't laugh! I have been searching and trying everything I know, which isn't much yet!) But it's simple right? *blush* Here goes: on mouseUp if the label of me is "Start" then set the label of me to "Stop" repeat with tCount = 1 to 60 put tCount into fld "Counter Show" wait 1 second if (I am clicked??) and the label of me is "Stop" then exit repeat set the label of me to "Start" end if end repeat end if end mouseUp Cheers, Heather - Who's toddler and teenager messed with most of her brain cells today. ___ 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
Rawkeydown and the mouse wheel
Yes: Forward Scroll : 65309 Back Scroll: 65308 and they show up with my "Key Namer" stack (RevOnline); which surpised me! Love, Richmond A Thorn in the flesh is better than a failed Systems Development Life Cycle. ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.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: Rawkeydown and the mouse wheel
Short answer: yes. Le 29 sept. 07 à 11:25, jbv a écrit : Hi list, are the rawkeydown key codes 65308 / 65309 similar on Mac and XP ? (I don't have any mousewheel to test on Mac). Best regards from Paris, Eric Chatonet. Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/ Email: [EMAIL PROTECTED]/ ___ 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: Rawkeydown and the mouse wheel
Hi list, are the rawkeydown key codes 65308 / 65309 similar on Mac and XP ? (I don't have any mousewheel to test on Mac). Thanks, JB ___ 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: Rawkeydown and the mouse wheel
Howard Bornstein wrote: ...if I scroll the mouse wheel, it only works under the following conditions: 1) if the cursor is directly over one of the buttons in the group. (if it's over white space within the group, scrolling doesn't happen) 2) if the cursor is over any other object outside the group (i.e. if there's a button or field or image outside the group and the cursor is over it) However, if the cursor is just over the card with nothing under it, the mouse wheel "key" messages apparently are not sent. This is very strange. Typing a key, no matter where the cursor is, gets echoed properly, meaning the rawkeydown handler is getting the key strokes. However, it only gets the mouse wheel "key" message when the cursor is over an object. How come the rawkeydown handler isn't getting the mouse wheel input when the cursor isn't over an object? Yep, I've been bitten by that myself. Not sure why it's that way, and since the card receives all other key events in rawKeyDown I would think that for consistency the scroll wheel should be sent outside of controls as well. The workaround is to put a graphic or other object across the full extent of the group's content region, so at least the message will be sent. -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.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
Rawkeydown and the mouse wheel
I'm trying to use the mouse wheel to scroll a group in a stack using the rawkeydown handler. I've seen Mark Waddingham's comments that groups don't respond to key messages: "I think this is a consequence of mouse-wheel messages being sent as key's at present and groups not responding to any key messages at the moment." However, it seems like it should be easy to get around this by simply putting the rawkeydown handler in the stack script and pointing it at the group scroll values when it detects the mousewheel codes. Alas, something odd is happening with all this. I set up a group with a few buttons and sized it so that scroll bars appeared when I turned them on. I put the following handler in the stack script. on rawkeydown keystroke put the vscroll of group 1 into vs if keystroke is 65308 then set the vscroll of group 1 to vs - 10 else if keystroke is 65309 then set the vscroll of group 1 to vs + 10 end if put keystroke pass rawkeydown end rawkeydown Anything I type, no matter where the cursor is, gets echoed in the message box, as is expected. However, if I scroll the mouse wheel, it only works under the following conditions: 1) if the cursor is directly over one of the buttons in the group. (if it's over white space within the group, scrolling doesn't happen) 2) if the cursor is over any other object outside the group (i.e. if there's a button or field or image outside the group and the cursor is over it) However, if the cursor is just over the card with nothing under it, the mouse wheel "key" messages apparently are not sent. This is very strange. Typing a key, no matter where the cursor is, gets echoed properly, meaning the rawkeydown handler is getting the key strokes. However, it only gets the mouse wheel "key" message when the cursor is over an object. How come the rawkeydown handler isn't getting the mouse wheel input when the cursor isn't over an object? Aside from putting a giant invisible button behind my entire stack (which is impractical for my current application) does anyone know of any other means to make the rawkeydown handler see the mouse wheel messages all the time? -- Regards, Howard Bornstein --- www.designeq.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:Get the RGB values for the pixel under the mouse.
Thanks Glen. Color is in the mind of "if...then" Jim Jim, Here is some of my dumb ways to check for some particular colors in one of my games. I thought it might give you some ideas. function pixelColor lx set the screenMouseLoc to lx get the mouseColor set the screenMouseLoc to 0,0 return it end pixelColor -- c is the RGB values as an item list function isGreen c if item 2 of c > 10+item 1 of c and item 2 of c > 10+item 3 of c then return true return false end isGreen function isBrown c if item 1 of c > 30 and item 1 of c < 70 and item 2 of c > 15 and item 2 of c < 40\ and item 3 of c > 7 and item 3 of c < 20 then return true return false end isBrown function isYellow c if c = "174,144,96" or c = "161,125,76" then return true return false end isYellow function isBeige c if item 1 of c > 130 and item 1 of c < 160 and item 2 of c > 90 and item 2 of c < 130\ and item 3 of c > 40 and item 3 of c < 80 then return true return false end isBeige Have fun, Glenn ___ 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:Get the RGB values for the pixel under the mouse.
Jim, Here is some of my dumb ways to check for some particular colors in one of my games. I thought it might give you some ideas. function pixelColor lx set the screenMouseLoc to lx get the mouseColor set the screenMouseLoc to 0,0 return it end pixelColor -- c is the RGB values as an item list function isGreen c if item 2 of c > 10+item 1 of c and item 2 of c > 10+item 3 of c then return true return false end isGreen function isBrown c if item 1 of c > 30 and item 1 of c < 70 and item 2 of c > 15 and item 2 of c < 40\ and item 3 of c > 7 and item 3 of c < 20 then return true return false end isBrown function isYellow c if c = "174,144,96" or c = "161,125,76" then return true return false end isYellow function isBeige c if item 1 of c > 130 and item 1 of c < 160 and item 2 of c > 90 and item 2 of c < 130\ and item 3 of c > 40 and item 3 of c < 80 then return true return false end isBeige Have fun, Glenn on July 12, 2007 7:08:54 PM CDT Jim Hurley wrote: To be sure of my code I started with a script to get the RGB values under the mouse, using a MouseMove function. To see this go url "http://home.infostations.net/jhurley/RGBunderTheMouse.rev"; Unfortunately the map does not show pure colors so getting the ranges for each hazard zone is messy. But this utility is useful in exploring the range of colors. Jim -- Glenn E. Fisher University of Houston - Retired 22402 Diane Dr. Spring, Tx 77373 [EMAIL PROTECTED] http://www.uh.edu/~fisher http://home.houston.rr.com/thegefishers/ http://homepage.mac.com/gefisher ___ 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: Get the RGB values for the pixel under the mouse.
On 7/14/07, James Hurley <[EMAIL PROTECTED]> wrote: Got to go now. I'm working on my new invention. It's round and rolls. Going to call it the "wheel." If you get the patent, let me know and I'll help you raise money for your company. We can hire the same attorney SCO had-- I hear they're looking for business ;-) ___ 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: Get the RGB values for the pixel under the mouse.
Hi James, ... Jim, It's easier than that. Check the mouseColor function. -Chipp Chipp, Well, I never. Rev seems to have thought of everything. Got to go now. I'm working on my new invention. It's round and rolls. Going to call it the "wheel." Hmm, sounds interesting but I doubt that it has any commercial potential, sorry. ;-) Jim Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ 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: Get the RGB values for the pixel under the mouse.
Message: 2 Date: Thu, 12 Jul 2007 18:48:42 -0600 From: "Chipp Walters" <[EMAIL PROTECTED]> Subject: Re: Get the RGB values for the pixel under the mouse. To: "How to use Revolution" Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Jim, It's easier than that. Check the mouseColor function. -Chipp Chipp, Well, I never. Rev seems to have thought of everything. Got to go now. I'm working on my new invention. It's round and rolls. Going to call it the "wheel." Jim ___ 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: Get the RGB values for the pixel under the mouse.
Jim, It's easier than that. Check the mouseColor function. -Chipp ___ 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
Get the RGB values for the pixel under the mouse.
This may go under the heading of "what I did with RR today." Marginally useful. We just received the California Department of Forestry map defining the level of fire hazard: Red for Very High, Orange for High, Yellow for Moderate. I wanted to get the fraction of the Very High area in our county. To be sure of my code I started with a script to get the RGB values under the mouse, using a MouseMove function. To see this go url "http://home.infostations.net/jhurley/RGBunderTheMouse.rev"; Unfortunately the map does not show pure colors so getting the ranges for each hazard zone is messy. But this utility is useful in exploring the range of colors. Jim ___ 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
AW: How do I get the object under the mouse when mouseRelease?
Thanks Ken,Jacqueline, Dick and Bill, I knew, there are different approaches. I'll test, which one is the best for me Thanks Tiemo > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:use-revolution- > [EMAIL PROTECTED] Im Auftrag von Bill Marriott > Gesendet: Dienstag, 1. Mai 2007 02:30 > An: use-revolution@lists.runrev.com > Betreff: Re: How do I get the object under the mouse when mouseRelease? > > Tiemo, > > It's not quite impossible. > > If you turn on the message watcher, you will see that when you > drag-and-release, the following messages are sent in quick succession: > > - mouseRelease to the original object > - mouseMove to the new object > - mouseLeave to the original object > - mouseEnter to the new object > > Because this order is always the same, you could check for this pattern > and > respond to it. > > > > > I want to realize my own drag and drop handlers with mouseDown, > > > > mouseRelease, etc. On mouseDown I get the underneath lying object > with > > > > mousecontrol. How do I get the name of an object (image) under the > > > > mouse > > > > when releasing it [...]? > > > > Sorry, Tiemo... for right now that's the best we've got (AFAIK). I've > > > lobbied for the mouseControl to not be tied to the original object on > > > mouseDown, but sadly that hasn't happened yet... > > > Wow, that's a pitty, I was sure there must be a pretty easy solution, > but > > if > > even Ken doesn't has it ;-( > > > > ___ > 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: How do I get the object under the mouse when mouseRelease?
Tiemo, It's not quite impossible. If you turn on the message watcher, you will see that when you drag-and-release, the following messages are sent in quick succession: - mouseRelease to the original object - mouseMove to the new object - mouseLeave to the original object - mouseEnter to the new object Because this order is always the same, you could check for this pattern and respond to it. > > > I want to realize my own drag and drop handlers with mouseDown, > > > mouseRelease, etc. On mouseDown I get the underneath lying object with > > > mousecontrol. How do I get the name of an object (image) under the > > > mouse > > > when releasing it [...]? > > Sorry, Tiemo... for right now that's the best we've got (AFAIK). I've > > lobbied for the mouseControl to not be tied to the original object on > > mouseDown, but sadly that hasn't happened yet... > Wow, that's a pitty, I was sure there must be a pretty easy solution, but > if > even Ken doesn't has it ;-( ___ 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: How do I get the object under the mouse when mouseRelease?
On 4/30/07 11:30 AM, "J. Landman Gay" <[EMAIL PROTECTED]> wrote: > If you do have to use your own handlers, then you could scan all the > objects when the mouse goes up: > > on mouseUp > put the mouseloc into tXY > repeat with x = 1 to the number of controls >if tXY is within the rect of control x then > -- do what you need > exit repeat >end if > end repeat > end mouseUp > > But this way can be time-consuming if you have many controls. The > built-in commands and functions are much better. There's another way that's fast even for many controls. Here's a description posted last month: On 3/19/07 3:38 AM, "Dick Kriesel" <[EMAIL PROTECTED]> wrote: > Here's another technique for identifying the object at the mouseLoc. This > technique is different because it works with no repeat loop, no checking the > visible or the rect of any object, no formulas based on the mouseLoc, and no > reference to the mouseControl. > > Create a button named "mouseObject" with the following script: > > --
Re: How do I get the object under the mouse when mouseRelease?
Tiemo Hollmann TB wrote: Hello again, sorry, another newbee question I want to realize my own drag and drop handlers with mouseDown, mouseRelease, etc. On mouseDown I get the underneath lying object with mousecontrol. How do I get the name of an object (image) under the mouse when releasing it, because mousecontrol is still the mouseDown object when releasing? I created a workaround with a repeat loop on mouseRelease to test for every image on my card, if the mouseloc is in the rectangle of image x. But I think there must be a more sophisticated and perfomant way in revolution? Is there a reason you can't use the built-in drag and drop functions? Those will tell you what you want to know. If you do have to use your own handlers, then you could scan all the objects when the mouse goes up: on mouseUp put the mouseloc into tXY repeat with x = 1 to the number of controls if tXY is within the rect of control x then -- do what you need exit repeat end if end repeat end mouseUp But this way can be time-consuming if you have many controls. The built-in commands and functions are much better. -- Jacqueline Landman Gay | [EMAIL PROTECTED] 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
AW: How do I get the object under the mouse when mouseRelease?
Wow, that's a pitty, I was sure there must be a pretty easy solution, but if even Ken doesn't has it ;-( Thanks anyway, don't have to bother any more for it :) Tiemo > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:use-revolution- > [EMAIL PROTECTED] Im Auftrag von Ken Ray > Gesendet: Montag, 30. April 2007 18:31 > An: How to use Revolution > Betreff: Re: How do I get the object under the mouse when mouseRelease? > > On Mon, 30 Apr 2007 09:53:26 +0200, Tiemo Hollmann TB wrote: > > > Hello again, > > > > sorry, another newbee question > > > > I want to realize my own drag and drop handlers with mouseDown, > > mouseRelease, etc. On mouseDown I get the underneath lying object with > > mousecontrol. How do I get the name of an object (image) under the mouse > > when releasing it, because mousecontrol is still the mouseDown object > when > > releasing? I created a workaround with a repeat loop on mouseRelease to > test > > for every image on my card, if the mouseloc is in the rectangle of image > x. > > But I think there must be a more sophisticated and perfomant way in > > revolution? > > Sorry, Tiemo... for right now that's the best we've got (AFAIK). I've > lobbied for the mouseControl to not be tied to the original object on > mouseDown, but sadly that hasn't happened yet... > > Ken Ray > Sons of Thunder Software, Inc. > Email: [EMAIL PROTECTED] > Web Site: http://www.sonsothunder.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: How do I get the object under the mouse when mouseRelease?
On Mon, 30 Apr 2007 09:53:26 +0200, Tiemo Hollmann TB wrote: > Hello again, > > sorry, another newbee question > > I want to realize my own drag and drop handlers with mouseDown, > mouseRelease, etc. On mouseDown I get the underneath lying object with > mousecontrol. How do I get the name of an object (image) under the mouse > when releasing it, because mousecontrol is still the mouseDown object when > releasing? I created a workaround with a repeat loop on mouseRelease to test > for every image on my card, if the mouseloc is in the rectangle of image x. > But I think there must be a more sophisticated and perfomant way in > revolution? Sorry, Tiemo... for right now that's the best we've got (AFAIK). I've lobbied for the mouseControl to not be tied to the original object on mouseDown, but sadly that hasn't happened yet... Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.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
How do I get the object under the mouse when mouseRelease?
Hello again, sorry, another newbee question I want to realize my own drag and drop handlers with mouseDown, mouseRelease, etc. On mouseDown I get the underneath lying object with mousecontrol. How do I get the name of an object (image) under the mouse when releasing it, because mousecontrol is still the mouseDown object when releasing? I created a workaround with a repeat loop on mouseRelease to test for every image on my card, if the mouseloc is in the rectangle of image x. But I think there must be a more sophisticated and perfomant way in revolution? Thanks for any hint Tiemo ___ 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: How do I specify the mouse button (mousebuttonNumber) in a script?
On Apr 17, 2006, at 11:44 PM, Dr. Robert E. Ball wrote: To Ken, Devin, and Jacqueline Landman Gay -- thank you very much for helping me out here. After you showed me how to correctly script the mouse button, I still couldn't get the script to compile. I thought there was a bug in Rev 2.7. Then I discovered another error (mine, not Rev's). I had one too many "end mouseUp" statements in the (long) script. Amateur developers like me owe you and the others on this use list a great deal of gratitude for helping us find our mistakes. We appreciate your patience. Bob Ball Bob, Glad to help. Like I always tell my students. The 'expert' is the one who made the mistake first. ;-) Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ 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: How do I specify the mouse button (mousebuttonNumber) in a script?
To Ken, Devin, and Jacqueline Landman Gay -- thank you very much for helping me out here. After you showed me how to correctly script the mouse button, I still couldn't get the script to compile. I thought there was a bug in Rev 2.7. Then I discovered another error (mine, not Rev's). I had one too many "end mouseUp" statements in the (long) script. Amateur developers like me owe you and the others on this use list a great deal of gratitude for helping us find our mistakes. We appreciate your patience. Bob Ball On 4/17/06 4:13 PM, "Dr. Robert E. Ball" <[EMAIL PROTECTED]> wrote: >> On 4/17/06 5:18 PM, "Dr. Robert E. Ball" <[EMAIL PROTECTED]> wrote: >> >>> I want a mouseUp handler based upon button 3. In the printed Transcript >>> Language Reference and the dictionary the mouseButtonNumber is indicated by >>> "3" (Option + *). I have tried that in the form >>> >>> On mouseUp 3 >>> >>> but that doesn't work. How can I indicate button 3 on the mouseUp handler? >> >> On 4/17/06 3:26 PM, "Ken Ray" <[EMAIL PROTECTED]> wrote: >> That's strange that it would say that, here's how you do it: >> >> on mouseUp pBtnNumber >> if pBtnNumber = 3 then >> -- right-click, do what you want >> end if >> end mouseUp >> >> >> Ken Ray >> Sons of Thunder Software >> Web site: http://www.sonsothunder.com/ >> Email: [EMAIL PROTECTED] >> >> ___ > > Ken -- I tried your suggestion and it didn't work. ??? Here is what I have > > on mouseUp pBtnNumber > if pBtnNumber = 3 then > put the vScroll of field "Instructions field" into scrolledHere > set the vScroll of field "Instructions field" to scrolledHere - 475 > end if > end mouseUp > > Here is the error I get > >compiling at 4:06:57 PM > TypeHandler: error in command > ObjectInstructions field > Lineon mouseUp pBtnNumber > Hinton > > ? I have the latest version of 2.7 on a Mac using OS 10.4.6 > > Bob > > > ___ > 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 > -- Robert E. Ball, PhD Distinguished Professor, Emeritus Department of Aeronautics and Astronautics Naval Postgraduate School Monterey, California ___ 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: How do I specify the mouse button (mousebuttonNumber) in a script?
Dr. Robert E. Ball wrote: on mouseUp pBtnNumber if pBtnNumber = 3 then put the vScroll of field "Instructions field" into scrolledHere set the vScroll of field "Instructions field" to scrolledHere - 475 end if end mouseUp Here is the error I get compiling at 4:06:57 PM TypeHandler: error in command ObjectInstructions field Lineon mouseUp pBtnNumber Hinton ? I have the latest version of 2.7 on a Mac using OS 10.4.6 It works okay here, on all recent versions of Rev I've got. Something else must be going on; maybe something in a backscript or a plugin? -- Jacqueline Landman Gay | [EMAIL PROTECTED] 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: How do I specify the mouse button (mousebuttonNumber) in a script?
What does the Message Watcher show when you try to activate the script? Sometimes the messaging will be a bit different than you think, which may be the real bug and thus you may be able to do a work-around. Jim Ault Las Vegas On 4/17/06 4:25 PM, "Dr. Robert E. Ball" <[EMAIL PROTECTED]> wrote: >>> On 4/17/06 5:18 PM, "Dr. Robert E. Ball" <[EMAIL PROTECTED]> wrote: >>> I want a mouseUp handler based upon button 3. In the printed Transcript Language Reference and the dictionary the mouseButtonNumber is indicated by "3" (Option + *). I have tried that in the form On mouseUp 3 but that doesn't work. How can I indicate button 3 on the mouseUp handler? >>> >>> On 4/17/06 3:26 PM, "Ken Ray" <[EMAIL PROTECTED]> wrote: >>> That's strange that it would say that, here's how you do it: >>> >>> on mouseUp pBtnNumber >>> if pBtnNumber = 3 then >>> -- right-click, do what you want >>> end if >>> end mouseUp >>> >>> >>> Ken Ray >> >> Ken -- I tried your suggestion and it didn't work. ??? Here is what I have >> >> on mouseUp pBtnNumber >> if pBtnNumber = 3 then >> put the vScroll of field "Instructions field" into scrolledHere >> set the vScroll of field "Instructions field" to scrolledHere - 475 >> end if >> end mouseUp >> >> Here is the error I get >> >>compiling at 4:06:57 PM >> TypeHandler: error in command >> ObjectInstructions field >> Lineon mouseUp pBtnNumber >> Hinton >> >> ? I have the latest version of 2.7 on a Mac using OS 10.4.6 >> >> Bob > - > > Ken -- I tried my script in version 2.5.1 and it worked. It appears there is > a bug in 2.7. How do we let them know this may be a bug? > > Bob ___ 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: How do I specify the mouse button (mousebuttonNumber) in a script?
On 4/17/06 4:13 PM, "Dr. Robert E. Ball" <[EMAIL PROTECTED]> wrote: >> On 4/17/06 5:18 PM, "Dr. Robert E. Ball" <[EMAIL PROTECTED]> wrote: >> >>> I want a mouseUp handler based upon button 3. In the printed Transcript >>> Language Reference and the dictionary the mouseButtonNumber is indicated by >>> "3" (Option + *). I have tried that in the form >>> >>> On mouseUp 3 >>> >>> but that doesn't work. How can I indicate button 3 on the mouseUp handler? >> >> On 4/17/06 3:26 PM, "Ken Ray" <[EMAIL PROTECTED]> wrote: >> That's strange that it would say that, here's how you do it: >> >> on mouseUp pBtnNumber >> if pBtnNumber = 3 then >> -- right-click, do what you want >> end if >> end mouseUp >> >> >> Ken Ray >> Sons of Thunder Software >> Web site: http://www.sonsothunder.com/ >> Email: [EMAIL PROTECTED] >> >> ___ > > Ken -- I tried your suggestion and it didn't work. ??? Here is what I have > > on mouseUp pBtnNumber > if pBtnNumber = 3 then > put the vScroll of field "Instructions field" into scrolledHere > set the vScroll of field "Instructions field" to scrolledHere - 475 > end if > end mouseUp > > Here is the error I get > >compiling at 4:06:57 PM > TypeHandler: error in command > ObjectInstructions field > Lineon mouseUp pBtnNumber > Hinton > > ? I have the latest version of 2.7 on a Mac using OS 10.4.6 > > Bob > > - Ken -- I tried my script in version 2.5.1 and it worked. It appears there is a bug in 2.7. How do we let them know this may be a bug? Bob ___ 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: How do I specify the mouse button (mousebuttonNumber) in a script?
> On 4/17/06 5:18 PM, "Dr. Robert E. Ball" <[EMAIL PROTECTED]> wrote: > >> I want a mouseUp handler based upon button 3. In the printed Transcript >> Language Reference and the dictionary the mouseButtonNumber is indicated by >> "3" (Option + *). I have tried that in the form >> >> On mouseUp 3 >> >> but that doesn't work. How can I indicate button 3 on the mouseUp handler? > > On 4/17/06 3:26 PM, "Ken Ray" <[EMAIL PROTECTED]> wrote: > That's strange that it would say that, here's how you do it: > > on mouseUp pBtnNumber > if pBtnNumber = 3 then > -- right-click, do what you want > end if > end mouseUp > > > Ken Ray > Sons of Thunder Software > Web site: http://www.sonsothunder.com/ > Email: [EMAIL PROTECTED] > > ___ Ken -- I tried your suggestion and it didn't work. ??? Here is what I have on mouseUp pBtnNumber if pBtnNumber = 3 then put the vScroll of field "Instructions field" into scrolledHere set the vScroll of field "Instructions field" to scrolledHere - 475 end if end mouseUp Here is the error I get compiling at 4:06:57 PM TypeHandler: error in command ObjectInstructions field Lineon mouseUp pBtnNumber Hinton ? I have the latest version of 2.7 on a Mac using OS 10.4.6 Bob ___ 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: How do I specify the mouse button (mousebuttonNumber) in a script?
Robert, Do it like this: on mouseUp whichButton if whichButton is 3 then -- do stuff for right mouse button here end if end mouseUp HTH Devin On Apr 17, 2006, at 4:18 PM, Dr. Robert E. Ball wrote: I want a mouseUp handler based upon button 3. In the printed Transcript Language Reference and the dictionary the mouseButtonNumber is indicated by "•3" (Option + *). I have tried that in the form On mouseUp •3 but that doesn't work. How can I indicate button 3 on the mouseUp handler? ___ 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 Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ 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: How do I specify the mouse button (mousebuttonNumber) in a script?
On 4/17/06 5:18 PM, "Dr. Robert E. Ball" <[EMAIL PROTECTED]> wrote: > I want a mouseUp handler based upon button 3. In the printed Transcript > Language Reference and the dictionary the mouseButtonNumber is indicated by > "3" (Option + *). I have tried that in the form > > On mouseUp 3 > > but that doesn't work. How can I indicate button 3 on the mouseUp handler? That's strange that it would say that, here's how you do it: on mouseUp pBtnNumber if pBtnNumber = 3 then -- right-click, do what you want end if end mouseUp Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ 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
How do I specify the mouse button (mousebuttonNumber) in a script?
I want a mouseUp handler based upon button 3. In the printed Transcript Language Reference and the dictionary the mouseButtonNumber is indicated by "3" (Option + *). I have tried that in the form On mouseUp 3 but that doesn't work. How can I indicate button 3 on the mouseUp handler? ___ 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: Moving Stacks or the Mouse
Thanks for this suggestion, Jim. I'll have a look at it. I'm sure that I will at least learn a lot as I always do from your stacks. Cheers, Roger On Jun 9, 2005, at 6:33 AM, [EMAIL PROTECTED] wrote: Roger, This isn't what you want but you might find it an alternative. You would have to modify it to set the pointer to substacks--I think. See Pointer Tool at: http://home.infostations.net/jhurley/ Use control click to download. This utility automates the process of establishing links between words in the text and the associated point of reference. Passing the mouse over the linked words show a hand pointing to the selected object. I use it in my tutorials. Jim ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Moving Stacks or the Mouse
Tom, Thanks very much for this suggestion . . . I'll work with this. Of course my task is complicated by the fact that I am going from one stack to another, but I enjoy the challenge. Thanks again, Roger On Jun 8, 2005, at 5:07 PM, [EMAIL PROTECTED] wrote: You could capture the start points x,y and then you must know your end points u,v and figure the stepping distance between the two. So if you had x= 200 and u = 340 and you wanted a step of 10 then you could repeat with a = x to u step 10 or (200, 210, 220, 230, 240... 320,330,340) Or written like this: (not tested yet) repeat with a = x to u step 10 put a & cr after myLocsOne end repeat repeat with b = y to v step 10 put b & cr after myLocsTwo end repeat Then put the two lists together. repeat with h = 1 to the number of lines in myLocsOne put (line h of myLocsOne) & "," & (line h of myLocsTwo) into line h of myLocs end repeat repeat with x = 1 to the number of lines in myLocs set the screenMouseLoc to (line x of myLocs) wait 500 milliseconds -- adjust this to a speed that feels good to you end repeat Tom P.S. you can also do this kind of thing with the points of a polygon or line etc. and record or as I have done with the localLoc of buttons HTHs On Jun 8, 2005, at 7:30 PM, Roger Guay wrote: ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Moving Stacks or the Mouse
Message: 6 Date: Wed, 8 Jun 2005 16:30:12 -0700 From: Roger Guay <[EMAIL PROTECTED]> Subject: Re: Moving Stacks or the Mouse To: use-revolution@lists.runrev.com Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Thom, Thank you for this suggestion. First let me explain that I am building an animated tutorial and otherwise agree with you on the inadvisability of moving the mouse for the user. However my tutorial I will require the "animation" of the mouse to occur over many different paths across open stacks. How would I generate list of points for many paths that would result in a smooth animation of the mouse movement? You can see why I also thought of moving a tiny stack whose windowShape is a hand or pointer from the location of a point of one stack to the location of a point in another stack. This I have done, but I still wonder if there isn't an easier way?? Thanks and cheers, Roger Ps. I'm sorry I dropped the Subject Heading last go-around. Roger, This isn't what you want but you might find it an alternative. You would have to modify it to set the pointer to substacks--I think. See Pointer Tool at: http://home.infostations.net/jhurley/ Use control click to download. This utility automates the process of establishing links between words in the text and the associated point of reference. Passing the mouse over the linked words show a hand pointing to the selected object. I use it in my tutorials. Jim ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Moving Stacks or the Mouse
Roger, You could capture the start points x,y and then you must know your end points u,v and figure the stepping distance between the two. So if you had x= 200 and u = 340 and you wanted a step of 10 then you could repeat with a = x to u step 10 or (200, 210, 220, 230, 240... 320,330,340) Or written like this: (not tested yet) repeat with a = x to u step 10 put a & cr after myLocsOne end repeat repeat with b = y to v step 10 put b & cr after myLocsTwo end repeat Then put the two lists together. repeat with h = 1 to the number of lines in myLocsOne put (line h of myLocsOne) & "," & (line h of myLocsTwo) into line h of myLocs end repeat repeat with x = 1 to the number of lines in myLocs set the screenMouseLoc to (line x of myLocs) wait 500 milliseconds -- adjust this to a speed that feels good to you end repeat Tom P.S. you can also do this kind of thing with the points of a polygon or line etc. and record or as I have done with the localLoc of buttons HTHs On Jun 8, 2005, at 7:30 PM, Roger Guay wrote: Thom, Thank you for this suggestion. First let me explain that I am building an animated tutorial and otherwise agree with you on the inadvisability of moving the mouse for the user. However my tutorial I will require the "animation" of the mouse to occur over many different paths across open stacks. How would I generate list of points for many paths that would result in a smooth animation of the mouse movement? You can see why I also thought of moving a tiny stack whose windowShape is a hand or pointer from the location of a point of one stack to the location of a point in another stack. This I have done, but I still wonder if there isn't an easier way?? Thanks and cheers, Roger Ps. I'm sorry I dropped the Subject Heading last go-around. On Jun 8, 2005, at 3:26 PM, [EMAIL PROTECTED] wrote: You might want to have a list of the coordinates in a variable and then go through each line in a loop with: on mouseUp put "252,348" & cr & "267,323" & cr & "274,318" & cr & "285,275" & cr & "292,248" into myLocs -- for a sample --or adjust this to your needs --put globalLoc(the loc of group h) & cr after myLocs repeat with x = 1 to the number of lines in myLocs set the screenMouseLoc to (line x of myLocs) wait 500 milliseconds end repeat end mouseUp thereby making the mouse move to the points in the list. IMPORTANT this is not normal HIG behavior and users do not like it when the mouse is moved for them. It does have it's good points and I use it in animated tutorials. I set points On Jun 8, 2005, at 6:12 PM, Roger Guay wrote: Hi Eric, Not quite what I want. I want to simulate (script) the MOVEMENT of the mouse from one location to another across stacks. I don't want to just set the mouse location but rather move it uniformly from one location to another. Am I still missing something obvious?? Cheers, Roger On Jun 8, 2005, at 1:41 PM, [EMAIL PROTECTED] wrote: What you need is: set the screenMouseLoc to tH,tV Check the screenMouseLoc property in the docs :-) Le 8 juin 05 à 23:08, Roger Guay a écrit : Thanks, Xavier. I am aware of the ability to drag a tool from one point to another, But drag mouse does not work! And of course, this is what I really want . . . I want to drag the mouse from one point to another across open stacks. Since I could not figure out how to do this specifically, I then decided to move a tiny window with a "hand" shape from a point within one stack to a point in another stack. To do this, I have successfully worked out the required geometry. But, I still wonder if there is a way to move the mouse itself?? Am I missing something obvious?? Best regards from Paris, Eric Chatonet. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Moving Stacks or the Mouse
Thom, Thank you for this suggestion. First let me explain that I am building an animated tutorial and otherwise agree with you on the inadvisability of moving the mouse for the user. However my tutorial I will require the "animation" of the mouse to occur over many different paths across open stacks. How would I generate list of points for many paths that would result in a smooth animation of the mouse movement? You can see why I also thought of moving a tiny stack whose windowShape is a hand or pointer from the location of a point of one stack to the location of a point in another stack. This I have done, but I still wonder if there isn't an easier way?? Thanks and cheers, Roger Ps. I'm sorry I dropped the Subject Heading last go-around. On Jun 8, 2005, at 3:26 PM, [EMAIL PROTECTED] wrote: You might want to have a list of the coordinates in a variable and then go through each line in a loop with: on mouseUp put "252,348" & cr & "267,323" & cr & "274,318" & cr & "285,275" & cr & "292,248" into myLocs -- for a sample --or adjust this to your needs --put globalLoc(the loc of group h) & cr after myLocs repeat with x = 1 to the number of lines in myLocs set the screenMouseLoc to (line x of myLocs) wait 500 milliseconds end repeat end mouseUp thereby making the mouse move to the points in the list. IMPORTANT this is not normal HIG behavior and users do not like it when the mouse is moved for them. It does have it's good points and I use it in animated tutorials. I set points On Jun 8, 2005, at 6:12 PM, Roger Guay wrote: Hi Eric, Not quite what I want. I want to simulate (script) the MOVEMENT of the mouse from one location to another across stacks. I don't want to just set the mouse location but rather move it uniformly from one location to another. Am I still missing something obvious?? Cheers, Roger On Jun 8, 2005, at 1:41 PM, [EMAIL PROTECTED] wrote: What you need is: set the screenMouseLoc to tH,tV Check the screenMouseLoc property in the docs :-) Le 8 juin 05 à 23:08, Roger Guay a écrit : Thanks, Xavier. I am aware of the ability to drag a tool from one point to another, But drag mouse does not work! And of course, this is what I really want . . . I want to drag the mouse from one point to another across open stacks. Since I could not figure out how to do this specifically, I then decided to move a tiny window with a "hand" shape from a point within one stack to a point in another stack. To do this, I have successfully worked out the required geometry. But, I still wonder if there is a way to move the mouse itself?? Am I missing something obvious?? Best regards from Paris, Eric Chatonet. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Detecting the stack that have the mouse pointer
On 4/4/05 12:06 PM, Alejandro Tejada wrote: Hi Developers, I have a mousemove handler in a frontscript. This mousemove handler puts the X,Y position in the message box and i want to know the mode of the stack over which the mouse pointer is. Toplevel stacks have a mode of 1 palettes, modeless stacks and modal stack have different numbers. for example: i expect that when i move the mouse over a stack, appears in the message box: 35,79 stack "mytoplevelstack" mode 1 or 10,10 stack "myCustomstack" mode 2 How could i do this without clicking on the stack? Will the "mousestack" property help? "Get the mode of the mousestack". -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Detecting the stack that have the mouse pointer
Ah! mouseStack :-) Thanks a lot Scott and Ken for your answers! My oversight of the mouseStack only means that i've not used this function before. But it's very useful for recreating an interface in RR/MC. There is no doubt. I have to practice more frecuently this area of development, (along with sockets, cgi, binary data reading and writing, game programming, databases, customproperties sets, etc...) al Visit my site: http://www.geocities.com/capellan2000/ __ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. http://www.advision.webevents.yahoo.com/emoticontest ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Detecting the stack that have the mouse pointer
Recently, Ken Ray wrote: >> on checkMode >> put the openStacks into tList >> repeat for each line L in tList >> if within(stack L,the screenMouseLoc) then put the mode of stack L >> end repeat >> send "checkMode" to me in 50 millisecs >> end checkMode > > Can't you just say: > > put the mode of the mouseStack Even better - thanks Ken. :-) Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Detecting the stack that have the mouse pointer
On 4/4/05 12:23 PM, "Scott Rossi" <[EMAIL PROTECTED]> wrote: > on checkMode > put the openStacks into tList > repeat for each line L in tList > if within(stack L,the screenMouseLoc) then put the mode of stack L > end repeat > send "checkMode" to me in 50 millisecs > end checkMode Can't you just say: put the mode of the mouseStack ?? I tested it this way - put this script into a button: on mouseUp CheckIt end mouseUp on CheckIt if the commandKey is down then exit CheckIt if the mouseStack <> "" then put the short name of the mouseStack && (the mode of the mouseStack) end if send "CheckIt" to me in 50 milliseconds end CheckIt Click the button, and start moving over different stacks - you should see it change accordingly. Hold down the Command key to make it stop. HTH, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Detecting the stack that have the mouse pointer
Recently, Alejandro Tejada wrote: > I have a mousemove handler in > a frontscript. > This mousemove handler puts the X,Y > position in the message box and i want > to know the mode of the stack over which > the mouse pointer is. > Toplevel stacks have a mode of 1 > palettes, modeless stacks and modal stack > have different numbers. > > for example: > > i expect that when i move the mouse over > a stack, appears in the message box: > > 35,79 stack "mytoplevelstack" mode 1 > > or > > 10,10 stack "myCustomstack" mode 2 > > How could i do this without clicking on > the stack? One way is to replace your mouseMove handler with a looping script that checks every line in the openStacks. Something like: on checkMode put the openStacks into tList repeat for each line L in tList if within(stack L,the screenMouseLoc) then put the mode of stack L end repeat send "checkMode" to me in 50 millisecs end checkMode You also might be able to limit the check to a few stacks. Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Detecting the stack that have the mouse pointer
Hi Developers, I have a mousemove handler in a frontscript. This mousemove handler puts the X,Y position in the message box and i want to know the mode of the stack over which the mouse pointer is. Toplevel stacks have a mode of 1 palettes, modeless stacks and modal stack have different numbers. for example: i expect that when i move the mouse over a stack, appears in the message box: 35,79 stack "mytoplevelstack" mode 1 or 10,10 stack "myCustomstack" mode 2 How could i do this without clicking on the stack? Thanks in advance. al Visit my site: http://www.geocities.com/capellan2000/ __ Do you Yahoo!? Yahoo! Personals - Better first dates. More second dates. http://personals.yahoo.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse
Hi Lince, What will be the consequence of polling the mouse in Revolution. repeat until the mouse is up set the loc of btn "dragBtn" to the mouseLoc end repeat in this case the following would be more effective: Script of btn "dragBtn" on mousedown grab me end mousedown No damnation and no purgatory ;-) Thanking you, Lince M Lawrence FOCAL IMAGE (INDIA) PVT. LTD. [ mailto:[EMAIL PROTECTED] ] Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse
Hi Lince, While this routine may eat a few more CPU cycles than usual, it poses absolutely no problems. Since RunRev doesn't thread anyway, there no impact on would be rev-background running applications. CPU hogging is only 20% more than resizing or moving any window in windows (out of runrev). Moving or resizing a stack in rev will equally eat as much if not more CPU! It's also much easier to implement, edit and debug IMOHO. The mousedown event is usually pretty short anyway (depending on the application naturally.) My 2 cents Xavier On 01.12.2004 09:40:37 use-revolution-bounces wrote: >Hi Lince, > >> What will be the consequence of polling the mouse in Revolution. > >Eternal damnation and a special x-talk purgatory! :-D > >> repeat until the mouse is up >> set the loc of btn "dragBtn" to the mouseLoc >> end repeat >> >> Certain people discourage use of this in MetaCard and Revolution? > >Jan (or his current clone on duty ;-) is right. >It will eat CPU time unecessarily. > >And this is a very good read indeed: >http://www.hyperactivesw.com/polling.html > >> Thanking you, >> >> Lince M Lawrence >> FOCAL IMAGE (INDIA) PVT. LTD. >> [ mailto:[EMAIL PROTECTED] ] > >Regards > >Klaus Major >[EMAIL PROTECTED] >http://www.major-k.de > >___ >use-revolution mailing list >[EMAIL PROTECTED] >http://lists.runrev.com/mailman/listinfo/use-revolution - Visit us at http://www.clearstream.com IMPORTANT MESSAGEInternet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.END OF DISCLAIMER ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse
Hi Lince, What will be the consequence of polling the mouse in Revolution. Eternal damnation and a special x-talk purgatory! :-D repeat until the mouse is up set the loc of btn "dragBtn" to the mouseLoc end repeat Certain people discourage use of this in MetaCard and Revolution? Jan (or his current clone on duty ;-) is right. It will eat CPU time unecessarily. And this is a very good read indeed: http://www.hyperactivesw.com/polling.html Thanking you, Lince M Lawrence FOCAL IMAGE (INDIA) PVT. LTD. [ mailto:[EMAIL PROTECTED] ] Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse
--- Lince M Lawrence <[EMAIL PROTECTED]> wrote: > What will be the consequence of polling the mouse in > Revolution. > > repeat until the mouse is up > set the loc of btn "dragBtn" to the mouseLoc > end repeat > > Certain people discourage use of this in MetaCard > and Revolution? > > Thanking you, > > Lince M Lawrence > Hi Lince, The main problem with the above construct is that the engine needs to constantly check if the mouse state happened to change. All you'll ever want to know about mouse polling, including how to achieve the same effect withut hogging the CPU, can be found at : <http://www.hyperactivesw.com/polling.html> Hope this helped, Jan Schenkel. = "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Polling the mouse
What will be the consequence of polling the mouse in Revolution. repeat until the mouse is up set the loc of btn "dragBtn" to the mouseLoc end repeat Certain people discourage use of this in MetaCard and Revolution? Thanking you, Lince M Lawrence FOCAL IMAGE (INDIA) PVT. LTD. [ mailto:[EMAIL PROTECTED] ] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
recording the mouse movements while using a paint tool
It is possible to log the mouse actions in the paint area. For example, a handler like this: on mouseMove global wbTracker repeat while the mouse is down put "," & the mouseLoc after wbTracker end repeat end mouseMove will record something like this for the mouse movements: 51,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,4 86,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,3 51,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,4 86,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,3 51,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351.. .etc. but this needs to be tweaked because the drawn line appears after the mouse is up, rather than during the operation. doug ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Setting the Mouse Button (and Printing Weirdness)
revShowPrintDialog doesn't actually do anything itself, it just sets things up so that revPrintField knows what to do. I think that you need to explicitly use "revShowPrintDialog false, false" to turn off the show dialogs setting after it has been shown once. Cheers, Sarah On Thursday, October 30, 2003, at 05:52 pm, Gardner, Joseph A wrote: Folks, I'm having a weird problem with setting the mouse button in a print handler. I'd like to have a regular mouse click (Button 1) print the contents of a field and a control- or right-click (Button 3) display the appropriate print dialogs before printing. However, after control-clicking the button once, subsequent regular clicks _keep_ producing the print dialogs even though the answer shows that theButton is 1 (plain click). Control-clicking works as expected, why does the "if theButton is 3" loop keep kicking in when theButton is clearly 1? Here's the handler I'm trying to get under control: on mouseUp theButton answer theButton if field "FileContents" is empty then exit to top if theButton is 3 then -- Control-click, right-click revShowPrintDialog true,true end if revPrintField ("field" && quote & "FileContents" & quote) put 1 into theButton end mouseUp Working in OSX 10.2 on a G4 expecting to port to Windows eventually. Thanks for any advice! joe. p.s. Any idea why revPrintField would print the contents of the field on a light gray background when printing to a laser printer? It's very strange. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Setting the Mouse Button (and Printing Weirdness)
Folks, I'm having a weird problem with setting the mouse button in a print handler. I'd like to have a regular mouse click (Button 1) print the contents of a field and a control- or right-click (Button 3) display the appropriate print dialogs before printing. However, after control-clicking the button once, subsequent regular clicks _keep_ producing the print dialogs even though the answer shows that theButton is 1 (plain click). Control-clicking works as expected, why does the "if theButton is 3" loop keep kicking in when theButton is clearly 1? Here's the handler I'm trying to get under control: on mouseUp theButton answer theButton if field "FileContents" is empty then exit to top if theButton is 3 then -- Control-click, right-click revShowPrintDialog true,true end if revPrintField ("field" && quote & "FileContents" & quote) put 1 into theButton end mouseUp Working in OSX 10.2 on a G4 expecting to port to Windows eventually. Thanks for any advice! joe. p.s. Any idea why revPrintField would print the contents of the field on a light gray background when printing to a laser printer? It's very strange. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scrolling a field - using the mouse wheel to scroll a field
At 9:42 AM -0700 8/10/03, Michael Robinson wrote: >Would someone point me in the right direction for using the mouse wheel >to scroll a field? On OS X, Unix, and Windows systems, scrolling the mouse wheel sends a rawKeyDown message you can intercept - see "How to respond to scroll wheel actions" in the docs for more. (Mouse wheel actions aren't supported on Mac OS pre-10.) -- Jeanne A. E. DeVoto ~ [EMAIL PROTECTED] Runtime Revolution Limited - Software at the Speed of Thought http://www.runrev.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Scrolling a field - using the mouse wheel to scroll a field
Michael, It should just happen automatically (does for me in Win XP and Mac OS X in MC 2.5). If not, you can trap the rawKeyDown for the field and get the numeric value for the scrollwheel. Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Michael Robinson > Sent: Sunday, August 10, 2003 11:42 AM > To: Revolution Revolution > Subject: Scrolling a field - using the mouse wheel to scroll a field > > > Would someone point me in the right direction for using the > mouse wheel > to scroll a field? > > ___ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-> revolution > ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Scrolling a field - using the mouse wheel to scroll a field
Would someone point me in the right direction for using the mouse wheel to scroll a field? ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: The meaning of "the mouse" in 2.0
On Wednesday, July 2, 2003, at 03:25 PM, Dar Scott wrote: On my OS X I can use CPU Monitor. I have two processors so it shows two meters. Ooooh-ooh-ooh! And with Process Viewer I can see the numbers! Revolution ambient usage is about 1 to 7 %, with the tight loop that jumps up to 95 to 110 %. With a .1 second delay there is nothing I can see above what it is just before or just after. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: The meaning of "the mouse" in 2.0
On Wednesday, July 2, 2003, at 02:15 PM, Jim Hurley wrote: I am curious about this change in the meaning of "the mouse" in Run Rev 2.0 From 'What's New.txt' that came with my download: - The "mouse" function now reports the state of the mouse button at the moment the function is called. Formerly, this function reported whether the mouse button had been pressed since the current handler started. (In general, it is recommended to handle the "mouseDown", "mouseRelease", and "mouseUp" messages rather than check the state of the "mouse" in a handler.) In the past the following staple from HC: on mouseDown repeat while the mouse is down set the loc of me to the mouseLoc end repeat end mouseDown was not only frowned upon because it exhausted the CPU, but, at least on the Mac, there was an intermittent bug in the engine which caused the mouse to stick to the button even after a MouseUp. Is the bug gone? Whether it be bug or not, the behavior is not the same. Is there some way in which we can experiment with Mouse down, mouseClick etc. to see how a handler consumes CPU time using the ability of the debugger in RR 2.0 to display messages? For example I was curious to see how mouseclick compared with mouse is down. CPU Monitor On my OS X I can use CPU Monitor. I have two processors so it shows two meters. With the above function, usage jumps so that the total of the two meters is 100% of one processor. Either one is max'd and the other is minimal or both are about half way. However, this loop is not the same: on mouseDown repeat while the mouse is down set the loc of me to the mouseLoc wait 20 milliseconds end repeat end mouseDown This usually barely shows on either meter but will sometimes peak at 50% of one processor. Changing the delay to .1 seconds makes the handler not show up at all on the meters. The drag is a little jerky at .1 s, but is quite acceptable on my computer. I think there is a lesson here. Maybe it is the #3 missing from my list. 3. Use wait in tight polling loops. If you just have to use a loop. This might apply to other loops such as a read from a serial port. If you just have to use a loop. Leave out the wait and you consume too much CPU. If you don't have this utility you can build a standalone that, uh, does something clever. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: the mouse
on 3/9/02 4:51 PM, Dar Scott at [EMAIL PROTECTED] wrote: > > On Friday, March 8, 2002, at 02:13 PM, Ken Norris (dialup) wrote: > >>> on mouseUp >>> repeat for 60 times >>> put the mouse into field "mouseValue" >>> --put the mouseClick into field "mouseClickValue" >>> wait for 500 milliseconds >>> end repeat >>> end mouseUp >>> >>> During this 30 second test, when the mouse button is pressed the >>> value of the field "mouseValue" changes to "down". However, when >>> it is released, it does not change to "up". >> -- >> How can it? You have locked the first value into the loop until it >> quits. > > Could you clarify what you mean by this? -- on mouseUp -- sends the "up" message -once- to the object whenever the -- button is released, and takes priority for the object repeat 60 times -- begins a 60 cycle loop put the mouse into field "mouseValue" -- puts the very next state -- ('down', of course) of the mouse it catches in the loop into the -- field "mouseValue". -- put the mouseClick into field "mouseClickValue" -- commented line -- does nothing -- BUT, if you UNcomment this line it will put the -- up state, which is the last half of a mouseClick event message, -- into the field "mouseClickValue", but probably also sends it -- (mouseUp) to the object again wait 500 milliseconds -- stops _all_ messages for 500 -- milliseconds end repeat end mouseUp You are trying to catch two different mouse messages in a mouse handler. You're lucky it's not stalling out or giving you an error. Best regards, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: the mouse
on 3/8/02 12:33 PM, Dar Scott at [EMAIL PROTECTED] wrote: > on mouseUp > repeat for 60 times > put the mouse into field "mouseValue" > --put the mouseClick into field "mouseClickValue" > wait for 500 milliseconds > end repeat > end mouseUp > > During this 30 second test, when the mouse button is pressed the > value of the field "mouseValue" changes to "down". However, when > it is released, it does not change to "up". -- How can it? You have locked the first value into the loop until it quits. Best regards, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
the mouse
(I'm new to rev and new to this list. I downloaded rev a few days ago and my son immediately found that "the mouse" does not work as described in the documentation. I wisked off a bug report. And just now discovered that it has been a topic of discussion on use-revolution; this should be a lesson to me.) I, too, think the documentation says that "the mouse" returns the state of the mouse at the call. This opinion is not informed by heritage. My opinion does not match the behavior of "the mouse". Consider this script (which does not beep)... on mouseUp repeat for 60 times put the mouse into field "mouseValue" --put the mouseClick into field "mouseClickValue" wait for 500 milliseconds end repeat end mouseUp During this 30 second test, when the mouse button is pressed the value of the field "mouseValue" changes to "down". However, when it is released, it does not change to "up". I think this is not the correct behavior. If it isn't, I have what might be a temporary workaround. If it is, then "the mouseClick" interferes and thus there still is a bug. (I also think "the mouseClick" has a problem, but it is probably a documentation problem.) If the "--" is removed for the commented line, the function "the mouse" works as I expected. (Or similar; my testing is light.) If "the mouse" is to be fixed eventually, then one can make a temporary function with the workaround. None of this is comment on whether the above handler represents good rev practice or style. Perhaps the wait should include "with messages". Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
The mouse is down
> >Scott Raney writes: > >> despite having seen statements from various people about the >> unreliability of the mouse function, we still *don't* have a >> reproducible example where it returns the wrong value. If >> it's as common as some people seem to think it is, it should >> be possible to come up with such an example and send in a bug >> report so that it can be fixed. Richard Gaskin replies: >We're working on it. I haven't been able to recipe-ize it yet, but I can >assure you I get enough reports from my testers, and have seen it often >enough myself, that I know it's real. I can confirm this myself. I used to use the following old standby to allow the user to move a button around the screen: on mouseDown repeat while the mouse is down set the loc of me to the mosueLoc end repeat end mouseDown Sooner or later the button will stick to the mouse like white on mice--I mean rice. It is sporadic. I did the follow experiment three times. I click down on the button, drag the button across the screen and released. I did this 56 times before they stuck together. I then did it then 4 times before they stuck. I then did it 76 times before they stuck. At this point the experiment lost its power to amuse and I quit. Jim Hurley ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse
>By the way, I just heard a rumor that in the next release, MC/RR >will no longer recognize the keyboard. All communication will be >through miss Cleo. Jim, et al: Great news! I've been waiting for this development for years: Somehow the computer instructions I have in my head often don't make it to the keyboard correrctly. Since I don't have HAL to read my lips, Cleo's invtervention would be most appreciated. I presume Cleo's services are included in my license fee.:{`) Rob Cozens CCW, Serendipity Software Company "And I, which was two fooles, do so grow three; Who are a little wise, the best fooles bee." from "The Triple Foole" by John Donne (1572-1631) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse
In a message dated 2/27/02 6:33:47 PM, [EMAIL PROTECTED] writes: << By the way, I just heard a rumor that in the next release, MC/RR will no longer recognize the keyboard. All communication will be through miss Cleo. >> You joke...but I bet you have just touched the next big discussion It's like the game telephone, you say one thing and we weed through a ton of e-mail's. Randy ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse
Not if the Feds have anything to say about it @;-) Judy On Wed, 27 Feb 2002, Jim Hurley wrote: > By the way, I just heard a rumor that in the next release, MC/RR > will no longer recognize the keyboard. All communication will be > through miss Cleo. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Polling the mouse
Not since Mickey has there been such genuine affection for a mouse, such concern for his well being, whether he is up or down, or just moving about. It seems we do not appreciate the simple things in life until they are threatened. By the way, I just heard a rumor that in the next release, MC/RR will no longer recognize the keyboard. All communication will be through miss Cleo. -- Jim Hurley ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse
Scott Saults wrote: > My 2¢? Revolution should drop "the mouse" function, unless it can be made > to work in a reliable, predictable way, as documented. I can live without it. Why not take the second option? I say make it work in a reliable way--let it just indicate the real-time mouse button position with a direct call. Drop the HyperCard compatibility rather than dropping the function. (After all, you'd lose a lot more compatibility by removing the whole thing than by altering the behavior to be more straightforward and logical.) I would rather have the mouse give the real position of the mouse--all these buffered behaviors make no sense! As it has been pointed out, most of us don't know the complex behaviors anyway and just expect it to give the mouse value as it is at the time of being called. Surely no one would mind if the behavior is changed, since the alternative considered is to get rid of the whole thing! I already told myself I'd shut up already on this issue after the last post, but sometimes I muddle through a few posts without explaining my intended point as clearly as I tried to, so here goes one more final shot at it. These poor under-appreciated functions are part of the heart and soul of xTalk, allowing us to handle the most common types of interactions in a very intuitive fashion that's easy to learn and convenient to use--without umpteen separate handlers for ups, downs, moves, etc. Come on, people, you'd really rather do that than just say "until the mouse is up" or "if the mouse is down" or "get the mouseH"? Are you really looking at how much you'll be losing? Just because HyperCard made the implementation imperfect and a pain to continue to support compatibly doesn't mean that the concept, syntax, and functionality isn't perfect; it is. Rather than dropping these functions and statements that use these functions, I suggest that MetaCard alter the inner workings and behavior to match what MetaCard needs, and forget about the complex HC behavior. I would prefer simple, direct polling that showed the true state, but something else close to that would also be fine--whatever works for MetaCard, as close to true polling as possible. Then, as far as I could tell, everyone could be happy--people who like separate handlers for OS-friendliness or personal style could use them to their heart's content and pretend the functions no longer exist; people who appreciate the stylish and convenient power of the traditional statements could enjoy them and make good use of them; and hopefully the MetaCard team would have a straightforward way of implementing them that would be a lot easier to support and remove the current problems. I'm a big believer in these functions. They are a familiar and IMHO necessary part of scripting, and other competitive languages for the non-C++ audience, like BASIC, have similar functions. Having two ways to handle these types of interaction--in separate specific handlers and with functions inside other handlers--is the norm. So we need to have both ways too. If the tiny details of the traditional implementation cause problems, it's the tiny details that need to go, but the functions really need to stay. Well, that's it, I'm zipping it! I hope I've made a good case for the survival of these "endangered species" of precious keywords. Thanks, Curry Kenworthy ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse
Fri, 22 Feb 2002 13:22:55 -0700 Scott Raney <[EMAIL PROTECTED]> wrote >But did you actually try this? It *doesn't* work that way in either >MC or HC now. If you don't see it, try increasing the loop count (you >may need to at one zero for HC, and about 3 in MC/RR ;-) > >My real question is, given that you're confused about this, how many >other people must be, and if a lot, does this behavior really need to >be preserved? Scott & Geoff, Sorry! I THOUGHT I'd tried it in HC, but I must have done something WRONG. HyperCard does return "down" after the mouse button has been clicked during the loop, even though it is actually up when the script gets "the mouse." Geoff 's step-by-step explanation helped me see this. I'd not understood the implications of this exception to the way "the mouse" seemed to work. I apologize for posting my mistake, but thanks for the correction. The the mouse function seems to check some kind of event queue, rather than actually checking the state of the mouse button. Obviously, the mouse is more complicated than I thought, but maybe most people are not as easily confused as me. During this subsequent testing, I discovered a couple of other curiosities, for what it's worth. SuperCard 3.6 SEEMS to behave more consistently than MC or HC, because it does, according to my tests, return "up" even after clicking during the loop of Scott's script. Also, a slight modification to the 'put' command in Scott's script (below)actually causes HyperCard to put "down up" when the mouse is clicked during the loop and then not pressed again ! Weird. on mouseUp get 0 repeat for 1 times add 1 to it end repeat put the mouse && the mouse end mouseUp My 2¢? Revolution should drop "the mouse" function, unless it can be made to work in a reliable, predictable way, as documented. I can live without it. Scott Saults ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse state
Recently, Ken Norris (dialup) wrote: >> on mouseRelease >> mouseUp >> end mouseRelease > -- > Is this some kind of backup redundancy for PC's? As far as I know, the > mouseUp message gets sent automatically when you release the mouse, and > doesn't need a separate handler. You need this handler in case the mouse is released when it falls outside the rect of the dragged object. You risk missing the mouseUp event if you don't include this handler. >> BTW, did you look at the drag example I posted a few days ago? >> >> http://www.tactilemedia.com/download/drag_sample.mc > -- > I haven't yet. I couldn't get it to DL. I'm using a Mac. I'll try again > later. I use Macs as well. Just control click the link and choose "Download link to disk" or equivalent. Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: [EMAIL PROTECTED] Web: www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse state
on 2/23/02 12:47 PM, Scott Rossi at [EMAIL PROTECTED] wrote: > If I understand your request, this is one way you could do the above. Make > 3 small graphics named box 1, box 2 and box 3 within the region you define. > Then place the following script in your oval: > > on mouseDown > set the uAllowMove of me to true > end mouseDown > > on mouseMove x,y > if not the uAllowMove of me then exit mouseMove > set the loc of me to (max(81,min(557,x))),(max(167,min(287,y))) > end mouseMove > > on mouseUp > set the uAllowMove of me to empty > put "box1,box2,box3" into bList > repeat for each item B in bList > if within(me,loc of grc B) then > put "You found box" && B > exit repeat > else put empty > end repeat > end mouseUp -- This much I understand. I have 10 objects in each card, but the principal is the same. --- > on mouseRelease > mouseUp > end mouseRelease -- Is this some kind of backup redundancy for PC's? As far as I know, the mouseUp message gets sent automatically when you release the mouse, and doesn't need a separate handler. ------ > This should display the name (in the message box) of any box graphic that > falls within the oval when the mouse is released. > > BTW, did you look at the drag example I posted a few days ago? > > http://www.tactilemedia.com/download/drag_sample.mc -- I haven't yet. I couldn't get it to DL. I'm using a Mac. I'll try again later. Thanks somuch, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse state
Recently, Ken Norris (dialup) wrote: >> If you have a specific need that seems to require "repeat while the mouse is >> down," post it and we'll see if we can figure a way around it. >> > -- > Not exactly, but, how about this: > > on mousestilldown > put max(81,min(557,the mouseh)) into x > put max(167,min(287,the mousev)) into y > set the loc of me to x,y > end mousestilldown > > ...This is an oval (made round) button with the hilite set to true. It 'sees > through' a black-filled rectangular box, like a spyglass, so the user can > see portions of a color image underneath. It stays within the borders of the > box as you drag it around. The user is looking for an object. > > When they find what they believe is the correct object, release the mouse > button If I understand your request, this is one way you could do the above. Make 3 small graphics named box 1, box 2 and box 3 within the region you define. Then place the following script in your oval: on mouseDown set the uAllowMove of me to true end mouseDown on mouseMove x,y if not the uAllowMove of me then exit mouseMove set the loc of me to (max(81,min(557,x))),(max(167,min(287,y))) end mouseMove on mouseUp set the uAllowMove of me to empty put "box1,box2,box3" into bList repeat for each item B in bList if within(me,loc of grc B) then put "You found box" && B exit repeat else put empty end repeat end mouseUp on mouseRelease mouseUp end mouseRelease - This should display the name (in the message box) of any box graphic that falls within the oval when the mouse is released. BTW, did you look at the drag example I posted a few days ago? http://www.tactilemedia.com/download/drag_sample.mc You might find this useful. Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: [EMAIL PROTECTED] Web: www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution