Jump to content

Recommended Posts

Posted

I've been trying to use the hotkey but it doesn't seem to work. The console log says "AU3 Check ended" thing everytime I run the script, it annoys the hell out of me. I'm quite new to AutoIt. Any help would be greatly appreciated.

HotKeySet("a", "notepad")
HotKeySet("b", "notepad")
HotKeySet("c", "notepad")
HotKeySet("d", "notepad")
HotKeySet("e", "notepad")
HotKeySet("f", "notepad")
HotKeySet("g", "notepad")
HotKeySet("h", "notepad")
HotKeySet("i", "notepad")
HotKeySet("j", "notepad")
HotKeySet("k", "notepad")
HotKeySet("l", "notepad")
HotKeySet("m", "notepad")
HotKeySet("n", "notepad")
HotKeySet("o", "notepad")
HotKeySet("p", "notepad")
HotKeySet("q", "notepad")
HotKeySet("r", "notepad")
HotKeySet("s", "notepad")
HotKeySet("t", "notepad")
HotKeySet("u", "notepad")
HotKeySet("v", "notepad")
HotKeySet("w", "notepad")
HotKeySet("x", "notepad")
HotKeySet("y", "notepad")
HotKeySet("z", "notepad")
HotKeySet("{[}", "notepad")
HotKeySet("{]}", "notepad")

HotKeySet("{'}", "notepad")
HotKeySet("{;}", "notepad")
HotKeySet("{,}", "notepad")
HotKeySet("{/}", "notepad")
HotKeySet("{?}", "notepad")
HotKeySet("{.}", "notepad")
HotKeySet("{<}", "notepad")
HotKeySet("{>}", "notepad")
HotKeySet("{}}", "notepad")
HotKeySet("{\}", "notepad")
HotKeySet("{{}", "notepad")
HotKeySet("{|}", "notepad")
HotKeySet("{=}", "notepad")
HotKeySet("{+}", "notepad")
HotKeySet("{-}", "notepad")
HotKeySet("{_}", "notepad")
HotKeySet("{(}", "notepad")
HotKeySet("{)}", "notepad")
HotKeySet("{*}", "notepad")
HotKeySet("{&}", "notepad")
HotKeySet("{^}", "notepad")
HotKeySet("{%}", "notepad")
HotKeySet("{$}", "notepad")
HotKeySet("{#}", "notepad")
HotKeySet("{@}", "notepad")
HotKeySet("{!}", "notepad")
HotKeySet("{`}", "notepad")
HotKeySet("{~}", "notepad")
HotKeySet("{1}", "notepad")
HotKeySet("{2}", "notepad")
HotKeySet("{3}", "notepad")
HotKeySet("{4}", "notepad")
HotKeySet("{5}", "notepad")
HotKeySet("{6}", "notepad")
HotKeySet("{7}", "notepad")
HotKeySet("{8}", "notepad")
HotKeySet("{9}", "notepad")
HotKeySet("{0}", "notepad")

Func notepad()
    Run("notepad.exe")
EndFunc

 

Posted (edited)
  On 7/5/2020 at 3:28 PM, generic-username said:

Any help would be greatly appreciated

Expand  
HotKeySet("{ESC}", "_Exit")

HotKeySet("a", "notepad")
HotKeySet("b", "notepad")
HotKeySet("c", "notepad")
HotKeySet("d", "notepad")
HotKeySet("e", "notepad")
HotKeySet("f", "notepad")
HotKeySet("g", "notepad")
HotKeySet("h", "notepad")
HotKeySet("i", "notepad")
HotKeySet("j", "notepad")
HotKeySet("k", "notepad")
HotKeySet("l", "notepad")
HotKeySet("m", "notepad")
HotKeySet("n", "notepad")
HotKeySet("o", "notepad")
HotKeySet("p", "notepad")
HotKeySet("q", "notepad")
HotKeySet("r", "notepad")
HotKeySet("s", "notepad")
HotKeySet("t", "notepad")
HotKeySet("u", "notepad")
HotKeySet("v", "notepad")
HotKeySet("w", "notepad")
HotKeySet("x", "notepad")
HotKeySet("y", "notepad")
HotKeySet("z", "notepad")
HotKeySet("{[}", "notepad")
HotKeySet("{]}", "notepad")

HotKeySet("{'}", "notepad")
HotKeySet("{;}", "notepad")
HotKeySet("{,}", "notepad")
HotKeySet("{/}", "notepad")
HotKeySet("{?}", "notepad")
HotKeySet("{.}", "notepad")
HotKeySet("{<}", "notepad")
HotKeySet("{>}", "notepad")
HotKeySet("{}}", "notepad")
HotKeySet("{\}", "notepad")
HotKeySet("{{}", "notepad")
HotKeySet("{|}", "notepad")
HotKeySet("{=}", "notepad")
HotKeySet("{+}", "notepad")
HotKeySet("{-}", "notepad")
HotKeySet("{_}", "notepad")
HotKeySet("{(}", "notepad")
HotKeySet("{)}", "notepad")
HotKeySet("{*}", "notepad")
HotKeySet("{&}", "notepad")
HotKeySet("{^}", "notepad")
HotKeySet("{%}", "notepad")
HotKeySet("{$}", "notepad")
HotKeySet("{#}", "notepad")
HotKeySet("{@}", "notepad")
HotKeySet("{!}", "notepad")
HotKeySet("{`}", "notepad")
HotKeySet("{~}", "notepad")
HotKeySet("{1}", "notepad")
HotKeySet("{2}", "notepad")
HotKeySet("{3}", "notepad")
HotKeySet("{4}", "notepad")
HotKeySet("{5}", "notepad")
HotKeySet("{6}", "notepad")
HotKeySet("{7}", "notepad")
HotKeySet("{8}", "notepad")
HotKeySet("{9}", "notepad")
HotKeySet("{0}", "notepad")

While True
    Sleep(100)
WEnd

Func _Exit()
    ConsoleWrite("Terminate Programm" & @CRLF)
    Exit
EndFunc

Func notepad()
    ConsoleWrite("Start Notepad" & @CRLF)
    Run("notepad.exe")
EndFunc

That's because your program doesn't do anything. It terminates as soon as you start it.

BTW : Why do you use so many characters (HotKeySets) just to start Notepad ?

Edited by Musashi

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

  • Moderators
Posted (edited)

generic-username,

I echo the question posed above: why are you using so many HotKeys? Because, as explained in this announcement, you are very firmly in keylogger territory here.

M23

P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out.

 

Edited by Melba23
Fixed link

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

Oh, sorry. I didn't know that it could be a keylogger. I was just going to compile it to a .exe file and share it to my friends as a prank that would pretty much crash their computer. (you can still press esc to exit) Tell me if it's prohibited, I don't wanna break any laws.

  • Moderators
Posted

generic-username,

  Quote

share it to my friends as a prank that would pretty much crash their computer[...] Tell me if it's prohibited, I don't wanna break any laws.

Expand  

You appear not to have read the Forum rules since your arrival. Please do read them - particularly the bit about not discussing prank scripts - before you post again and then you will understand why you will get no help and this thread will now be locked.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...