elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   .NET Languages (https://www.elitepvpers.com/forum/net-languages/)
-   -   VB Bot-Codeing Problem (Anweisung...) (https://www.elitepvpers.com/forum/net-languages/819594-vb-bot-codeing-problem-anweisung.html)

SuperY456 11/04/2010 09:43

VB Bot-Codeing Problem (Anweisung...)
 
Ich möchte in VB ein Bot Coden (NUR IN VB!)
Meine Probleme:
Was ist der Begriff für Tabulator?
Wie mach ich das am besten (nicht mit Sendkeys)
sondern mit? ich glaube die Anweisung war Process.send???



Danke im Vorraus!!
:handsdown::handsdown::handsdown:

xSkattyO 11/04/2010 11:25

Quote:

Originally Posted by SuperY456 (Post 7530331)
Ich möchte in VB ein Bot Coden (NUR IN VB!)
Meine Probleme:
Was ist der Begriff für Tabulator?
Wie mach ich das am besten (nicht mit Sendkeys)
sondern mit? ich glaube die Anweisung war Process.send???



Danke im Vorraus!!
:handsdown::handsdown::handsdown:



würde mich auch interessieren...

Mi4uric3 11/04/2010 16:52

Und jetzt nochmal auf Deutsch.

Kuchenfreak™ 11/04/2010 17:04

Also die Tabulator-Taste heißt einfach Tab

Senkeys.Send(Keys.Tab)

Beim rest müsstest du dich etwas genauer ausdrücken sonst weiß keiner was du machen möchtest!

Mi4uric3 11/04/2010 17:14

Quote:

Originally Posted by Kuchenfreak™ (Post 7536818)
Senkeys.Send(Keys.Tab)

Quote:

Wie mach ich das am besten (nicht mit Sendkeys)
Ich denke mit dem Zitat ist alles gesagt ;)

xSkattyO 11/04/2010 17:29

Quote:

Originally Posted by Kuchenfreak™ (Post 7536818)
Also die Tabulator-Taste heißt einfach Tab

Senkeys.Send(Keys.Tab)

Beim rest müsstest du dich etwas genauer ausdrücken sonst weiß keiner was du machen möchtest!

also ich möchte eine tastenkombi an den Prozess TClient.exe schicken...

Mi4uric3 11/04/2010 17:37

Wie lautet die Tastenkombination denn?

Ist der Prozess irgendwie vor Eingriffen geschützt?

xSkattyO 11/04/2010 17:43

Quote:

Originally Posted by Mi4uric3 (Post 7537444)
Wie lautet die Tastenkombination denn?

Ist der Prozess irgendwie vor Eingriffen geschützt?

jo. aber ich weiß ja nicht wie der heißt...
deshalb frage ich

MoepMeep 11/04/2010 19:03

Nach virtual keycodes suchen muss echt schwer sein :<

xSkattyO 11/04/2010 20:37

Quote:

Originally Posted by MoepMeep (Post 7539311)
Nach virtual keycodes suchen muss echt schwer sein :<

verstehe ich i-wie net erklährung bitte!

MoepMeep 11/05/2010 09:07

[Only registered and activated users can see links. Click Here To Register...] pew pew :>

xSkattyO 11/05/2010 12:10

Quote:

Originally Posted by MoepMeep (Post 7545488)
[Only registered and activated users can see links. Click Here To Register...] pew pew :>

wie setz ich das ein?

Mit
Code:

My.Computer.Keyboard.sendkeys("{VK_1}")
geht das nicht!


BITTE HILFE!!!!!!!!:handsdown::handsdown::handsdown::han dsdown:

Mi4uric3 11/05/2010 16:19

Dann Google halt nach "vb.net virtual-key codes benutzen"
Ist doch nicht so schwer.

togarda 11/06/2010 12:49

re
 
Code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Threading;

namespace BobbyBot
{
    class SendMessageClass
    {
        [DllImport("user32.dll")]
        public static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);
        IntPtr handle;
        uint WM_KEYUP = 0x0101;
        uint WM_KEYDOWN = 0x0100;
        //liste
        public int VK_TAB = 0x09;
        public int VK_SPACE = 0x20;
        public int VK_LEFT = 0x25;
        public int VK_UP = 0x26;
        public int VK_DOWN = 0x28;
        public int VK_5 = 0x35;
        public int VK_6 = 0x36;
        //*****


        public void SetHandle(int pid)
        {
            Process proc = Process.GetProcessById(pid);
            handle = proc.MainWindowHandle;
        }

        public void SendDown(int VK)
        {
            SendMessage(handle, WM_KEYDOWN, VK, 0);
        }

        public void SendUp(int VK)
        {
            SendMessage(handle, WM_KEYUP, VK, 0);
        }

        public void SendWithDelay(int VK, int ms)
        {
            SendMessage(handle, WM_KEYDOWN, VK, 0);
            Thread.Sleep(ms);
            SendMessage(handle, WM_KEYUP, VK, 0);
        }
    }
}

und [Only registered and activated users can see links. Click Here To Register...] eine weitere VK liste... dies ist im übrigen sendmessage und nicht sendkey... Vorteil: das programm kann im hintergrund laufen und die keys werden trotzdem gesendet

xSkattyO 11/06/2010 18:23

Quote:

Originally Posted by togarda (Post 7563444)
Code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Threading;

namespace BobbyBot
{
    class SendMessageClass
    {
        [DllImport("user32.dll")]
        public static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);
        IntPtr handle;
        uint WM_KEYUP = 0x0101;
        uint WM_KEYDOWN = 0x0100;
        //liste
        public int VK_TAB = 0x09;
        public int VK_SPACE = 0x20;
        public int VK_LEFT = 0x25;
        public int VK_UP = 0x26;
        public int VK_DOWN = 0x28;
        public int VK_5 = 0x35;
        public int VK_6 = 0x36;
        //*****


        public void SetHandle(int pid)
        {
            Process proc = Process.GetProcessById(pid);
            handle = proc.MainWindowHandle;
        }

        public void SendDown(int VK)
        {
            SendMessage(handle, WM_KEYDOWN, VK, 0);
        }

        public void SendUp(int VK)
        {
            SendMessage(handle, WM_KEYUP, VK, 0);
        }

        public void SendWithDelay(int VK, int ms)
        {
            SendMessage(handle, WM_KEYDOWN, VK, 0);
            Thread.Sleep(ms);
            SendMessage(handle, WM_KEYUP, VK, 0);
        }
    }
}

und [Only registered and activated users can see links. Click Here To Register...] eine weitere VK liste... dies ist im übrigen sendmessage und nicht sendkey... Vorteil: das programm kann im hintergrund laufen und die keys werden trotzdem gesendet



ist das nicht für AutoIt???

togarda 12/25/2011 01:32

Quote:

Originally Posted by xSkattyO (Post 7569138)
ist das nicht für AutoIt???

ne c#


All times are GMT +2. The time now is 02:42.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.