Page 1 of 1

Trouble getting Autorun to work

Posted: 07 May 2014, 02:29
by dangerdogL2121
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

Re: Trouble getting Autorun to work

Posted: 07 May 2014, 02:39
by Menixator
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.

Re: Trouble getting Autorun to work

Posted: 07 May 2014, 15:04
by dangerdogL2121
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

Re: Trouble getting Autorun to work

Posted: 07 May 2014, 22:22
by Guest10
is there any script that can bypass this AutoRun anytime i insert a flash drive?

Re: Trouble getting Autorun to work

Posted: 07 May 2014, 23:49
by dangerdogL2121
I don't think so, not with ahk. The script would have to be ran to do anything.

Re: Trouble getting Autorun to work

Posted: 08 May 2014, 09:13
by Guest
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

Re: Trouble getting Autorun to work

Posted: 08 May 2014, 17:38
by dangerdogL2121
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.