Trouble getting Autorun to work

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
dangerdogL2121
Posts: 173
Joined: 01 Oct 2013, 23:11

Trouble getting Autorun to work

07 May 2014, 02:29

I have been trying to get a program to autorun if a put a flash containing it into a computer. On the flashdrive I have Autorun.inf the program and an icon. Autorun's text is this:

Code: Select all

[Autorun]
Open=ahk1.exe
Action=Run ahk1
Icon=icon1.ico
Nothing is autorun when flash drive is put into the computer. It looks the same as before autorun.inf was made.
I have tried everything, making sure ahk1 and icon1 exist in root folder. I've made sure Autorun.inf is in root folder. I have tried different cases(CAPITAL vs. lowercase). No luck. It feels like I'm forgetting something important.
thanks
User avatar
Menixator
Posts: 69
Joined: 30 Sep 2013, 04:10

Re: Trouble getting Autorun to work

07 May 2014, 02:39

Autorunning programs doesn't work in windows 7.
It's a security feature of post-XP windows releases. I am not sure whether it wasn't also in XP. Windows simply won't start content without user wanting so. It will always ask you.
User avatar
dangerdogL2121
Posts: 173
Joined: 01 Oct 2013, 23:11

Re: Trouble getting Autorun to work

07 May 2014, 15:04

It's a security feature of post-XP windows releases. I am not sure whether it wasn't also in XP. Windows simply won't start content without user wanting so. It will always ask you.
Ok, but doesn't that mean I should get something asking for autorun every time I insert the flash drive? It acts as if there is no autorun on the flash drive at all.

I get something that looks like this
Image

They I click on "Open folder to view files" and the folder opens. There is nothing asking me to run ahk1. Shouldn't there be something asking to autorun?
thanks
Guest10
Posts: 578
Joined: 01 Oct 2013, 02:50

Re: Trouble getting Autorun to work

07 May 2014, 22:22

is there any script that can bypass this AutoRun anytime i insert a flash drive?
User avatar
dangerdogL2121
Posts: 173
Joined: 01 Oct 2013, 23:11

Re: Trouble getting Autorun to work

07 May 2014, 23:49

I don't think so, not with ahk. The script would have to be ran to do anything.
Guest

Re: Trouble getting Autorun to work

08 May 2014, 09:13

You could prepare a script with a SetTimer to see if a (particular) USB flash drive is available and make it read the autorun data and execute it? See http://www.autohotkey.com/board/topic/8 ... ntry566897
User avatar
dangerdogL2121
Posts: 173
Joined: 01 Oct 2013, 23:11

Re: Trouble getting Autorun to work

08 May 2014, 17:38

I'm trying to get autorun to work so I get programs to autorun on computers that don't have a script already on them.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: jaka1 and 173 guests