Jump to content

how to detect = press


Recommended Posts

hello, im having trouble detecting the "ú" key

i have used hotkey but it interups the scrip, and i ispress doesnt detect it

pos this is not intended for a keylogger program, yust need this ú key

this program if for educational purpose

Edited by tsue
Link to comment
Share on other sites

  • Moderators

tsue,

Why do you need to detect this particular key? Where is it on your keyboard?

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

Where is it on your keyboard?

well im mexican and we use this particular key ú ó í the one ontop the letters its called acento i dont know the name in english its a combination of one key plus a e i o u

i belive the ascii has these words, so it can be more easyly detected than the combination of this two keys, but i dont know how

Why do you need to detect this particular key?

its for a gramatical program

pos feel free to correct my english ill apreciate it

Link to comment
Share on other sites

  • Moderators

tsue,

Your English is fine. :mellow:

Where is it on your keyboard?

My English keyboard does not have a ú key - that is why I asked. :party:

Do you need to press 2 keys to get ú or just one? If 2 keys, which ones?

I believe you when you say that your script is not a keylogger, but you must understand that in helping you we do not want to help someone who wanted to do something less innocent. :P

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

tsue,

Your English is fine. :mellow:

My English keyboard does not have a ú key - that is why I asked. :party:

Do you need to press 2 keys to get ú or just one? If 2 keys, which ones?

I believe you when you say that your script is not a keylogger, but you must understand that in helping you we do not want to help someone who wanted to do something less innocent. :P

M23

2 letters to get ú well i found a combination in a english keyboard the first key is left to the enter if ypu press it twice it gives this '' but if you press it once then u it gives this ú, i dont know the name of that key

Link to comment
Share on other sites

  • Moderators

tsue,

I have based this script on what I can find about US and Spanish keyboards. I know I am using an English one and you a Mexican, but we have to start with something... :P

It fires when you press the " key, release it and then press the U key within one second - which is what you said you have to do to get ú on your keyboard.

#include <Misc.au3>

HotKeySet("{ESC}", "On_Exit")

$dll = DllOpen("user32.dll")

$fHit = False

While 1
    If _IsPressed("C0", $dll) Then
        While _IsPressed("C0", $dll)
            Sleep(10)
        WEnd
        $iBegin = TimerInit()
        Do
            If _Ispressed("55", $dll) Then
                $fHit = True
                ExitLoop
            EndIf
        Until TimerDiff($iBegin) > 1000
    EndIf

    If $fHit Then
        $fHit = False
        MsgBox(0, "Hit", "You pressed the combination of keys to make ú on a Mexican keyboard")
    EndIf

WEnd

Func On_Exit()
    DllClose($dll)'u
    Exit
EndFunc

It works for me using the equivalent keys - does it work for you? :mellow:

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

  • Moderators

tsue,

Glad I could help! :mellow:

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...