Jump to content

Sendkey prob


 Share

Recommended Posts

What about:

HotKeySet("{F5}", "clicker")
HotKeySet("{F8}", "terminate")

While 1
    Sleep(1000)
WEnd

Func clicker()
    $GetHandle = WinGetHandle("MuOnline") ; Or whatever the title may be :)
    $GetTitle = WinGetTitle("MuOnline") ; Same story :)
    If Not WinActive($GetTitle) Then WinActivate($GetTitle)
    WinWait($GetTitle)
    While 1
        Sleep(1000)
        ControlSend($GetTitle, "", $GetHandle, "2") ; I think you sould test '{2}' aswell
        Sleep(1000)
        ControlClick($GetTitle, "", $GetHandle, "right", 980, 45, 1, 1)
        Sleep(1000)
        ControlClick($GetTitle, "", $GetHandle, "right", 980, 75, 1, 1)
    WEnd
EndFunc

Func terminate()
    Exit
EndFunc

AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

Are you trying to make it login and its not clicking the buttons? If so I know the problem.(made an mu bot lol)

*edit - just going to go ahead and post it now incase that is the problem to save time.

That game is very laggy so you have to do it like this.

MouseMove(980, 45, 1)
MouseDown("left")
Sleep( 1000 )
MouseUp("Left")

Also alarm control doesn't work with MUOnline.

Edited by IKilledBambi
Link to comment
Share on other sites

What about:

HotKeySet("{F5}", "clicker")
HotKeySet("{F8}", "terminate")

While 1
    Sleep(1000)
WEnd

Func clicker()
    $GetHandle = WinGetHandle("MuOnline") ; Or whatever the title may be :)
    $GetTitle = WinGetTitle("MuOnline") ; Same story :)
    If Not WinActive($GetTitle) Then WinActivate($GetTitle)
    WinWait($GetTitle)
    While 1
        Sleep(1000)
        ControlSend($GetTitle, "", $GetHandle, "2") ; I think you sould test '{2}' aswell
        Sleep(1000)
        ControlClick($GetTitle, "", $GetHandle, "right", 980, 45, 1, 1)
        Sleep(1000)
        ControlClick($GetTitle, "", $GetHandle, "right", 980, 75, 1, 1)
    WEnd
EndFunc

Func terminate()
    Exit
EndFunc

AlmarM

ty for code

This got gave me incorret number of paramaters in function call.error

Link to comment
Share on other sites

Are you trying to make it login and its not clicking the buttons? If so I know the problem.(made an mu bot lol)

*edit - just going to go ahead and post it now incase that is the problem to save time.

That game is very laggy so you have to do it like this.

MouseMove(980, 45, 1)
MouseDown("left")
Sleep( 1000 )
MouseUp("Left")

Also alarm control doesn't work with MUOnline.

if u made mu bot before u may help me :mellow:

i havent any problem mouse movement and mouse click i didnt send any key no matter what enter or numbers i didnt do this.

Link to comment
Share on other sites

What resolution are you at? And just so we are clear, you are stuck at the login page correct? I found it much much easier just to make a bot that starts after you get to your first spot and teleports from there, you will never be able to make a complete bot because there is a confirmation code on the website to reset.

Link to comment
Share on other sites

What resolution are you at? And just so we are clear, you are stuck at the login page correct? I found it much much easier just to make a bot that starts after you get to your first spot and teleports from there, you will never be able to make a complete bot because there is a confirmation code on the website to reset.

Hey buddy 1024*768 resolution i havent any problem about login char.and i didnt understand what u mean about website reset.

probably my bad my english is sucks

just all i need send a key to game anything.

Link to comment
Share on other sites

Try this. You will have to edit the numbers to what you have yours skills set to obviously.

; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

;;;; Body of program would go here;;;;
While 1
    Sleep(100)
    Send("{1}")
    Sleep(1500)
    MouseDown("Right")
    Sleep( 1000 )
    MouseUp("Right")
    Sleep( 500 )
    Send("{2}")
    Sleep( 1500 )
    MouseDown("Right")
    Sleep( 1000 )
    MouseUp("Right")
    Sleep( 1000 )
    Sleep( 180000 )
    Send("{3}")
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

I didn't tidy because I reformated and I no-longer have tidy in my autoit. :)

Link to comment
Share on other sites

Try this. You will have to edit the numbers to what you have yours skills set to obviously.

; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

;;;; Body of program would go here;;;;
While 1
    Sleep(100)
    Send("{1}")
    Sleep(1500)
    MouseDown("Right")
    Sleep( 1000 )
    MouseUp("Right")
    Sleep( 500 )
    Send("{2}")
    Sleep( 1500 )
    MouseDown("Right")
    Sleep( 1000 )
    MouseUp("Right")
    Sleep( 1000 )
    Sleep( 180000 )
    Send("{3}")
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

I didn't tidy because I reformated and I no-longer have tidy in my autoit. :)

im grateful for your helps but as i said before i have not any prob about mouse movent su u gave me nothing new.sned key wont work like this send("{any}") i tryed every combination. i just need how can i send key by diffrent way couse its not working send("{xxx}")

There is a bot working created by autoit its name call "Kiasu" so i wondering how he can able to send key by autoit im sure he is a member of this forum.lol

Link to comment
Share on other sites

Thank you much for replys guys.

Specially AlmarM november and IkilledBambi

code workifn very well right now i just resetup AutoIt v3 Script : 3, 2, 4, 9

last version not working send key to game for me(sounds its crazy)

also i add WinActive() and KeySendDelay.

Edited by metjumper
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...