Register for your free account! | Forgot your password?

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

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

Advertisement



[AutoIt] Get current HP

Discussion on [AutoIt] Get current HP within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
[AutoIt] Get current HP

Okay.

As per requested by Mr swords, here is a AutoIt function for getting the current HP of a player. I wiped this one up real quick, so its not that neat
Attached Files
File Type: zip get-hp.zip (1.4 KB, 204 views)
clintonselke is offline  
Thanks
2 Users
Old 05/18/2009, 07:14   #2
 
elite*gold: 0
Join Date: Mar 2006
Posts: 5
Received Thanks: 0
very nice
~griswald
griswald is offline  
Old 05/18/2009, 11:13   #3
 
elite*gold: 0
Join Date: Jul 2006
Posts: 88
Received Thanks: 0
can use it make auto pot hp fast, i use another by PixelSearch in AHK but result not good my account die in war, can help me
ace_heart is offline  
Old 05/19/2009, 00:03   #4
 
swords's Avatar
 
elite*gold: 20
Join Date: Dec 2005
Posts: 811
Received Thanks: 352
Awesomeeeeeeeeeeeeee


Thanks a bunch... Gonna try whipping up a bot fast to auto-pot. Half credit will go to you though! xD


EDIT:


I tried it out.

What I did was #include your file through my code... But an error keeps coming up, and I honestly can't understand your code (too complex xD)... And it points to Line 1 saying:


