Jump to content

If press * after press * do some


Recommended Posts

Hi guys

I can not know that how can i use this :

;if _ispress("31") and (after _ispress("31") pressed then typing "Hello i am here") and 
;if _ispress("31") "again" , then typing "i am not here"
;endif
;============================================

It's meaning , 

For "first" time if click on "Number 1 Button On Keyboard" , do something... ,and

For "second" time if click on "Number 1 Button On Keyboard", do something else.

thanks.

Link to post
Share on other sites
#include <Misc.au3>
$i = ""

while 1
    If _IsPressed("31") Then
        ConsoleWrite("I am" & $i & " Here" & @LF)
        $i = $i = "" ? " Not" : ""
        sleep(500)
    EndIf
    sleep(50)
WEnd

 

That's not a terrible first post, thanks for the pseudo code.  When you use a new UDF like you may be now with Misc, i suggest hitting alt-i on the include line and browsing it.  Lots of fun things inside.

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to post
Share on other sites

Thanks but my question is like this : 

1 ) Click on "enter" or "1"

2 ) Type something ( example hello ,etc ) in every where ( ex : notepad , inputbox ,etc )

3 ) Click again on "1"

4 ) MsgBox that typed ( example : hello ) 

it's like chat but contrariwise its meant ( 2 time click on "enter" and type some thing ) ..

Thanks alot.

Link to post
Share on other sites

I use this : 

#include <String.au3>
#include <Misc.au3>

While 1
    _Ex()
WEnd

Func _Ex()
    For $iX = 1 To 254
        If _IsPressed(Hex($iX)) Then
            $B = _HexToString(Hex($iX,2))
            If _IsPressed("0D") Then
                Sleep(100)
            Do
                $statKey = _IsPressed("0D")
            Until $statKey = 1
                MsgBox(0,0,$B)
            EndIf
        EndIf
    Next
EndFunc

but when i press "enter" and type "hello" after press "enter" no result found :(

 

Link to post
Share on other sites
  • Moderators

panda_k3,

You were straying into keylogger territory with that last post - please read this announcement to see what is and what is not permitted here.

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 post
Share on other sites
1 minute ago, Melba23 said:

panda_k3,

You were straying into keylogger territory with that last post - please read this announcement to see what is and what is not permitted here.

M23

Hi melba i don't want to create keylogger , i want to send key to website and get result,

i copy this code from other guys,

i'm zxtnt09 i forgot my password and i can not reset my password..

Link to post
Share on other sites
  • Moderators

panda_k3,

I know you do not want to create a keylogger - or this thread would already be closed - but you are straying into keylogger territory by looking for too many keys, as explained in the announcement to which I linked.

If you have forgotten your password, PM me with the email address you used for the zxtnt09 account and I will reset it for you (and merge the 2 accounts).

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 post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...