Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 03:48

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

Advertisement



Script Request /program

Discussion on Script Request /program within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2009
Posts: 25
Received Thanks: 1
Question Script Request /program

Hey guys,

I was wondering if anyone of you programmers could write me
a simple script. Basically, I want a program that presses the
a function key for me when I press like Ctrl + x.
For example, pressing ctrl + x would result to pressing F2.
It's hard for me to explain. I don't know if I'm making sense.

What I'm trying to accomplish is that when I play conquer,
I want to be able to press F2 by just pressing Ctrl + x so
that I could easily switch skills or use pots.

I would really appreciate any help. Thanks.
12hero is offline  
Old 11/02/2010, 02:51   #2
 
theoneofgod's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 3,940
Received Thanks: 2,211
In AutoIT code.

Code:
While 1
	If _IsPressed(11) Then ; if CTRL is pressed
		If _IsPressed(58) Then ; if X is pressed
			Send("{F2}")
		EndIf
	EndIf
	Sleep(10)
WEnd

Func _IsPressed($sHexKey, $vDLL = 'user32.dll')
	; $hexKey must be the value of one of the keys.
	; _Is_Key_Pressed will return 0 if the key is not pressed, 1 if it is.
	Local $a_R = DllCall($vDLL, "short", "GetAsyncKeyState", "int", '0x' & $sHexKey)
	If @error Then Return SetError(@error, @extended, False)
	Return BitAND($a_R[0], 0x8000) <> 0
EndFunc   ;==>_IsPressed
theoneofgod is offline  
Thanks
1 User
Old 11/02/2010, 02:52   #3
 
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
My suggestion is for something like that learn ahk/autoit very basic but effective

denominator is offline  
Thanks
1 User
Old 11/02/2010, 03:15   #4
 
elite*gold: 0
Join Date: Sep 2009
Posts: 25
Received Thanks: 1
Ty so much
12hero is offline  
Old 11/02/2010, 19:30   #5
 
elite*gold: 0
Join Date: Sep 2009
Posts: 25
Received Thanks: 1
theoneofgod, if i wanted to make Ctrl + c to press F3, would this be the script?

While 1
If _IsPressed(11) Then ; if CTRL is pressed
If _IsPressed(43) Then ; if X is pressed
Send("{F3}")
EndIf
EndIf
Sleep(10)
WEnd

Func _IsPressed($sHexKey, $vDLL = 'user32.dll')
; $hexKey must be the value of one of the keys.
; _Is_Key_Pressed will return 0 if the key is not pressed, 1 if it is.
Local $a_R = DllCall($vDLL, "short", "GetAsyncKeyState", "int", '0x' & $sHexKey)
If @error Then Return SetError(@error, @extended, False)
Return BitAND($a_R[0], 0x8000) <> 0
EndFunc ;==>_IsPressed

If not, what am i doing wrong?
12hero is offline  
Reply


Similar Threads Similar Threads
Pick UP script or program?
01/31/2010 - Dekaron - 5 Replies
Hi is there a Pick up script for CE that character auto pick up gold. cause if vac a lot of mob. it take a while to pick up before the next patch come.
Searching Program /script to farm ...
08/09/2009 - Lineage 2 - 0 Replies
i didnt play for a couple of time this game. so now i say that new stuff on that new continent. im looking now for any program or a script (maybe L2w) to farm those Star stones and in seed of destrucion those seed's. hope that anyone can help. thx in advance. edit: for retail servers ofc
Search: Program/Script to farm ....
08/06/2009 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 1 Replies
i didnt play for a couple of time this game. so now i say that new stuff on that new continent. im looking now for any program or a script (maybe L2w) to farm those Star stones and in seed of destrucion those seed's. hope that anyone can help. thx in advance. edit: for retail servers ofc
Looking for script/program for skill resurrection
08/09/2008 - Silkroad Online - 0 Replies
Im looking for script/program who can say me how many cruset hearts and gold i need to turn my.. like lvl 90 FF mastery turn to 0 lvl -_- or maybe there is some number i can count it ? i know that by cruset hearts i get only 80% invested SP, and i know how to count it (lol its easy), but how about gold ? how much gold i need to get lvl 90 mastery full skilled to 0 ? And im writing about skill resurrection quest not IM item to skill resurrection



All times are GMT +1. The time now is 03:48.


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.