Jump to content


Photo

Windows Shortcut Dll *fixed Link*


  • Please log in to reply
37 replies to this topic

#1 X3no

X3no

    GMC Member

  • New Member
  • 288 posts

Posted 05 September 2007 - 10:02 PM

I made this dll that creates windows shortcuts.

This can be used as part of an installer or if you just want your application to create a desktop shortcut. Other methods of creating shortcuts cause the game to freeze and can set of anti-virus programs, however this will not. It works quickly and will not mess with av applications.

The zip file includes the dll, an example, and the .gml file.
This only contains one script that creates a shortcut with the specified settings.

If anyone needs help using this or would like me to add more features then ask me.

Download shortcut dll.zip

Credit is not needed but would be appreciated.

Known bugs:
***fixed***stops execution of code from which the dll script is called.

Bug fix released 9/7/2007
Download Url modified 7/25/2008 - Check out the new site.

Edited by X3no, 08 February 2009 - 04:32 AM.

  • 0

#2 Maxinston

Maxinston

    Epic Phail

  • GMC Member
  • 1248 posts
  • Version:Unknown

Posted 05 September 2007 - 10:15 PM

Will Be Useful
  • 0
<div align='center'><img src="http://img33.imagesh...igpic88821.jpg" border="0" class="linked-sig-image" />
A designer knows that he achieved perfection not when there is nothing left to add but when there is nothing left to take away.</div>

#3 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 05 September 2007 - 10:22 PM

Neat!
  • 0

#4 X3no

X3no

    GMC Member

  • New Member
  • 288 posts

Posted 07 September 2007 - 08:07 PM

Ok fixed the bug. It now works faster and doesn't mess with gm scripts.

Would the ability to set shortcut icons, arguments, or window modes be useful because I could ad them.

Edited by X3no, 07 September 2007 - 08:09 PM.

  • 0

#5 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 07 September 2007 - 08:47 PM

Would the ability to set shortcut icons, arguments, or window modes be useful because I could ad them.

<{POST_SNAPBACK}>

Certainly! :)
  • 0

#6 eat268

eat268

    Videogame Programmer

  • New Member
  • 335 posts

Posted 17 September 2007 - 09:36 AM

could you make a dll that adds programs to the start menu?


Thx.
  • 0
C..C++..Java..PHP Coder.

#7 molloyboy08

molloyboy08

    pyr0t3chnic

  • New Member
  • 473 posts

Posted 17 September 2007 - 11:48 PM

if you mean add to the start menu->programs list, all you need to do is make the destination for the shortcut file (im just providing path
environment_get_variable("USERPROFILE")+"\Start Menu\Programs\FolderName\"
;)
  • 0
Returning after a break from gamemaker.
Gamemaker experience: 6,7 both paid. 8 soon to be pro
Programming knowledge: (May be missing a few currently)
C, C#, C++, java, HTML, CSS, Javascript, PHP, ASP.NET, SQL, Visual Basic, Perl, assembly, batch

Temporary sig while I figure out if I have anything worthwhile to put.

#8 elperelol

elperelol

    GMC Member

  • New Member
  • 47 posts

Posted 24 January 2008 - 03:52 PM

hi, could you re upload the file please?
  • 0

#9 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 24 January 2008 - 11:58 PM

if you mean add to the start menu->programs list, all you need to do is make the destination for the shortcut file (im just providing path
environment_get_variable("USERPROFILE")+"\Start Menu\Programs\FolderName\"
:GM058:

<{POST_SNAPBACK}>


You're assuming they have an English install...I've run into that problem before.

HomebrewPC
  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#10 EdoI

EdoI

    GMC Member

  • New Member
  • 47 posts

Posted 26 January 2008 - 12:20 PM

URL is not good, any mirrors? Connection always fail...
  • 0

#11 necrotic

necrotic

    GMC Member

  • New Member
  • 238 posts

Posted 26 January 2008 - 04:37 PM

Sorry about that.... I don't have a copy of it, but I'll try and reach the guy who made it.

Give me a day or so to find him :)
  • 0

#12 necrotic

necrotic

    GMC Member

  • New Member
  • 238 posts

Posted 26 January 2008 - 04:37 PM

Sorry about that.... I don't have a copy of it, but I'll try and reach the guy who made it.

Give me a day or so to find him :)
  • 0

#13 X3no

X3no

    GMC Member

  • New Member
  • 288 posts

