Jump to content

Help about send key pls


 Share

Recommended Posts

i cant send key to inactive window(a game client).when i use send a---z key its able(im using controlsend()) but cant send 12345678 or F1 F2 ...F8.Can u help me pls.i got blank controlid but its still not work.i think i have to use sendmessage or postmessage.Anyone help me pls.The game what i'm playing is Zxonline or Qworld.Thx for helping.

P/s:sry because im bad at english.

Link to comment
Share on other sites

i cant send key to inactive window(a game client).when i use send a---z key its able(im using controlsend()) but cant send 12345678 or F1 F2 ...F8.Can u help me pls.i got blank controlid but its still not work.i think i have to use sendmessage or postmessage.Anyone help me pls.The game what i'm playing is Zxonline or Qworld.Thx for helping.

P/s:sry because im bad at english.

Hi there,

Do you have any code made?

What do you want to do?

What's the name of the window?

Send witch keys?

How many times?

Cheers

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Link to comment
Share on other sites

Hi there,

Do you have any code made?

What do you want to do?

What's the name of the window?

Send witch keys?

How many times?

Cheers

>>>> Window <<<<

Title: 诛仙

Class: ZElementClient Window

Position: 108, 67

Size: 807, 633

Style: 0x94CE0000

ExStyle: 0x00000100

Handle: 0x00050632

>>>> Control <<<<

Class:

Instance:

ClassnameNN:

Advanced (Class):

ID:

Text:

Position:

Size:

ControlClick Coords:

Style:

ExStyle:

Handle: 0x0001008A

>>>> Mouse <<<<

Position: 230, 294

Cursor ID: 0

Color: 0x294531

>>>> StatusBar <<<<

>>>> Visible Text <<<<

>>>> Hidden Text <<<<

I want to send F1,F2,F3... or 1,2,3,4... and Tab key :).

Thx for helping.

Sure i tried coding some program.Tried controlsend but not work.

Edited by idontknow
Link to comment
Share on other sites

>>>> Window <<<<

Title: 诛仙

Class: ZElementClient Window

Position: 108, 67

Size: 807, 633

Style: 0x94CE0000

ExStyle: 0x00000100

Handle: 0x00050632

>>>> Control <<<<

Class:

Instance:

ClassnameNN:

Advanced (Class):

ID:

Text:

Position:

Size:

ControlClick Coords:

Style:

ExStyle:

Handle: 0x0001008A

>>>> Mouse <<<<

Position: 230, 294

Cursor ID: 0

Color: 0x294531

>>>> StatusBar <<<<

>>>> Visible Text <<<<

>>>> Hidden Text <<<<

I want to send F1,F2,F3... or 1,2,3,4... and Tab key :).

Thx for helping.

Sure i tried coding some program.Tried controlsend but not work.

Has no info about control...

Try MouseClick

Cheers

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Link to comment
Share on other sites

But if i move my skill to other place or resize window,it cant click...

CAn u help me about sendmessage or postmessage.

Thx.

I'll help you for sure,

How far did you get so far?

Lets see some code :)

Cheers

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Link to comment
Share on other sites

  • Moderators

ControlSend(info here..., info here..., info here..., "{F1}")

Surrounding the "F" keys with curly brackets should be fine.

If you're having an issue sending raw keys like 1,2,3, etc... make sure you're 1 not using curly brackets on the, 2 might try raw mode (1) for the last parameter of Send()/ControlSend().

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Func Mp_Check()

If not $Mp_Ok then

If TimerDiff($Timer_Mp)> 5000 Then

$Mp_Ok = True

EndIf

EndIf

If (Mp_Curren() <> 0) and (Mp_Curren() < $Mp_Danger) and $Mp_Ok Then

Send($Mp_key_D1)

Sleep(100)

$Mp_Ok = False

$Timer_Mp = TimerInit()

EndIf

EndFunc

Help pls.

@SmOke_N:i said i tried controlsend() but cant:(.

Thx.

Link to comment
Share on other sites

  • Moderators

pls help me :)

Keep the bumps over 24 hours since your last post.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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...