Quote:
Global Const $PAGE_EXECUTE_READWRITE = 0x40
^
Error: Can not redeclare a constant.
(Which makes me think it'll do it for all your Globals :S)


Maybe its something simple and I'm looking too hard for the solution... I really don't want to copy and paste allllll my code into your file and make it work that way... Would be too much of a hassle. I was hoping to just use an #include with just your Function (no While loop or ToolTip)...


Thanks
swords is offline  
Old 05/19/2009, 00:48   #5
 
elite*gold: 0
Join Date: Mar 2009
Posts: 427
Received Thanks: 479
Quote:
Originally Posted by swords View Post
Awesomeeeeeeeeeeeeee


Thanks a bunch... Gonna try whipping up a bot fast to auto-pot. Half credit will go to you though! xD


EDIT:


I tried it out.

What I did was #include your file through my code... But an error keeps coming up, and I honestly can't understand your code (too complex xD)... And it points to Line 1 saying:




(Which makes me think it'll do it for all your Globals :S)


Maybe its something simple and I'm looking too hard for the solution... I really don't want to copy and paste allllll my code into your file and make it work that way... Would be too much of a hassle. I was hoping to just use an #include with just your Function (no While loop or ToolTip)...


Thanks
thats a simple one, don't "redeclare" the constant in your au3 file... Global means... well... "Global" lol
ookamocka is offline  
Old 05/19/2009, 01:30   #6
 
swords's Avatar
 
elite*gold: 20
Join Date: Dec 2005
Posts: 811
Received Thanks: 352
Quote:
Originally Posted by ookamocka View Post
thats a simple one, don't "redeclare" the constant in your au3 file... Global means... well... "Global" lol
I thought of this... But then it wouldn't be in the Global scope... It would just be... well... a variable.

So when his get-hp function tries calling that variable it won't be able to because that variable isn't declared inside that Func...... right? :S
swords is offline  
Old 05/19/2009, 01:39   #7
 
elite*gold: 0
Join Date: Mar 2009
Posts: 427
Received Thanks: 479
Quote:
Originally Posted by swords View Post
I thought of this... But then it wouldn't be in the Global scope... It would just be... well... a variable.

So when his get-hp function tries calling that variable it won't be able to because that variable isn't declared inside that Func...... right? :S
what i mean is (i haven't check yet but) if he already claimed the Global constant in his au3 file, don't claim it again in urs, else ur "redeclaring" it as the error states
ookamocka is offline  
Old 05/19/2009, 01:47   #8
 
swords's Avatar
 
elite*gold: 20
Join Date: Dec 2005
Posts: 811
Received Thanks: 352
Quote:
Originally Posted by ookamocka View Post
what i mean is (i haven't check yet but) if he already claimed the Global constant in his au3 file, don't claim it again in urs, else ur "redeclaring" it as the error states
Nope... I already tried 2 different ways....


1. I left his Global variables in his script and used my #include (so it should grab those variables anyways)

2. I put his varialbes in my script, and deleted his.


Neither worked :S
swords is offline  
Old 05/19/2009, 04:49   #9
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
Quote:
Originally Posted by swords View Post
Awesomeeeeeeeeeeeeee


Thanks a bunch... Gonna try whipping up a bot fast to auto-pot. Half credit will go to you though! xD


EDIT:


I tried it out.

What I did was #include your file through my code... But an error keeps coming up, and I honestly can't understand your code (too complex xD)... And it points to Line 1 saying:




(Which makes me think it'll do it for all your Globals :S)


Maybe its something simple and I'm looking too hard for the solution... I really don't want to copy and paste allllll my code into your file and make it work that way... Would be too much of a hassle. I was hoping to just use an #include with just your Function (no While loop or ToolTip)...


Thanks
Its already defined in one of the header files... just delete that line and it will work
clintonselke is offline  
Old 05/19/2009, 19:14   #10
 
swords's Avatar
 
elite*gold: 20
Join Date: Dec 2005
Posts: 811
Received Thanks: 352
Quote:
Originally Posted by clintonselke View Post
Its already defined in one of the header files... just delete that line and it will work
So delete JUST that line... Or all the Global variables?
swords is offline  
Old 05/19/2009, 21:24   #11
 
swords's Avatar
 
elite*gold: 20
Join Date: Dec 2005
Posts: 811
Received Thanks: 352
ooka or clinton... (I ask you ooka cause you said you made a background leveling bot... So maybe you had some idea on how to do it :P)

Never used ControlClick before or ControlSend...

But I guess you can't send the F keys through ControlSend in AutoIt?... Is this true?


My 2nd method of doing it was to ControlClick on the F keys on conquer to use the pots... Well how do I achieve the controlid?

Autoit Help file states:

ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] )

Well I can fill in all of those (leave text blank)... EXCEPT for the controlID position...

Do you have any idea how to

1. ControlSend F keys to Conquer

2. ControlClick on the F keys on Conquer


Thanks ><



P.S. - Btw clinton I got the auto-potter to work with your code. The #include file is working correctly now and it is potting accordingly... As well as using boxes, etc. I just need to get those 2 problems (or just 1) solved so I can make it completely background auto-potting .
swords is offline  
Old 05/20/2009, 07:09   #12
 
elite*gold: 0
Join Date: Mar 2009
Posts: 427
Received Thanks: 479
Quote:
Originally Posted by swords View Post
ooka or clinton... (I ask you ooka cause you said you made a background leveling bot... So maybe you had some idea on how to do it :P)

Never used ControlClick before or ControlSend...

But I guess you can't send the F keys through ControlSend in AutoIt?... Is this true?


My 2nd method of doing it was to ControlClick on the F keys on conquer to use the pots... Well how do I achieve the controlid?
Autoit Help file states:

ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] )

Well I can fill in all of those (leave text blank)... EXCEPT for the controlID position...

Do you have any idea how to

1. ControlSend F keys to Conquer

2. ControlClick on the F keys on Conquer


Thanks ><



P.S. - Btw clinton I got the auto-potter to work with your code. The #include file is working correctly now and it is potting accordingly... As well as using boxes, etc. I just need to get those 2 problems (or just 1) solved so I can make it completely background auto-potting .
for pressing F-keys in the background... look at clint's other thread...



i haven't tested it, but i know it works since thats what he used ... and as far as i can remember, u can't send keyboard clicks in the background, only foreground... that is if your going to use autoit to send clicks and not do it through memory... and i think ControlClick is for the mouse only which will work in the background for CO, but left click will send u to click jail... not sure how to do a keyboard press w/ autoit, i litterally just started using autoit maybe 2 weeks ago ne other language i've worked with i'd be able to tell u but again as i said, it won't work in the background...

EDIT: i found the function u need... that one, though as i've said, it won't work in the background, i haven't tested it though

so for a simple example it'd be...


Code:
While 1
[color=white].....[/color]If $health < 400 Then
[color=white].....[/color][color=white].....[/color]Send("{F1}")
[color=white].....[/color]EndIf
[color=white].....[/color]Sleep(200)
WEnd
ookamocka is offline  
Old 05/20/2009, 07:38   #13
 
swords's Avatar
 
elite*gold: 20
Join Date: Dec 2005
Posts: 811
Received Thanks: 352
Quote:
Originally Posted by ookamocka View Post
for pressing F-keys in the background... look at clint's other thread...



i haven't tested it, but i know it works since thats what he used ... and as far as i can remember, u can't send keyboard clicks in the background, only foreground... that is if your going to use autoit to send clicks and not do it through memory... and i think ControlClick is for the mouse only which will work in the background for CO, but left click will send u to click jail... not sure how to do a keyboard press w/ autoit, i litterally just started using autoit maybe 2 weeks ago ne other language i've worked with i'd be able to tell u but again as i said, it won't work in the background...

EDIT: i found the function u need... that one, though as i've said, it won't work in the background, i haven't tested it though

so for a simple example it'd be...


Code:
While 1
[color=white].....[/color]If $health < 400 Then
[color=white].....[/color][color=white].....[/color]Send("{F1}")
[color=white].....[/color]EndIf
[color=white].....[/color]Sleep(200)
WEnd
no no no xD...

Of course I know send... I actually just released my auto-potter with Exact hp input (Gotta wait for approval)... ControlSend supposably doesn't work, but some people still claim it works for them.... I need some assistance on the ControlClick ControlID so I can at least use that if the controlSend don't work.
swords is offline  
Old 05/20/2009, 12:28   #14
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
Windows API for triggering keypresses only does the work keyboard side (as if u just pressed the keys).. It will send keys ONLY TO FOCUSED windows.

What ControlSend() does is first try to give the window focus (bring it to the top), then perform a normal Send()

What i did for my bot was... no actually press trigger F-key presses... only found the could that gets executed when u do press F-keys and made my own function for it.

I'm bit busy, but u can translate my c++ f-key version into AutoIt xD

Good Luck

clintonselke is offline  
Old 05/21/2009, 00:16   #15
 
Azothoras's Avatar
 
elite*gold: 0
Join Date: Feb 2006
Posts: 209
Received Thanks: 455
Quote:
Originally Posted by swords View Post
ooka or clinton... (I ask you ooka cause you said you made a background leveling bot... So maybe you had some idea on how to do it :P)

Never used ControlClick before or ControlSend...

But I guess you can't send the F keys through ControlSend in AutoIt?... Is this true?


My 2nd method of doing it was to ControlClick on the F keys on conquer to use the pots... Well how do I achieve the controlid?

Autoit Help file states:

ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] )

