Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 09:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Planetside 2: Send left mouse click to game in background

Discussion on Planetside 2: Send left mouse click to game in background within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 10
Received Thanks: 0
Planetside 2: Send left mouse click to game in background

Hey,

I've just started playing around with this program and i can manage to get the script to work if I have the game in focus:

Code:
Send("{SPACE}")
Which will for example make the character jump. The idea for me is to have these things working in the background while I have other things to do on my computer, so basically have AutoIt run on an inactive window. I tried this:

Code:
ControlClick("Planetside2 v0.473.22.176761 **SHIPPING**", "", "", "", 1, 959, 545)
or even

Code:
ControlSend("[CLASS:GFC_StdWindowClass; INSTANCE:1]", "", "", "{SPACE}")
but it didn't work so does anyone have a clue on how to get control to work for PS2?
hdnine is offline  
Old 12/05/2012, 14:48   #2
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189

maybe try this
shure the name for the window is correct? maybe small version change or sth...

if ur just making an afk bot, to get some certs, then its much more efficent if you play 10 min. you only get 1 cert per hour i think

if you want to make a lvl bot im interested
butter123 is offline  
Old 12/05/2012, 21:58   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 10
Received Thanks: 0
The window seems to be correct since that's what AutoIt claims it to be. The AFK script was meant for my Sunderer but i really want it working with the window minimized. Haven't figured it out yet though >.<
hdnine is offline  
Old 12/06/2012, 00:40   #4
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
maybe ill try a bit on the we, but got no time atm
butter123 is offline  
Thanks
1 User
Old 12/07/2012, 11:22   #5
 
elite*gold: 0
Join Date: Jul 2009
Posts: 10
Received Thanks: 0
I would really appreciate if someone could give me a code example of having AutoIt communicate with Planetside 2 while minimized -- after that i will continue exploring on my own.

Since i don't understand how Windows and other OS work, and since ControlSend doesn't work, i just need to find a way to be able to send a key or mouse command as mentioned above. There seem to be different approaches like PostMessage UDF or DLL injection but i don't have a clue how these work. I'm not new to programming mind you, but i do so in JavaScript so this is new to me.

"Send" works great when the game is in focus, ControlSend doesn't work at all even though the title is correct. Seems like Window Controls is a problem? Anyway, thanks! ^^
hdnine is offline  
Old 12/08/2012, 18:52   #6
 
elite*gold: 0
Join Date: Jul 2012
Posts: 2
Received Thanks: 0
Like in the help file:

ControlSend ( "title", "text", controlID, "string" [, flag] )

so for you it should be

ControlSend("Planetside2", "", "", "{SPACE}")


and if it still doesn't work try
xnox2k is offline  
Old 12/08/2012, 19:29   #7
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
what i got so far:
send works
controlsend only in character selection screen, not after second loading screen
postmsg working on
butter123 is offline  
Old 12/09/2012, 09:53   #8
 
elite*gold: 0
Join Date: Jul 2009
Posts: 10
Received Thanks: 0
Thanks for giving it a shot! I tried the PostMessage UDF code and from what i can tell, it doesn't work. I've made some ConsoleWrite checks to see if the values set are working and they are. the DllCall:s aren't doing anything it seems?
hdnine is offline  
Old 12/14/2012, 18:41   #9
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
since programming a bot which runs hidden didnt work, i would make one which runs active and just repars a flash on the one side and a second one which shoots the flash from a turret. repairman would get points.

anyone interested in using it? cause it needs 2 people to run (shooter / repairman)

and for programming i would need help to calibrate shootduration, to prevent flash of being destroyed

edit: changed the programm to calibrate on the run. but still need one to test and farm with
butter123 is offline  
Reply


Similar Threads Similar Threads
Help Me ! Code Auto Click Mouse An Auto KeyBoard in game online
11/22/2012 - C/C++ - 0 Replies
i need it . who can share ? thanks !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
how to make a mouse that work in background?
08/29/2012 - AutoIt - 2 Replies
i want to make a bot pixelsearch but if the bot work i want to do other things. so i want to make a second mouse (invisible) that click pixel while i can make my things. how i can make it???
How to send key on background window
09/26/2011 - General Coding - 3 Replies
Do you know how send key in a background window with autoit ? I try WinActivate("4Story") but I can't do enything else...
Mouse clicks in background
08/01/2009 - General Gaming Discussion - 6 Replies
Hi, i'm tryin to perfom mouse clicks in rom, while it's in background, but i have so far no success. I tried SendMessage/PostMessage and AutoIt, discovered that rom checks mouse clicks with getCursor but even when i NOPed the GetCursor func i had no success. Also, i didn't find any hooks that would manipulate SendMessage/PostMessage, so i'm very confused why my code isn't working. Please help me with some advice. Thanks for your aid. so long backtoreality
how to send contorl+mouse click in autoit
09/07/2005 - AutoIt - 0 Replies
Hi, I am wondering how to send contorl+left mouse click in autoit. What I do now: AutoItSetOption &#40; &#34;SendKeyDownDelay&#34;, 10&#41; Send&#40;&#34;^&#34;&#41; MouseClick&#40;&#34;left&#34;,Random&a mp;#40;0,1024,1&#41;,Random&#40;0,700,1&am p;#41;,1,1&#41; AutoItSetOption &#40; &#34;SendKeyDownDelay&#34;, 1&#41;



All times are GMT +1. The time now is 09:11.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.