Jump to content

Recommended Posts

Posted

hello, im now in the function ispressed but i have a problem i put a filewrite that will write an ispressed but it puts it to many times in the file here is my code

#include <Misc.au3>

While 1

If _IsPressed("42") then

FileWrite("new.txt","b")

EndIf

WEnd

lets say i press b 2 times, the scrip writes in the archive bbbbbbbbbbbbbbbbbbbbbbbb i tried with sleep but if i let the b pressed it wont match

Posted

Check out HotKeySet() it may provide what you need :D

But if you rather go with _Ispressed() then sleep the loop by 100-250 ms, that works for me in most cases :D

Broken link? PM me and I'll send you the file!

Posted

  monoceres said:

Check out HotKeySet() it may provide what you need :D

But if you rather go with _Ispressed() then sleep the loop by 100-250 ms, that works for me in most cases :D

can u explain it how

Posted

HotKeySet("b","b_pressed")
while 1
Sleep(10)
WEnd

Func b_pressed()
FileWrite("new.txt","b")
EndFuncoÝ÷ ØêðØH²Þ²Çjëh×6#include <misc.au3>
while 1
sleep(10)
If _IsPressed("42") Then
FileWrite("new.txt","b")
Sleep(250)
EndIf
WEnd

Note that I added an extra sleep after a keyboard input was detected, that's making the script wait until it will accept another key.

Broken link? PM me and I'll send you the file!

Posted

  monoceres said:

Check out HotKeySet() it may provide what you need :D

But if you rather go with _Ispressed() then sleep the loop by 100-250 ms, that works for me in most cases :D

thanks

Posted

  monoceres said:

HotKeySet("b","b_pressed")
while 1
Sleep(10)
WEnd

Func b_pressed()
FileWrite("new.txt","b")
EndFuncoÝ÷ ØêðØH²Þ²Çjëh×6#include <misc.au3>
while 1
sleep(10)
If _IsPressed("42") Then
FileWrite("new.txt","b")
Sleep(250)
EndIf
WEnd

Note that I added an extra sleep after a keyboard input was detected, that's making the script wait until it will accept another key.

hey got a problem with hotkey

Func b_pressed()

FileWrite("new.txt","b")

Send("b")

EndFunc

it doesnt write b

Posted

  KentonBomb said:

Am I the only one who realizes that this is a keylogger code?

whats a keylogger is it a function of autoit, i have scite 3 and i search for that function i found nothing, is it from a higher or lower version

cause if u see im new to autoit im learning functions of it, does this keylogger is a part of hotkey???

Posted

  tsue said:

whats a keylogger is it a function of autoit, i have scite 3 and i search for that function i found nothing, is it from a higher or lower version

cause if u see im new to autoit im learning functions of it, does this keylogger is a part of hotkey???

A keylogger is an application which logs keys and is used for (mostly) illegal purposes (stealing passwords etc.)
Posted

  AdmiralAlkex said:

A keylogger is an application which logs keys and is used for (mostly) illegal purposes (stealing passwords etc.)

ohhhhhh, but im not creating keylogger i yust want to know why after i put HotKeySet("b","b_pressed") it doesnt writes a b i figure that it takes the function of b and it puts the function of what i made so thats why i put a send("b") but my computer stills not send that function, so that all my question how do i make it to write b

HotKeySet("b","b_pressed")

while 1

Sleep(10)

WEnd

Func b_pressed()

FileWrite("new.txt","b")

Sleep(1000)

Send("b")

EndFunc

Posted

  tsue said:

ohhhhhh, but im not creating keylogger i yust want to know why after i put HotKeySet("b","b_pressed") it doesnt writes a b i figure that it takes the function of b and it puts the function of what i made so thats why i put a send("b") but my computer stills not send that function, so that all my question how do i make it to write b

HotKeySet("b","b_pressed")

while 1

Sleep(10)

WEnd

Func b_pressed()

FileWrite("new.txt","b")

Sleep(1000)

Send("b")

EndFunc

ok if i put it like this dont know if its my computer but here it is

HotKeySet("b","b_pressed")

Func b_pressed()

Send("b")

EndFunc

it stills not send me the b. is it that autoit erase the function and overrite it with a function u write except if it means sending b

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