Sign in to follow this  
Followers 0
Gift3d

Running a shortcut via autoit.

4 posts in this topic

#1 ·  Posted (edited)

I've tried both the help in AutoIt, and the search function here, but oddly enough i got nothing.

I'm trying to run a shortcut.

Here's what my script looks like, it's pretty simple.

EDIT:: I need to run a shortcut, because i'm trying to run Mouse properties in the Control Panel. Putting in Control Panel/Mouse doesn't work, and i'm not sure how i'd get that to work either.

HotKeySet("{DEL}", "sixbit")

While 1
    Sleep(100)
WEnd


Func sixbit()
Run("C:\mouse.lnk", "")
EndFunc

I've tried the OpenFile just for kicks, no luck.

I've tried all different variations of run (C:/, C:\, mouse, Mouse, MOUSE.LNK, everything.)

Either if i can run this from [control panel/mouse] sort-of-way, or run a shortcut, either would be great.

Thanks!

Edited by Gift3d

Share this post


Link to post
Share on other sites



HotKeySet("{DEL}", "sixbit")
While 1
    Sleep(100)
WEnd
Func sixbit()
ShellExecute("C:\Mouse.lnk")
EndFunc

is this what you need?


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

you cannot use the Run() function for executing .ink files... (shortcuts) I would suggest only using Run() for .exe's....using ShellExecute() for everything else :D

Share this post


Link to post
Share on other sites

Yes that's exactly what i needed. Thanks a bunch for helping a learning noob out. :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0