Well I can fill in all of those (leave text blank)... EXCEPT for the controlID position...

Do you have any idea how to

1. ControlSend F keys to Conquer

2. ControlClick on the F keys on Conquer


Thanks ><



P.S. - Btw clinton I got the auto-potter to work with your code. The #include file is working correctly now and it is potting accordingly... As well as using boxes, etc. I just need to get those 2 problems (or just 1) solved so I can make it completely background auto-potting .
Use the auto it window info tool... It will display the ControlID for the F-Row
Azothoras is offline  
Reply


Similar Threads Similar Threads
Current Bypasser
05/07/2010 - Dekaron - 1 Replies
Hello So im having a bit of trouble Locating the Current bypasser to Enable my Hacks with CE If it is updated Atm, Can somone please direct me to the post contating the file? Greatly appreciated.
Current Hacks
01/11/2010 - PW Hacks, Bots, Cheats, Exploits - 0 Replies
What hacks are currently suggested to work by players and on which servers are they suggested to work. I have no idea what hacks i should be searching for because things keep getting patched. i'm aware that bots work but i'm more interested in the flyhack etc.
Current Offset
01/10/2009 - Silkroad Online - 0 Replies
whats the way to find out game offsets? i need current hp, mp, current SP, Gold, and DC window Offset thank u
is SV 1.17 still current ?
11/01/2007 - Conquer Online 2 - 6 Replies
Simple Question, is SV 1.17 still current ? I quit CO nearly 2 months ago, checking up on things again... Another question also, does it work on Vista? changed my PC :p



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


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.