Jump to content

Hotkey stops whenever I run the script


Recommended Posts

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

 

Link to comment
Share on other sites

58 minutes ago, generic-username said:

Any help would be greatly appreciated

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."

Link to comment
Share on other sites

  • Moderators

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:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Moderators

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.

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:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...