Posted 27 January 2008 - 12:09 AM

Sorry I forgot all about the fact that all these links are down. My webhost cut off service unexpectadly about 2 weeks ago. I'll find my backup and edit when I have it uploaded.
  • 0

#14 EdoI

EdoI

    GMC Member

  • New Member
  • 47 posts

Posted 30 January 2008 - 06:05 PM

CAN ANYBODY SEND ME THIS ON MY ADRESS:

edo_95_i@hotmail.com
  • 0

#15 EdoI

EdoI

    GMC Member

  • New Member
  • 47 posts

Posted 30 January 2008 - 06:06 PM

CAN ANYBODY SEND ME THIS ON MY ADRESS:

edo_95_i@hotmail.com

Just add attachment
  • -2

#16 necrotic

necrotic

    GMC Member

  • New Member
  • 238 posts

Posted 01 February 2008 - 09:00 PM

The site is back up. You should be able to download it at the link provided.
  • 0

#17 elperelol

elperelol

    GMC Member

  • New Member
  • 47 posts

Posted 01 February 2008 - 09:25 PM

Excelent :wacko:

But I want
"C:\Program Files\some\some.exe" lol parameters
But i onle get
"C:\Program Files\some\some.exe lol parameters"
Wich makes the shortcut unusable.

Could you please put the option for adding parameters to the shortcut?

Edited by elperelol, 01 February 2008 - 10:19 PM.

  • 0

#18 X3no

X3no

    GMC Member

  • New Member
  • 288 posts

Posted 02 February 2008 - 09:22 PM

Excelent :(

But I want

"C:\Program Files\some\some.exe" lol parameters
But i onle get
"C:\Program Files\some\some.exe lol parameters"
Wich makes the shortcut unusable.

Could you please put the option for adding parameters to the shortcut?

<{POST_SNAPBACK}>


I think there is the ability to add parameters but I'll check. However the source isn't on this computer so I'll have to find it.

And The link should work again now.

Edited by X3no, 02 February 2008 - 09:28 PM.

  • 0

#19 necrotic

necrotic

    GMC Member

  • New Member
  • 238 posts

Posted 04 February 2008 - 09:20 PM

IF I remember correctly, you can add parameters to the launch by adding '-' in front of the shortcut.

Example: "C:\Program Files\some\some.exe -lol -parameters"

That should pass the parameters 'lol' and 'parameters' when the program executes.
  • 0

#20 wat_a_noob

wat_a_noob

    GMC Member

  • New Member
  • 129 posts

Posted 17 February 2008 - 01:37 AM

Could you please make a gm6 version?
  • 0

#21 greatbird451

greatbird451

    GMC Member

  • New Member
  • 43 posts

Posted 22 March 2008 - 02:11 AM

hey, the website does not work again, is there some other website you can put this on? I really want to use this for my game installer/patcher.
thx
  • 0

#22 X3no

X3no

    GMC Member

  • New Member
  • 288 posts

Posted 25 March 2008 - 08:16 PM

We are having more web hosting issues. I have updated the links in the first post to a new server.

download shortcut dll
  • 0

#23 elperelol

elperelol

    GMC Member

  • New Member
  • 47 posts

Posted 03 April 2008 - 08:23 AM

IF I remember correctly, you can add parameters to the launch by adding '-' in front of the shortcut.

Example: "C:\Program Files\some\some.exe -lol -parameters"

That should pass the parameters 'lol' and 'parameters' when the program executes.


no, that would execute "......some.exe -parameters" that is if the program checks for a "-"sign, i dont check
you should check the Windows Shell script i posted someplace in here
  • 0

#24 coolist

coolist

    The Coolist

  • New Member
  • 913 posts

Posted 06 April 2008 - 03:34 AM

Link down again :)
  • 0

#25 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 06 April 2008 - 03:47 AM

We are having more web hosting issues. I have updated the links in the first post to a new server.

download shortcut dll

Right here :) It works!
  • 0

#26 coolist

coolist

    The Coolist

  • New Member
  • 913 posts

Posted 06 April 2008 - 01:05 PM

LOL, it didn't work yesterday :)

EDIT: Thats strange, the DLL dosen't work for me, (even the example)... It shows the shortcut with no icon on my desktop and when i click on it it wants me to look for a file...

Edited by coolist, 06 April 2008 - 01:08 PM.

  • 0

