Indigo Rose Software
  #1  
Old 08-10-2005
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
Page.CursorHide

Suggestion:
Adding the above action, with True/false option.
A few advantages to that:
- Disabling mousing at runtime,
- Making your own custom made cursor, linking an image position to the mouse X and Y position

Yossi
Reply With Quote
  #2  
Old 08-10-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
If it doesn't make it Yos


HideCursor(true); --Hides Cursor

HideCursor(false); --Shows Cursor


Code:
function HideCursor(blnHide)
	if blnHide then
		nResult = DLL.CallFunction(_SystemFolder.."\\User32.dll", "ShowCursor", 0, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
	else
		nResult = DLL.CallFunction(_SystemFolder.."\\User32.dll", "ShowCursor", 1, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
	end
end
Reply With Quote
  #3  
Old 08-10-2005
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
Yes, Oh Worm, King of the DLL world. Thank you, your majesty for the gifts you are granting us....

Thanks Man...

Yossi
Reply With Quote
  #4  
Old 08-10-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
It does bring up a point about the value passed. It'd be nice if the e_X and e_Y were say set to negative numbers when outside of the AMS window. Then you'd know to hide your sudo cursor, otherwise, its stuck at the edge of the window waiting for the mouse to re-enter.
Reply With Quote
  #5  
Old 08-10-2005
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
True,
But as there are no negative value, can't you use the page dimension and "push " the cursor off screen from the other side of the page? (>790 for example).


Yossi
Reply With Quote
  #6  
Old 08-11-2005
JimS's Avatar
JimS JimS is offline
Forum Member
 
Join Date: May 2003
Location: Pendleton, Oregon
Posts: 911
Good one Yosik. I have been trying to figure out a way to use additional cursors, for my next AMS addon. I would absolutely love it if AMS6 had a custom cursor option that let us dynamically load a (proper) cursor file of our own.

Barring that, your idea to use transparent png’s and the hidden cursor is brilliant. It will take a little math for the offset, (different for each png) to make sure you are aiming at the, well, I can’t think offhand what it’s called, but the sweet spot on the icon, the tip of the arrow, the actual pixel that measures a hit. It’s a work around that I hadn’t thought of, thank you.
__________________
Add-ons for AMS. Toolbar Buttons Galore, System Animations, the Window Construction Kit, and more.
Visit Acme-Tek
Reply With Quote
  #7  
Old 08-11-2005
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
As the registration point of an image in AMS is the top left point (BTW, we could use a custom registration point function.....), what you have to do is make sure that the "sweet spot" of your custom pointer matches that point.

Yossi
Reply With Quote
  #8  
Old 08-11-2005
JimS's Avatar
JimS JimS is offline
Forum Member
 
Join Date: May 2003
Location: Pendleton, Oregon
Posts: 911
I’m not sure that you would want to consider the registration of the picture. I was thinking that you would still use the registration of the mouse. I was also thinking that HideCursor only hid the cursor, not disabled it. Now that I think about it, it probably does disable the cursor, so you would have to rely on the registration of the picture.

Always about two steps ahead of me aren’t you?
__________________
Add-ons for AMS. Toolbar Buttons Galore, System Animations, the Window Construction Kit, and more.
Visit Acme-Tek
Reply With Quote
  #9  
Old 08-11-2005
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
Previous experience with Flash...That's all.
Reply With Quote
  #10  
Old 08-11-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
The trick I found is to be sure your cursor image is disabled, otherwise the mouse events fire eradically for objects because you pointe is always over the cursor image. By disabling the image, it works alright.

Drawbacks will be that the custom cursor won't work over a windowed object because of the mouse events for the page not firing while the cursor is over those objects. I could be mistaken, but I believe that there was a suggestion posted to have the page's mouse events be a "global" event which would solve this.



Quote:
Originally Posted by yosik
Previous experience with Flash...That's all.
Attached Files
File Type: apz HideCursor.apz (32.4 KB, 62 views)
Reply With Quote
  #11  
Old 08-11-2005
JimS's Avatar
JimS JimS is offline
Forum Member
 
Join Date: May 2003
Location: Pendleton, Oregon
Posts: 911
Thank you Worm. I spend the time to think about it, you spend the tome to do it, thanks.

Isn’t it exciting, how few lines of code that it takes to do something this cool?
__________________
Add-ons for AMS. Toolbar Buttons Galore, System Animations, the Window Construction Kit, and more.
Visit Acme-Tek
Reply With Quote
  #12  
Old 08-11-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Quote:
Isn’t it exciting, how few lines of code that it takes to do something this cool?
It rocks.
Reply With Quote
  #13  
Old 08-11-2005
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
Suggestion added, thank you.

Darryl

REF: 10735
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 08:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software