Run on startup

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Godswrath88
Posts: 8
Joined: 12 Feb 2018, 03:29

Run on startup

19 Feb 2018, 00:41

I'd like my script to run on startup. I want to test and see if I can get my script to make itself able to start on startup without me having to manually put it in using a short-cut or anything like that. I know it sounds sketchy but I wanted to make a jump-scare script for my brother-in-law. Don't worry though, it has a keybind to exit the script. :P
Godswrath88
Posts: 8
Joined: 12 Feb 2018, 03:29

Re: Run on startup

19 Feb 2018, 02:42

To add on to this, is there a way to make it so that, the first time the script is run, it will relocate somewhere deep in the files then THAT is run on startup? That way, even if they delete the first folder, the back up is elsewhere and it still runs everytime on startup?
Godswrath88
Posts: 8
Joined: 12 Feb 2018, 03:29

Re: Run on startup

19 Feb 2018, 02:45

Also, I completed it and manually added it onto his PC. I ended up removing it after the gag was up, but I'd like to know for future reference. Here was the finished code:


**EDIT by Mod Gio: Code removed. Please do not post any code that contains pranks.
bballjoe12
Posts: 114
Joined: 20 Aug 2017, 09:11

Re: Run on startup

19 Feb 2018, 07:46

Why don't you just put it in the Windows Startup folder, lol?
RickC
Posts: 299
Joined: 27 Oct 2013, 08:32

Re: Run on startup

19 Feb 2018, 08:46

NO PRANKS or any other potentially harmful stuff is allowed!
Please have a look at this post from forum admin joedf: (https://autohotkey.com/boards/viewtopic ... 65#p160125)
Godswrath88
Posts: 8
Joined: 12 Feb 2018, 03:29

Re: Run on startup

19 Feb 2018, 18:19

RickC wrote:
NO PRANKS or any other potentially harmful stuff is allowed!
Please have a look at this post from forum admin joedf: (https://autohotkey.com/boards/viewtopic ... 65#p160125)
Ahhh, okay. Sorry for posting it. I don’t plan on making him suffer too much. :P

I’m assuming that means just not to post it though. Does that mean I can still ask considering I’m not going to distribute it to anyone besides him?
Last edited by Godswrath88 on 19 Feb 2018, 18:23, edited 1 time in total.
Godswrath88
Posts: 8
Joined: 12 Feb 2018, 03:29

Re: Run on startup

19 Feb 2018, 18:20

bballjoe12 wrote:Why don't you just put it in the Windows Startup folder, lol?
I can, but that’d require access to the PC. I meant if I could script it so it’d do it automatically if it was run.
RickC
Posts: 299
Joined: 27 Oct 2013, 08:32

Re: Run on startup

19 Feb 2018, 18:34

Godswrath88 wrote:I’m assuming that means just not to post it though. Does that mean I can still ask considering I’m not going to distribute it to anyone besides him?
Asking about how to get an AHK script to run from startup is fine. It was the prank nature and the specifics of your script (e.g. the use of SoundSet to raise the volume to max) that was the problem.

Hope this helps...
Godswrath88
Posts: 8
Joined: 12 Feb 2018, 03:29

Re: Run on startup

19 Feb 2018, 21:02

RickC wrote:
Godswrath88 wrote:I’m assuming that means just not to post it though. Does that mean I can still ask considering I’m not going to distribute it to anyone besides him?
Asking about how to get an AHK script to run from startup is fine. It was the prank nature and the specifics of your script (e.g. the use of SoundSet to raise the volume to max) that was the problem.

Hope this helps...
Thanks for letting me know. I don't want to violate any rules. :)

I don't want to be malicious to anyone. I just prank people I know IRL sometimes. :P

But do you happen to know an answer to any of the aforementioned questions?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Rohwedder, ruespe and 350 guests