Changing the Mouse Hover Cursor

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Changing the Mouse Hover Cursor

Postby reneuend » Mon Aug 24, 2015 2:53 am

Hey Folks!
I hope that someone will read this...and also someone will read this that might be able to help.

I need to change a mouse cursor that is associated with a hotspot in vbscript.

I added the following to the Frame properties, but it is not setting the cursor and there are no errors.
I put these ICO files in the "Areas" folder.

Code: Select all
if has_supply_list = 0 then
  Hotspot(4).MouseIcon = LoadGraphicFile("Magnifier2.ico")
else
  Hotspot(4).MouseIcon = LoadGraphicFile("Colored_HandPick.ico")
end if


According to the "Functions that belong to Adventure Maker" manual, this should have worked.

http://adventuremaker.com/help/vbscript_reference.htm

Similar to the Action.LoadAPicture command, but for more advanced users. It loads a graphic file from the "Areas" sub-folder of the project folder into a property. For example, to change the cursor that is associated with the hotspot number 5, you should type:
Hotspot(5).MouseIcon = LoadGraphicFile("FILENAME")
Hotspot(5).MousePointer = 99

where FILENAME is the name of the graphic file, located inside the "Hotspot Graphic Files" sub-folder of the "Project Resources", which corresponds to the directory "c:\...\PROJECTNAME\Areas". The supported graphic types are: BMP, JPG, GIF (not animated), WMF, EMF, ICO and CUR. Replace FILENAME with an empty string to unload the picture.


Any ideas?

If not, I'll use KeyGuard to pull this off.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2687
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Re: Changing the Mouse Hover Cursor

Postby Vengeance66 » Mon Aug 24, 2015 7:20 am

I used KeyGuard to make this. I don't know too much coding to make it in AM.
Stay a while and listen...

Rainbow Enterainment - http://rainbowenter.com/
User avatar
Vengeance66
Administrator
 
Posts: 630
Joined: Wed Oct 13, 2010 2:17 pm
Location: Macedonia

Re: Changing the Mouse Hover Cursor

Postby Candle » Sat Aug 29, 2015 2:44 am

Try the start scripts frame so it loads on start up.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3051
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Re: Changing the Mouse Hover Cursor

Postby domozo » Thu Sep 17, 2015 5:57 am

Hi, I don't remember exactly, I used to keyguard, but that may not work, cause keyguard doesn't work as I know on Windows newest editions, so if you worked on your own code, I think it will be better. Good luck.
User avatar
domozo
Frequent Poster
 
Posts: 147
Joined: Mon Jan 24, 2011 9:40 pm
Location: Syria-Latakia

Re: Changing the Mouse Hover Cursor

Postby reneuend » Sat Sep 19, 2015 10:52 pm

Actually, I have been using keyguard with Windows 10 and haven't run into any issues with it yet.
Please list any Keyguard issues you know about. It would be good to keep a list...probably under the Keyguard forum.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2687
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron