Sign in to follow this  
Followers 0
aNewLyfe

Multiple SendKeys,

11 posts in this topic

#1 ·  Posted (edited)

hi this is my first post.

im started to learn autoit

i searched this subject but havent got any result.

my question is

is it possible to send multiple keys to an active window ?

like;

Func StartButton()

AutoItSetOption("SendkeyDelay", 500)

Do

Send($s1pKey)

Until $x = 0

EndFunc

Func 2ndStartButton()

AutoItSetOption("SendkeyDelay", 500)

Do

Send($s2pKey)

Until $x = 0

EndFunc

then it sends "12121212"

also when i add 3rdStartButton() it sends "123123123"

i tried couple ways but it sends only first clicked key. ( only 1 function )

im waiting for your help :whistle: thanks

Edited by mistakilla

:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


Link to post
Share on other sites



could you post the entire script

Here. not completed yet.

#include <GUIConstants.au3>
#include <MemWorks.au3>
#include <Hex2Dec.au3>

Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=c:\documents and settings\m0rtar\desktop\usv2kosp\ebot\kaynak\form.kxf

GLOBAL $started = 0
GLOBAL $mstarted = 0
GLOBAL $shutdownstarted = 0
GLOBAL $standap = 0
GLOBAL $Process = "KnightOnLine.exe"
GLOBAL $Pid = ProcessExists($Process)
GLOBAL $M_open = _MemOpen($pid)
GLOBAL $SW_open = _MemOpen($pid)
GLOBAL $Mana_open = _MemOpen($Pid)
GLOBAL $inifile = "setup.ini"
GLOBAL $WORKINGDIR = @ScriptDir & "\";
GLOBAL $inifile = $WORKINGDIR & "setup.ini"
GLOBAL $shutvalue = "1"

