Sign in to follow this  
Followers 0
TomaSzz

send key down

9 posts in this topic

ok.i searched forumand help but i cant find how to make this.----there is input box and in it u enter number 1-99999999999[as much as u like..infinite lets say]and determined on the number a down arror will be pressed that much as inserted number in box..how to do that eh?smart guys :idea:

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

ty vm

EDit: dont work...

Edited by TomaSzz

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

owrit then how do i add it to my script?

in place of $Label3

this thing is new to me... soits kinda hard for me u know... :idea:

#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <SendMessage.au3>
#include <GuiButton.au3>
#include <File.au3>
#include <IE.au3>
#include <INet.au3>
#include <StaticConstants.au3>
#include <ProgressConstants.au3>
#include <GuiTab.au3>
#include <TabConstants.au3>

Global Const $SC_DRAGMOVE = 0xF012
Global $iMemo

HotKeySet("{ESC}", "On_Exit") ; Press ESC to exit
Func On_Exit()
    Exit
EndFunc

Local $btn, $chk, $rdo, $Msg, $exit, $a, $i
Local $file = "cabalmain.exe"
Local $forum, $oIE, $min, $w, $w1, $1Enter

$hGUI = GUICreate("launcher", 642, 493, -1, -1, $WS_POPUP, $WS_EX_LAYERED)
Opt("TrayIconHide", 1)

GUICtrlCreatePic("Launcher\GUI\gfx\MAIN copy.jpg", 0, 0, 642, 493)
GUICtrlSetState(-1, $GUI_DISABLE) ; Do not forget to disable the background
$hTab = GUICtrlCreateTab(0, 0, 0, 0)
$TabSheet1 = GUICtrlCreateTabItem("Acces");==>add more controls into this down there...for this tab only
$Label1 = GUICtrlCreateLabel("Acces/Password:", 3, 56, 100, 30)
$Enter = GUICtrlCreateButton("Button1", 140, 91, 120, 30, $BS_BITMAP)
$Label2 = GUICtrlCreateLabel("This bot is made by ForceHacks™ ©2010", 0, 0, 100, 50)
_GUICtrlButton_SetImage($Enter, "Login copy.bmp")
$sInput = GUICtrlCreateInput("", 96, 54, 233, 21)
$TabSheet2 = GUICtrlCreateTabItem("BOT");here you can put more controls
$1Enter = GUICtrlCreateButton("LOGIN", 400, 300, 200, 20)
$ch = GUICtrlCreateButton("test", 200, 200, 200, 20)
$Label2 = GUICtrlCreateLabel("This bot is made by ForceHacks™ ©2010", 0, 0, 100, 50)
$Label3 = GUICtrlCreateInput("channel", 50, 50, 100, 20)
GUICtrlCreateTabItem("");==>add control for both tabs


GUISetState(@SW_SHOW)

MemoWrite("Button1 Image Handle: " & _GUICtrlButton_GetImage($btn))

While 1

    Switch GUIGetMsg()
        Case $GUI_EVENT_PRIMARYDOWN ; Mouse button down
            _SendMessage($hGUI, $WM_SYSCOMMAND, $SC_DRAGMOVE, 0) ; Tell GUI to drag with the mouse
    $Msg = GUIGetMsg()
        If $Msg = $GUI_EVENT_CLOSE Then ExitLoop
        Case $1Enter
            If WinExists("CABAL") Then
                WinActivate("CABAL")
                Sleep(400)
                Send(GUICtrlRead($sInput))
                Sleep(400)
                Send("{ENTER}")
            Else
                MsgBox(64, "Error", "Cabal window not found!Please Start the game then run the bot!")
                Exit $hGUI
            EndIf
        Case $Enter
            _GUICtrlTab_ClickTab($hTab, 1, "left", True)
        Case $ch
            ;==>here s the thing with the down button pressed from entered number...
    EndSwitch
            
WEnd

    Exit

; Write a line to the memo control
Func MemoWrite($sMessage)
    GUICtrlSetData($iMemo, $sMessage & @CRLF, 1)
EndFunc   ;==>MemoWrite
Edited by TomaSzz

Share this post


Link to post
Share on other sites

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

?lol this is not a bot im doing... its for a download program...im lazy to look over downloads and reload them when they brake..

Edited by TomaSzz

Share this post


Link to post
Share on other sites

I'm new to autoit also, and:

- I read the documentation before I ask for help

- I read other posts related to what I want to do

- I read what others (the persons who reply to my post) write.

You don't do any of that...

And the last thing: I don't like games! Just those for 2-5 years that I play with my kids.

Share this post


Link to post
Share on other sites

I'm new to autoit also, and:

- I read the documentation before I ask for help*done last night 00:00-02:00

- I read other posts related to what I want to do*done last night 00:00-02:00

- I read what others (the persons who reply to my post) write.*done last night 00:00-02:00

You don't do any of that...

And the last thing: I don't like games! Just those for 2-5 years that I play with my kids.

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