Jump to content
Sign in to follow this  
Luv

Making a keypresser

Recommended Posts

Luv

Hello,

i wanted to make a keypresser that sends (1) into 1 or 2 game clients every 30secs....and i want to distinguish the game clients through Handel or process ID

window Class AIONClientWndClass1.0

window handle 0x00000000003004D6

window title AION Client

i know the function to use is Controlsend but i`m not sure how to write the script..can someone help me with that?

regards

Share this post


Link to post
Share on other sites
somdcomputerguy

Experiment around with the example code about ControlSend.


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

Experiment around with the example code about ControlSend.

i tried this but i dunno how to loop it every 30secs..also that code didnt work.

$windows = WinList("[CLASS:AIONClientWndClass1.0]")

$total = $windows[0][0]

for $i = 1 to $total step 1

ControlSend($windows[$i][1], "", "", "1")

Next

Share this post


Link to post
Share on other sites
Richard Robertson

We don't support bots here.

Share this post


Link to post
Share on other sites
Luv

We don't support bots here.

thats not a bot!

while 1

$windows = WinList("[CLASS:AIONClientWndClass1.0]")

$total = $windows[0][0]

for $i = 1 to $total step 1

ControlSend($windows[$i][1], "", "", "1")

Next

Sleep(2000)

wend

not working yet!

Share this post


Link to post
Share on other sites
somdcomputerguy
ControlSend; as is the name; Sends, to a Control. This line, ControlSend($windows[$i][1], "", "", "1"), specifies a title, but no control ID..

- 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
Richard Robertson

Is the Aion you are trying to send keypresses to this? http://na.aiononline.com/

Because that's what your window class tells me.

Share this post


Link to post
Share on other sites
Tvern

thats not a bot!

Then what is it? A fine glass of wine? Because if it is a "deep-link", "page-scrape", "robot", "spider" or other automatic device, program, algorithm or methodology, or any similar or equivalent manual process, to access, acquire, copy or monitor any portion of the site or any content. You should know that you may not use any "deep-link", "page-scrape", "robot", "spider" or other automatic device, program, algorithm or methodology, or any similar or equivalent manual process, to access, acquire, copy or monitor any portion of the site or any content.

Share this post


Link to post
Share on other sites
Luv

while 1

$windows = WinList("[CLASS:AIONClientWndClass1.0]")

$total = $windows[0][0]

for $i = 1 to $total step 1

ControlSend(HWnd($windows[$i][1]), "", "", "1")

Next

Sleep(2000)

wend

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.