$Form1_1 = GUICreate("éBot 1.1473.10", 324, 260, 234, 156)
GUISetOnEvent($GUI_EVENT_CLOSE, "AForm1_1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "AForm1_1Minimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "AForm1_1Maximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "AForm1_1Restore")
$Tab1 = GUICtrlCreateTab(2, 2, 321, 257)
$TabSheet1 = GUICtrlCreateTabItem("Hp/Mp")
$Group1 = GUICtrlCreateGroup("", 8, 24, 308, 227)
$Label13 = GUICtrlCreateLabel("HP Potion", 17, 45, 52, 17)
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetOnEvent(-1, "ALabel13Click")
$hppotslot = GUICtrlCreateCombo("", 248, 40, 57, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "hppotslotChange")
$hppotinput = GUICtrlCreateInput("1000", 144, 40, 41, 21)
GUICtrlSetOnEvent(-1, "hppotinputChange")
$Label14 = GUICtrlCreateLabel("Use When HP", 72, 46, 72, 16)
GUICtrlSetFont(-1, 7, 400, 0, "Verdana")
GUICtrlSetOnEvent(-1, "ALabel14Click")
$hppotpage = GUICtrlCreateCombo("", 188, 40, 57, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "hppotpageChange")
$Label15 = GUICtrlCreateLabel("MP Potion", 17, 72, 53, 17)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetOnEvent(-1, "ALabel15Click")
$Label16 = GUICtrlCreateLabel("Use When MP", 72, 72, 73, 16)
GUICtrlSetFont(-1, 7, 400, 0, "Verdana")
GUICtrlSetOnEvent(-1, "ALabel16Click")
$mppotinput = GUICtrlCreateInput("1000", 144, 67, 41, 21)
GUICtrlSetOnEvent(-1, "mppotinputChange")
$mppotpage = GUICtrlCreateCombo("", 188, 67, 57, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "mppotpageChange")
$mppotslot = GUICtrlCreateCombo("", 248, 67, 57, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "mppotslotChange")
$Group2 = GUICtrlCreateGroup("Other Options", 16, 96, 289, 145)
$minorheal = GUICtrlCreateCheckbox("Use Minor Healing", 32, 120, 105, 17)
GUICtrlSetOnEvent(-1, "minorhealClick")
$sitwhenmp = GUICtrlCreateCheckbox("Auto Sit Down When MP Below", 32, 144, 169, 17)
GUICtrlSetOnEvent(-1, "sitwhenmpClick")
$sitwhenmpinput = GUICtrlCreateInput("200", 208, 140, 33, 21)
GUICtrlSetOnEvent(-1, "sitwhenmpinputChange")
$shutdownpc = GUICtrlCreateCheckbox("Shutdown PC ( When Died or Disconnected )", 32, 168, 249, 17)
GUICtrlSetOnEvent(-1, "shutdownpcClick")
$savebutton = GUICtrlCreateButton("Save Settings", 192, 192, 99, 41, 0)
GUICtrlSetOnEvent(-1, "savebuttonclick")
$normalspeed = GUICtrlCreateRadio("Normal Speed", 32, 192, 97, 17)
GUICtrlSetOnEvent(-1, "normalspeedClick")
$swspeed = GUICtrlCreateRadio("Swift Speed ( Defend Ice )", 32, 216, 153, 17)
GUICtrlSetOnEvent(-1, "swspeedClick")
$minorhealinput = GUICtrlCreateInput("0", 144, 118, 41, 21)
GUICtrlSetOnEvent(-1, "minorhealinputChange")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet2 = GUICtrlCreateTabItem("Attack")
$Label17 = GUICtrlCreateLabel("Skill", 24, 40, 23, 17)
GUICtrlSetOnEvent(-1, "ALabel17Click")
$Label18 = GUICtrlCreateLabel("Page", 136, 40, 29, 17)
GUICtrlSetOnEvent(-1, "ALabel18Click")
$Label19 = GUICtrlCreateLabel("Slot", 256, 40, 22, 17)
GUICtrlSetOnEvent(-1, "ALabel19Click")
$skill1check = GUICtrlCreateCheckbox("1 -->", 27, 64, 41, 17)
GUICtrlSetOnEvent(-1, "skill1checkClick")
$skill1page = GUICtrlCreateCombo("", 112, 60, 73, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "skill1pageChange")
$skill1slot = GUICtrlCreateCombo("", 232, 60, 73, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "skill1slotChange")
$skill2page = GUICtrlCreateCombo("", 112, 88, 73, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "skill2pageChange")
$skill2slot = GUICtrlCreateCombo("", 232, 88, 73, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "skill2slotChange")
$skill3page = GUICtrlCreateCombo("", 112, 116, 73, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "skill3pageChange")
$skill3slot = GUICtrlCreateCombo("", 232, 116, 73, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "skill3slotChange")
$skill2check = GUICtrlCreateCheckbox("2 -->", 27, 92, 41, 17)
GUICtrlSetOnEvent(-1, "skill2checkClick")
$skill3check = GUICtrlCreateCheckbox("3 -->", 27, 120, 41, 17)
GUICtrlSetOnEvent(-1, "skill3checkClick")
$standattack = GUICtrlCreateRadio("Stand Attack (Archer)", 168, 208, 129, 17)
GUICtrlSetOnEvent(-1, "standattackClick")
$runtomob = GUICtrlCreateRadio("Run To Mob", 40, 208, 89, 17)
GUICtrlSetOnEvent(-1, "runtomobClick")
$skill4check = GUICtrlCreateCheckbox("4 -->", 27, 148, 41, 17)
GUICtrlSetOnEvent(-1, "skill4checkClick")
$skill4page = GUICtrlCreateCombo("", 112, 144, 73, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "skill4pageChange")
$skill4slot = GUICtrlCreateCombo("", 232, 144, 73, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "skill4slotChange")
$skill5page = GUICtrlCreateCombo("", 112, 172, 73, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "skill5pageChange")
$skill5slot = GUICtrlCreateCombo("", 232, 172, 73, 25, $CBS_DROPDOWNLIST+$CBS_AUTOHSCROLL+$WS_VSCROLL)
GUICtrlSetOnEvent(-1, "skill5slotChange")
$skill5check = GUICtrlCreateCheckbox("5 -->", 27, 176, 41, 17)
GUICtrlSetOnEvent(-1, "skill5checkClick")
$startbutton = GUICtrlCreateButton("Start Attack", 64, 232, 83, 17, 0)
GUICtrlSetOnEvent($startbutton, "StartButton")
$stopbutton = GUICtrlCreateButton("Stop Attack", 168, 232, 83, 17, 0)
GUICtrlSetOnEvent($stopbutton, "StopButton")
$TabSheet3 = GUICtrlCreateTabItem("About")
GUICtrlSetState(-1,$GUI_SHOW)
$Label1 = GUICtrlCreateLabel("é", 126, 26, 21, 39)
GUICtrlSetFont(-1, 22, 400, 0, "Verdana")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetOnEvent(-1, "ALabel1Click")
$Label2 = GUICtrlCreateLabel("bot", 144, 26, 51, 39)
GUICtrlSetFont(-1, 22, 400, 0, "Verdana")
GUICtrlSetOnEvent(-1, "ALabel2Click")
$Label4 = GUICtrlCreateLabel(" ", 40, 104, 229, 17)
GUICtrlSetOnEvent(-1, "ALabel4Click")
$Label5 = GUICtrlCreateLabel("        ", 16, 120, 286, 17)
GUICtrlSetOnEvent(-1, "ALabel5Click")
$Label6 = GUICtrlCreateLabel("                  ", 24, 136, 253, 17)
GUICtrlSetOnEvent(-1, "ALabel6Click")
$Label7 = GUICtrlCreateLabel(" ", 24, 152, 265, 17)
GUICtrlSetOnEvent(-1, "ALabel7Click")
$Label8 = GUICtrlCreateLabel(" ", 16, 168, 288, 17)
GUICtrlSetOnEvent(-1, "ALabel8Click")
$Label9 = GUICtrlCreateLabel(" ", 16, 184, 284, 17)
GUICtrlSetOnEvent(-1, "ALabel9Click")
$Label10 = GUICtrlCreateLabel(" ", 40, 200, 240, 17)
GUICtrlSetOnEvent(-1, "ALabel10Click")
$Label11 = GUICtrlCreateLabel("WARNING", 128, 88, 57, 17)
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetOnEvent(-1, "ALabel11Click")
$Label12 = GUICtrlCreateLabel("Check For Update", 112, 232, 92, 17)
GUICtrlSetFont(-1, 7, 400, 0, "Arial Black")
GUICtrlSetColor(-1, 0xFF00FF)
GUICtrlSetOnEvent(-1, "ALabel12Click")
$Label3 = GUICtrlCreateLabel("Version 1.15xx.10 for JAPKO", 80, 64, 165, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Verdana")
GUICtrlSetColor(-1, 0x008080)
GUICtrlSetOnEvent(-1, "ALabel3Click")
GUICtrlCreateTabItem("")
GUICtrlSetOnEvent(-1, "ATab1Change")
GUISetState(@SW_SHOW)

;;;;;;;;;;;; HOTKEYS;;;;;;;;;;;;;

HotKeySet("{F9}" ,"StartButton")
HotKeySet("{F11}" ,"StopButton")

;;;;;;;;;;; HOTKEYS END;;;;;;;;;;;;

;;;;;;;; COMBOBOX DATA;;;;;;;;;;;;;;;
GUICtrlSetData($hppotpage, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}", "")
GUICtrlSetData($hppotslot, "1|2|3|4|5|6|7|8", "")
GUICtrlSetData($mppotpage, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}", "")
GUICtrlSetData($mppotslot, "1|2|3|4|5|6|7|8", "")
GUICtrlSetData($skill1page, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}", "")
GUICtrlSetData($skill2page, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}", "")
GUICtrlSetData($skill3page, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}", "")
GUICtrlSetData($skill4page, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}", "")
GUICtrlSetData($skill5page, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}", "")
GUICtrlSetData($skill1slot, "1|2|3|4|5|6|7|8", "")
GUICtrlSetData($skill2slot, "1|2|3|4|5|6|7|8", "")
GUICtrlSetData($skill3slot, "1|2|3|4|5|6|7|8", "")
GUICtrlSetData($skill4slot, "1|2|3|4|5|6|7|8", "")
GUICtrlSetData($skill5slot, "1|2|3|4|5|6|7|8", "")

;;;;;;;; COMBOBOX DATA END;;;;;;;;;;;
#EndRegion ### END Koda GUI section ###


While 1
    AutoItSetOption("WinDetectHiddenText",1)
    Sleep(100)
;;;;;;;;;;;; SENDKEY FUNC 1;;;;;;;;;;;
    If $shutdownstarted Then
    $Read = _MemRead($M_open,0x0A473CB4,4)
if _HexadecimalToDecimal($Read) < $shutvalue Then
    Shutdown(9)
Else
    sleep(100)
endif
endif
;;;;;;;;;;;, ShutDOWN WHEN DEAD;;;;;;;;;;

;;;;;;;;;;; SENDKEY FUNC 2;;;;;;;;;;;;

if $started then 
    $s1pKey = GUICtrlRead($skill1page)
    $s1sKey = GUICtrlRead($skill1slot)
    $s2pKey = GUICtrlRead($skill2page)
    $s2sKey = GUICtrlRead($skill2slot)
    $s3pKey = GUICtrlRead($skill3page)
    $s3sKey = GUICtrlRead($skill3slot)
    $s4pKey = GUICtrlRead($skill4page)
    $s4sKey = GUICtrlRead($skill4slot)
    $s5pKey = GUICtrlRead($skill5page)
    $s5sKey = GUICtrlRead($skill5slot)
    Do
        AutoItSetOption("SendKeyDelay", 500)
        Send($s1pKey)
        send("z")
        Send($s1sKey)
        send("z")
        Send($s2pKey)
        send("z")
        Send($s2sKey)
        send("z")
        Send($s3pKey)
        send("z")
        Send($s3sKey)
        send("z")
        Send($s4pKey)
        send("z")
        Send($s4sKey)
        send("z")
        Send($s5pKey)
        send("z")
        Send($s5sKey)
        send("z")
        Until $started = 0
    endif
    
;;;;;;;;;; ATTACK SETTINGS END;;;;;;;;;;;;;
; SENDKEY FUNC 3 <---------
    if $mstarted then
    Do
    $Read = _MemRead($M_open,0x0A473CB4,4)
if _HexadecimalToDecimal($Read) < GUICtrlRead($minorhealinput) Then
    send("8")
    endif
    Until $mstarted = 0
Else
    sleep(100)
    endif
WEnd

Func AForm1_1Close()
    $shutdownstarted = 0
    $mstarted = 0
    $started = 0
    $begin=MsgBox(36, "ébot - Warning", "Do you really want to exit?")
    if $begin = 6 then exit
EndFunc

        
Func AForm1_1Maximize()

EndFunc

        
Func AForm1_1Minimize()

EndFunc

        
Func AForm1_1Restore()

EndFunc

        
Func ALabel10Click()

EndFunc

        
Func ALabel11Click()

EndFunc

        
Func ALabel12Click()

EndFunc

        
Func ALabel13Click()

EndFunc

        
Func ALabel14Click()

EndFunc

        
Func ALabel15Click()

EndFunc

        
Func ALabel16Click()

EndFunc

        
Func ALabel17Click()

EndFunc

        
Func ALabel18Click()

EndFunc

        
Func ALabel19Click()

EndFunc

        
Func ALabel1Click()

EndFunc

        
Func ALabel2Click()

EndFunc

        
Func ALabel3Click()

EndFunc

        
Func ALabel4Click()

EndFunc

        
Func ALabel5Click()

EndFunc

        
Func ALabel6Click()

EndFunc

        
Func ALabel7Click()

EndFunc

        
Func ALabel8Click()

EndFunc

        
Func ALabel9Click()

EndFunc

        
Func ATab1Change()

EndFunc

        
Func hppotinputChange()

EndFunc

        
Func hppotpageChange()

EndFunc

        
Func hppotslotChange()

EndFunc

        
Func minorhealClick()
    $mstarted = 1
EndFunc

        
Func minorhealinputChange()

EndFunc

        
Func mppotinputChange()

EndFunc

        
Func mppotpageChange()

EndFunc

        
Func mppotslotChange()

EndFunc

        
Func normalspeedClick()
    $SW_open = _MemOpen($pid)
    $Value1 = _MemCreate(16256);--> this changes two or moe
    _MemWrite($SW_open, 0x0A473D42, $Value1)
    _MemClose($SW_open)
EndFunc

        
Func runtomobClick()
    
EndFunc

        
Func savebuttonclick()

EndFunc

        
Func shutdownpcClick()
    $shutdownstarted = 1
EndFunc

        
Func sitwhenmpClick()
    
EndFunc

        
Func sitwhenmpinputChange()

EndFunc

        
Func skill1checkClick()

EndFunc

        
Func skill1pageChange()

EndFunc

        
Func skill1slotChange()

EndFunc

        
Func skill2checkClick()

EndFunc

        
Func skill2pageChange()

EndFunc

        
Func skill2slotChange()

EndFunc

        
Func skill3checkClick()

EndFunc

        
Func skill3pageChange()

EndFunc

        
Func skill3slotChange()

EndFunc

        
Func skill4checkClick()

EndFunc

        
Func skill4pageChange()

EndFunc

        
Func skill4slotChange()

EndFunc

        
Func skill5checkClick()

EndFunc

        
Func skill5pageChange()

EndFunc

        
Func skill5slotChange()

EndFunc

        
Func standattackClick()
    
EndFunc

        
Func StartButton()
    $started = 1
EndFunc

        
Func StopButton()
    $started = 0
EndFunc

        
Func swspeedClick()
    $SW_open = _MemOpen($pid)
    $Value1 = _MemCreate(16320);--> this changes two or moe
    _MemWrite($SW_open, 0x0A473D42, $Value1)
    _MemClose($SW_open)
EndFunc

:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


Link to post
Share on other sites

I'm not seeing any of the functions you spoke of earlier or where $x is declared or used perhaps its in the MemWorks.au3 file if so send attachment. also, place side notes where the problem is occuring in your script and the hex2dec.au3

i used $x as an example

its $started on main script

and my problem is not with the script,

it does nice what i selected but only does 1 function,

for example, if i selected skill 1---> {F1} 1, it sends F1+1 [ they r in the same function ; (SENDKEY FUNC 2) ]

but if i selected, same (SENDKEY FUNC 2) + use minor healing (SENDKEY FUNC 3) it skips one of them, does only 1 function.

i wish u understand what i mean, im new at autoit maybe telling wrong :whistle:

im waiting help for a simple way to do multiple sendkeys :P

thanks again.


:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


Link to post
Share on other sites

@mistakilla

I don't see how the $started/$mstarted values change.

Have you debugged those loops to ensure your getting what you think?

Do

...

$started = $started - 1

Until $started = 0

similar for $mstarted loop

Still a newbie myself, so doubt everything!

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I don't see how the $started/$mstarted values change.

here, they r allready in script

Func minorhealClick()
    $mstarted = 1
EndFunc

Func StartButton()
    $started = 1
EndFunc

        
Func StopButton()
    $started = 0
EndFunc

functions working fine but only 1 SENDKEY function at 1 time,

i just wanna know how to make them work all together :whistle:

a little example again; when $mstarted = 1 then its starting to read memory for a value

if value decreases than i set, it sends key 8, its all working fine to here,

but after $mstarted = 1, it dont does any other SENDKEY function,

also when $started = 1,

or $shutdownstarted = 1..

im very new in autoit script, waiting for your helps :P

Edited by mistakilla

:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


Link to post
Share on other sites

Instead of this:

Do
        AutoItSetOption("SendKeyDelay", 500)
        Send($s1pKey)
        send("z")
        Send($s1sKey)
        send("z")
        Send($s2pKey)
        send("z")
        Send($s2sKey)
        send("z")
        Send($s3pKey)
        send("z")
        Send($s3sKey)
        send("z")
        Send($s4pKey)
        send("z")
        Send($s4sKey)
        send("z")
        Send($s5pKey)
        send("z")
        Send($s5sKey)
        send("z")
        Until $started = 0oÝ÷ Ø:+ºÚ"µÍÂ]]Ò]Ù]Ü[Û    ][ÝÔÙ[Ù^Q[^I][ÝË
L
BÙ[
    ÌÍÜÌÙ^H    [È ][ÝÞ][ÝÈ    [È ÌÍÜÌÙ^H    [È ][ÝÞ][ÝÈ    [È ÌÍÜÌÙ^H    [È ][ÝÞ][ÝÈ    [È ÌÍÜÌÙ^H    [È ][ÝÞ][ÝÈ    [È ÌÍÜÌÙ^H    [È ][ÝÞ][ÝÈ    [È ÌÍÜÌÙ^H    [È ][ÝÞ][ÝÈ    [È ÌÍÜÌÙ^H    [È ][ÝÞ][ÝÈ    [È ÌÍÜÌÙ^H    [È ][ÝÞ][ÝÈ    [È ÌÍÜÌÙ^H    [È ][ÝÞ][ÝÈ    [È ÌÍÜÌÙ^H    [È ][ÝÞ][ÝÊBÙ[
    ][ÝÞ][ÝÊB[[ ÌÍÜÝYHoÝ÷ ØÚ-zØZµ¶¦§öêºZ¶ÖÊ®¢Öè¶-®)à²Ú zØ^®Èh®×±jjey«­¢+ØÀÌØíMÑÉ¥¹ÄôÅÕ½Ðí!±±¼°µä¹µ¥ÌèÅÕ½Ðì(ÀÌØí]¡½±MÑÉ¥¹ôÀÌØíMÑÉ¥¹ÄµÀìÅÕ½Ðí-ÕÉÐÅÕ½Ðì)5ͽà À°ÅÕ½ÐìÅÕ½Ðì°ÀÌØí]¡½±MÑÉ¥¹¤

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

I would do this

Do
    AutoItSetOption("SendKeyDelay", 500)
    For $x = 1 To 10
        Send($s1pKey)
        Send("z")
    Next
Until $started = 0

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

Do

...

$started = $started - 1

Until $started = 0

:whistle: tried them in CLick event but nope, same result just one button sends keys

thanks anyway


:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

sorry, I should have paid more attention

... still not sure exact!!

If $started Then
    Local $spKey[6], $ssKey[6]
    
    $spKey[1] = GUICtrlRead($skill1page)
    $ssKey[1] = GUICtrlRead($skill1slot)
    $spKey[2] = GUICtrlRead($skill2page)
    $ssKey[2] = GUICtrlRead($skill2slot)
    $spKey[3] = GUICtrlRead($skill3page)
    $ssKey[3] = GUICtrlRead($skill3slot)
    $spKey[4] = GUICtrlRead($skill4page)
    $ssKey[4] = GUICtrlRead($skill4slot)
    $spKey[5] = GUICtrlRead($skill5page)
    $ssKey[5] = GUICtrlRead($skill5slot)

    Do
        AutoItSetOption("SendKeyDelay", 500)
        For $x = 1 To 5
            Send($spKey[$x])
            Send("z")
            Send($ssKey[$x])
            Send("z")
        Next
    Until $started = 0

EndIf

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

still havent got it to work together, :whistle:

but,

@_kurt

@valuater

also thanks for the usefull information


:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


Link to post
Share on other sites

Really sorry about my bad english but ill try to explain last time :whistle:

please build/compile this script in autoit,

then open notepad, then select skill slot then press start attack, it will start (z+$sp+$ss)

then click minor heal checkbox and see what happens :P it must send; (z+$sp+$ss+8)

but still sends (z+$sp+$ss) this is what i want to know why :D

btw thanks again for your help and usefull info.


:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


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
Sign in to follow this  
Followers 0