Latest Uploads
Invasion V ... prototype

rychan

Invasion V ... Prototype

rychan

Shields 64x64

Pakz

Ffs_Spam

Jayenkai

Hives Screen shot

rychan

Rpg Potion Sprites

Pakz

Showcase > Functions Libraries ( Created 01 July 2008 | Last Edited 30 January 2009)

Shortcut Reader/Writer - Created by HoboBen (Rating 100%)

For Cobra (+Blitz!): custom icons, comment/tooltips, shortcuts with command line arguments, it's all in there!
Created using Cobra > WindowsView Worklog (0 entries)
ReadMe (Cobra)
Download (Cobra)
New: Now also works with BlitzBasic!

I finally cracked it and can now write valid shortcuts! (23 hours well spent!)

Presenting a simple yet complete unit to read/write windows .lnk shortcut files from Cobra - Including custom icons, comment/tooltips, shortcuts with command line arguments, etc

I haven't tested network shortcuts, but reading them should also work *in theory*.

Enjoy!

Cobra
ReadMe
Download

BlitzBasic
ReadMe
Download

Latest Comments

Posted : Tuesday, 01 July 2008, 14:47
Jayenkai


Vote : 5
Holy cow!
Well done Hobo!

(although untested due to my lack of Cobra!)

Homepage : http://AGameAWeek.com
Posted : Tuesday, 01 July 2008, 15:08
Orion Pax


WOW! Finally! I completely forgot about this. I might have to look at the code to see the format for it. Might have a need for it in blitz. Unless you plan on doing a port in blitz.

Homepage : http://www.3dstormgames.com
Posted : Tuesday, 01 July 2008, 15:37
HoboBen


I don't plan on doing my own port (no time!), but it should be quite easy - the bulk of it is just the Read/Write Byte/Word/Integer commands. In Cobra, Word = 2 Bytes, Int = 4 Bytes. I tried to make my comments pretty detailed, too. (If there's any parts that are confusing, feel free to ask)

There's a good PDF that documents most of this info (the link is in the source-code comments), but there were a few omissions that made writing the shortcut difficult - the most important of which were two single undocumented bits hidden away in the flag bytes, which I've marked as "REALLY IMPORTANT!!!" in the comments

Posted : Friday, 30 January 2009, 07:19
HoboBen


Blitz port now available!

Seems to work okay - any bugs, give a yell.

(Also, Blitz SUCKS for strings... had to go through and make sure I had a dollar sign on everything that needed it... annoying!)

Posted : Friday, 30 January 2009, 07:45
Jayenkai


Yeah. Blitz's lack of backslash expressions is slightly limiting, but for the most part, it does what it needs to.

Well done on the Shortcut making!
Wonder if it still works on Vista + 7 ? (I'll try it on Vista, later, if I remember!!)

Homepage : http://AGameAWeek.com
Posted : Friday, 30 January 2009, 07:53
Phoenix


Works over here on Windows 7, at least when reading. Don't know if it's because of the OS, but it crashes when trying to create a shortcut.

Posted : Friday, 30 January 2009, 09:11
HoboBen


I did forget to mention, but there should be a file called test.txt in the same directory as the blitz example for it to create a shortcut to. It's supposed to just return false if it doesn't exist though.

If that's not it, then I've got no idea why it fails; it's just writing data to a binary file. I could understand windows not being able to read the result, but not blitz crashing.

Posted : Friday, 30 January 2009, 10:23
Jayenkai


Perhaps windows is trying to access the file mid-write. You might have to lock the file down, until it's written.
(Not a f'ing clue!)

Homepage : http://AGameAWeek.com
Posted : Friday, 30 January 2009, 12:18
Phoenix


Crash might be the wrong word, I merely got an error dialog box. However the test file was present when I got the error.

-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 648|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Any Feature Requests?
Kuron Fri 23:09
More Monkey Madness - With Ducks
therevillsgames Fri 20:23
Arms on Switch
Jayenkai Fri 18:30
Time for a new Android Test Doohickey
Jayenkai Fri 09:26
CSS-Me-Do - SoCoder2
Jayenkai Fri 06:28
Pillowcases for kids!
rockford Thu 16:15
Manchester Arena Explosion
Jayenkai Thu 02:04
Buy Zelda
spinal Wed 11:31
Family
Jayenkai Wed 04:06
RIP - Sir Roger Moore
rockford Tue 15:56
More

Latest Items
Showcase : Hives
zzoom Fri 16:10
Dev-Diary : My Journey into NES Development
rychan Thu 12:31
Showcase : Flappadiddle
Jayenkai Sun 14:39
Snippet : QFind
Jayenkai Sun 13:02
Showcase : Tiny Blocks
Jayenkai Sun 04:08
Showcase : Read Error A
rychan Fri 05:13
Blog : All my makes!
Jayenkai Tue 05:48
Showcase : Infinitron
rychan Mon 18:03
Showcase : Quadoban
rskgames Fri 10:11
Blog : My Arduino experience.
steve_ancell Wed 17:02
Showcase : Roguelike Explorer
Pakz Fri 06:59
News : Newsletter #311
Jayenkai Thu 17:27
Link : Super Shapes Exploration Kit
Andy_A Thu 11:09
Dev-Diary : Sensitive - Arduboy!
rychan Thu 17:27
Snippet : Skylines
steve_ancell Tue 14:25
More

Who's Online
Kuron
Fri, at 23:09
Evil Roy Ferguson
Fri, at 20:47
therevillsgames
Fri, at 20:23
rskgames
Fri, at 19:28
Jayenkai
Fri, at 18:41
9572AD
Fri, at 18:10
steve_ancell
Fri, at 18:04
rockford
Fri, at 16:34
zzoom
Fri, at 16:14
Pakz
Fri, at 15:20
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.