#27 X3no

X3no

    GMC Member

  • New Member
  • 288 posts

Posted 16 April 2008 - 12:54 AM

LOL, it didn't work yesterday :(

EDIT: Thats strange, the DLL dosen't work for me, (even the example)... It shows the shortcut with no icon on my desktop and when i click on it it wants me to look for a file...

You probably arent correctly defining the icon or the exe path.
  • 0

#28 silverhawk

silverhawk

    GMC Member

  • New Member
  • 2 posts

Posted 25 December 2008 - 07:18 PM

The links donĀ“t work
  • 0

#29 Botyto

Botyto

    GMC Member

  • GMC Member
  • 1252 posts

Posted 08 January 2009 - 12:54 PM

broken link. pls fix it
  • 0

#30 X3no

X3no

    GMC Member

  • New Member
  • 288 posts

Posted 08 February 2009 - 04:32 AM

Try this link.

Download shortcut DLL

I haven't been able to verify that this version works I just found it and uploaded it.
I don't have Gamemaker on this PC so I couldnt test it. If it doesnt work let me know.

Also if anyone wants to host this file somewhere just let me know and ill ad it to the mirrors.

Edited by X3no, 08 February 2009 - 04:34 AM.

  • 0

#31 accelleon

accelleon

    GMC Member

  • New Member
  • 43 posts

Posted 11 February 2009 - 01:57 AM

LOL, it didn't work yesterday :lol:

EDIT: Thats strange, the DLL dosen't work for me, (even the example)... It shows the shortcut with no icon on my desktop and when i click on it it wants me to look for a file...


when the save box comes up you have to type .lnk after the filename so for example for the first argument if you want to make a shortcut that has the name test you would put test.lnk instead of just test when the save window comes up.
  • 0
Go Super mega awesome smile!

#32 mrsmes

mrsmes

    GMC Member

  • GMC Member
  • 1506 posts
  • Version:GM:Studio

Posted 13 February 2009 - 02:44 PM

I also have a problem with shortcuts on my desktop on vista is there a way to fix this it just pops a error and says windows explorer is now restarting.
  • 0

Assuming I helped you out in a questions and answers topic won't you return the favour by helping me with one my coding problems, or recommend some one who can chat to me over pms about helping and how to overcome my obstacles, after all lets just say I did help you or them or many people with similar problems, in that topic.

Here i have a topic for those of you struggling with type writer text and mugshots in your games especially if it is a rpg see the link below for more info

http://gmc.yoyogames...howtopic=619103

almost no code needed, only uses two events.

click here for the l8est version of feed the alien pizza, it has some major polished up features.


#33 DiamondDynamite

DiamondDynamite

    GMC Member

  • New Member
  • 20 posts

Posted 26 February 2009 - 02:46 PM

nope. link still broken ='[
  • 0
~DD~ a leader of the DDNN-Team

#34 X3no

X3no

    GMC Member

  • New Member
  • 288 posts

Posted 28 February 2009 - 10:00 PM

nope. link still broken ='[

The link works fine for me. I've been doing site maintainance lately that may have caused the problem. Try again and if the problem continues let me know and I'll try to resolve the issue.
  • 0

#35 Jontsaroo

Jontsaroo

    GMC Member

  • New Member
  • 4 posts

Posted 01 March 2010 - 07:28 PM

I Can't Open The Link Either :angry:
  • 0

#36 Razon

Razon

    GMC Member

  • GMC Member
  • 268 posts
  • Version:GM:Studio

Posted 02 March 2010 - 01:36 AM

http://www.mediafire.com/?mob2znuknvx
http://hotfile.com/d...ut_Dll.zip.html
  • 0

#37 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 12 March 2011 - 10:51 AM

I know this is a year-old topic I'm bumping, but... I need the ability to create shortcuts for a quick helper app I'm making. This is the only GM DLL I've found that can do it. However, it works and doesn't work at the same time. By that I mean it correctly creates the shortcuts, but as soon as it does my GM program crashes with an unexpected error.

All I'm doing is calling the default script. Is this a problem with the DLL (I'm running Win7 Home Premium 64-bit if it matters)?

-IMP ;) :)
  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#38 xeotrel2

xeotrel2

    GMC Member

  • New Member
  • 8 posts
  • Version:GM:Studio

Posted 20 December 2013 - 04:37 PM

Link down again... :-(


  • 0