ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: hotkey (like ctrl+w) execution at start up

(1/1)

mitzevo:
yah what subject sez.. k thx.

hehe  ;D

i would like to run a hotkey at system start up.. reason is i have a program that locks the computer that uses a hotkey to execute but there is not option to have it lock at start up.. so thats why a tiny app like this can help me.

thanks  8)

skrommel:
 :) It looks like you need AutoHotkey. Go to www.autohotkey.com and download and install it.

Edit the following script to match your applications title, and save it to a file called Action.ahk, and place it in you Startup folder.


--- ---WinWait,title of you application spelled correctly
WinActivate,title of you application spelled correctly
WinWaitActive,title of you application spelled correctly
Send,^w
Skrommel

mitzevo:
i have to get autohotkey?  ;)

can't you just compile an .exe or some thing?  :o

and do I need the first 3 lines of script? I think the program catches ^1 (ctrl+1 is what i need) no matter what window is focused/active.. :D
 :)

edit: ok i downloaded it and played around with it for 15 - 20mins, i got it to work after playing around.. all i needed to do is "send ^1"

thanks :) this ahk is quite nice, i have a deeper play another time.  :Thmbsup:

btw, i just mucked around and made my own windows key hooker.. so now i cant yell "stupid windows key" while playing a game like cs/aa/etc.! lol although i haven't really looked for a solution while i used to game.. cool.

skrommel:
 :) Another soul saved! And you found the option to compile to an exe?

Skrommel

mitzevo:
hehe yeah, made my morning actually, just a few minutes ago i added the compiled .exe to start up and I rebooted..

upon load, windows is locked :) only problem is, the intruder/user who wants to use my box can do stuff before the ahk .exe is loaded or they may terminate the pc locking app before the lock takes place.. although I doubt it cuz it's very sluggish and slow in the first 20 secs of start up :) plus its aimed at my work mates who are not good on computers.. hehe

i even tried as soon as i could click some thing to open some documents.. of course while the desktop is loading up i opened a .txt and .rar, and tried to go thru the start menu, it was sluggish, very sluggish as this is normal behavior when loading up, by the time the .rar opened (.txt opened few secs before) the ahk .exe loaded and boom:


--- ---send #d
send ^1

 :) ;D

Navigation

[0] Message Index

Go to full version