Jump to content

Gaffgarion

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Gaffgarion

  1. i found this script by melba23 and its exactly what i wanted > link #include <Misc.au3> #include <MsgBoxConstants.au3> Local $hDLL = DllOpen("user32.dll") HotKeySet("{q}","_Start") ; Fire HotKey on q key HotKeySet("{ESC}", "_Exit") While 1 Sleep(10) WEnd Func _Start () ; Look for w key If _IsPressed("57", $hDLL) Then ; Only action if BOTH pressed MsgBox($MB_SYSTEMMODAL, "", "Got it") EndIf EndFunc Func _Exit() DllClose($hDLL) Exit EndFunc if im not wrong, if i hold q key first and then press w key, then the output will be messagebox that says "got it" but when i tested it, it doesnt do anything. but if i reverse the order, hold w key first, and then press q key, it works. now i dont know why is this happen, or is this how this script supposed to do? or there's something wrong? thank you.
  2. yes, its hard to use that script, because i only press both keys in just a brief moment and the output is like 'eeeeee' i want it if i hold down Q key and then press W key 1x, the output is E key 1x, not multiple E key i also found this by melba23 #include <Misc.au3> Local $hDLL = DllOpen("user32.dll") HotKeySet("{q}","_Start") ; Fire HotKey on Q key HotKeySet("{ESC}", "_Exit") While 1 Sleep(10) WEnd Func _Start () ; Look for W key If _IsPressed("57", $hDLL) Then ; Only action if BOTH pressed Send("e") EndIf EndFunc Func _Exit() DllClose($hDLL) Exit EndFunc this works perfectly, but its the opposite of what i want, for this one, i have to hold down W key first, and then press Q key. what i needed is, hold down Q key first and then W key. thanks
  3. Hi! Started with AutoIt just some hours ago so please be gentle with me. so my keyboard "e" button is broken, but i dont want to buy a new keyboard yet, so after some thinking and browsing i decided to use autoit to fix my problem just for some time until i buy a new keyboard and i also want to take this chance to learn about autoit. my idea is to use keys combination to send the "e" button. so i want the script to function like this : if i hold "q" button, and then press "w" button, the output will be "e" button. i've tried it myself using example from this forum, but i got "error:unable to parse line". #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 If _IsPressed ("qw") Then       Send("{a}") EndIf WEnd DllClose($dll) hopefuly someone can give me a direction for this, thank you!
  4. its for gaming, yes do it for me please, sorry for not straight to the point
  5. hello im very new to autoit, and i'd like to change from autohotkey to autoit this is the script #if, getkeystate("a") s::h d::j f::k return if i hold "a" button, and then press "s" button, the output will be "h" button, and so on anyone can help me convert this to autoit script ? thanks
×
×
  • Create New...