473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Auric__ Hello, are you there. I hope so.

thanks for replying to my post..i did not think anybody would reply...i am
only 13 and English is not my first language but i will try to describe what
i am trying to do...

well iam trying to make "Artifical Inteligence " with the game
Starcraft...and i need to know that code to make this happen.. i dont
Understand PEEK or POKE...... and i want it to do..so when the address of
money is 50 then make a probe as i do other stuff.... and hopefully sometime
make it gathermoney.....
and its a memory value in STarcraft for minerlas the correct address is
this,..4FD4A0 i want it so when i hotkey the building and i enable the
"program" when i have 50 money it will press 1p which will select the
building and build a worker......also if u can help me with the sendkeys
command when i make a button and make it sendkeys 1p after i hotkey the
building in the game..i think it goes to fast or something it just selects
the builing........"Sendkeys "1p") what am i doing wrong....???

if you can help me...that would be great.

thanks,

Frank.

"Auric__" <no*********@email.address> wrote in message
news:ah********************************@4ax.com...
On Sun, 19 Sep 2004 00:35:31 +0000 (UTC), "Frank Wallace"
<fr***********@btconnect.com> wrote:
Hello,

Could someone please help me with this Visual Basic problem.

I need to know whats the code for this:

If address 29292929(making it up)= 50 then
sendkeys "1p"


What is that supposed to be the address of? Is that meant to be a memory
location?

Methinks you need to be a bit more detailed with what you're trying to
do with that bit of pseudo-code.
--
auric underscore underscore at hotmail dot com
*****
The fact that you find this strange makes me want to run away very, very
quickly.


Jul 17 '05 #1
4 1790
On Mon, 20 Sep 2004 14:13:55 +0000 (UTC), "Frank Wallace"
<fr***********@btconnect.com> wrote:
thanks for replying to my post..i did not think anybody would reply...i am
only 13 and English is not my first language but i will try to describe what
i am trying to do...

well iam trying to make "Artifical Inteligence " with the game
Starcraft...and i need to know that code to make this happen.. i dont
Understand PEEK or POKE...... and i want it to do..so when the address of
money is 50 then make a probe as i do other stuff.... and hopefully sometime
make it gathermoney.....
and its a memory value in STarcraft for minerlas the correct address is
this,..4FD4A0 i want it so when i hotkey the building and i enable the
"program" when i have 50 money it will press 1p which will select the
building and build a worker......also if u can help me with the sendkeys
command when i make a button and make it sendkeys 1p after i hotkey the
building in the game..i think it goes to fast or something it just selects
the builing........"Sendkeys "1p") what am i doing wrong....???

if you can help me...that would be great.


Don't top-post, Frank. I'm here, just been thinking on it. I'm also not
the only person here, y'know, others know more than I do.

Here's a Google search on Peek and Poke in VB:
http://www.google.com/search?q=(%22v...+vb)+peek+poke

This page (the first returned) has a decent implementation but no
explanation:
http://www.freevbcode.com/ShowCode.asp?ID=6758

Basically, you'll need to use the (undocumented) GetMemx and PutMemx
(where x is 1, 2, 4, or 8) API calls. You need to already know the
memory address you want to play with.

As for sendkeys, all it does AFAIK is place characters in the keyboard
buffer. If sendkeys is going too past, place a pause between keypresses,
like this:

SendKeys "1"
Sleep 100 'API call, wait about 1/10 of a second
SendKeys "p"

One problem specific to Starcraft is that you must have the right
building selected to build your probe, and that might be on the other
side of the map as the raging battle you're currently directing. A
better thing to do would be:

SendKeys "^2" 'or whatever it is to set a new location
SendKeys "1" 'to the main building
Sleep 100
SendKeys "p"
SendKeys "2" 'back to your current worries

Also, I don't remember if jumping to locations automatically selects the
building or not.
--
auric underscore underscore at hotmail dot com
*****
- How you doin'. You in charge?
- If anyone was in charge, it'd be me.
Jul 17 '05 #2
On Mon, 20 Sep 2004 15:35:00 -0700, I wrote:
If sendkeys is going too past,


correction: going too FAST
--
auric underscore underscore at hotmail dot com
*****
....and don't call tech support!
Jul 17 '05 #3
WOW thats hELPS ALOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!EXC ELLENT

thanks Auric__if you can also help me making a auto build in
starcraft!??..........that wil be even more excellent....dont worry if you
cant ore are busy though coz you have already helped me loads..

thanks again Auric__

frank.
"Auric__" <no*********@email.address> wrote in message
news:i6********************************@4ax.com...
On Mon, 20 Sep 2004 14:13:55 +0000 (UTC), "Frank Wallace"
<fr***********@btconnect.com> wrote:
thanks for replying to my post..i did not think anybody would reply...i am
only 13 and English is not my first language but i will try to describe
what
i am trying to do...

well iam trying to make "Artifical Inteligence " with the game
Starcraft...and i need to know that code to make this happen.. i dont
Understand PEEK or POKE...... and i want it to do..so when the address of
money is 50 then make a probe as i do other stuff.... and hopefully
sometime
make it gathermoney.....
and its a memory value in STarcraft for minerlas the correct address is
this,..4FD4A0 i want it so when i hotkey the building and i enable the
"program" when i have 50 money it will press 1p which will select the
building and build a worker......also if u can help me with the sendkeys
command when i make a button and make it sendkeys 1p after i hotkey the
building in the game..i think it goes to fast or something it just selects
the builing........"Sendkeys "1p") what am i doing wrong....???

if you can help me...that would be great.


Don't top-post, Frank. I'm here, just been thinking on it. I'm also not
the only person here, y'know, others know more than I do.

Here's a Google search on Peek and Poke in VB:
http://www.google.com/search?q=(%22v...+vb)+peek+poke

This page (the first returned) has a decent implementation but no
explanation:
http://www.freevbcode.com/ShowCode.asp?ID=6758

Basically, you'll need to use the (undocumented) GetMemx and PutMemx
(where x is 1, 2, 4, or 8) API calls. You need to already know the
memory address you want to play with.

As for sendkeys, all it does AFAIK is place characters in the keyboard
buffer. If sendkeys is going too past, place a pause between keypresses,
like this:

SendKeys "1"
Sleep 100 'API call, wait about 1/10 of a second
SendKeys "p"

One problem specific to Starcraft is that you must have the right
building selected to build your probe, and that might be on the other
side of the map as the raging battle you're currently directing. A
better thing to do would be:

SendKeys "^2" 'or whatever it is to set a new location
SendKeys "1" 'to the main building
Sleep 100
SendKeys "p"
SendKeys "2" 'back to your current worries

Also, I don't remember if jumping to locations automatically selects the
building or not.
--
auric underscore underscore at hotmail dot com
*****
- How you doin'. You in charge?
- If anyone was in charge, it'd be me.

Jul 17 '05 #4
>"Auric__" <no*********@email.address> wrote in message
news:i6********************************@4ax.com.. .
[a bunch of stuff]

On Tue, 21 Sep 2004 14:28:23 +0000 (UTC), "Frank Wallace"
<fr***********@btconnect.com> wrote:
WOW thats hELPS ALOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!EXC ELLENT

thanks Auric__if you can also help me making a auto build in
starcraft!??..........that wil be even more excellent....dont worry if you
cant ore are busy though coz you have already helped me loads..

thanks again Auric__

frank.


DON'T TOP-POST!

If I was to implement an auto-build function, I'd find out what
Starcraft does when you tell it to build a new probe. It's going to
modify a memory location somewhere, it's just a matter of finding out
which location and what happens to it. (My guess is it reserves a byte
or 2 in memory and then gives that byte a non-zero value to represent
what's to be built when it gets to that slot. But that's just a guess.)
--
auric underscore underscore at hotmail dot com
*****
- Can't you reach out with your feelings?
- Can I reach out with something else?
- Is it long enough?
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Altar | last post by:
Hi I'm experienced in VB 6 and now I want to migrate to VB NET Can someone give me a sample code like "Hello World" web based program ?
1
by: Bhavesh Patel | last post by:
Hello I am new in this community I hope all of the my peers will be in pink of their health and doing well. Well I have done master in computer application and working in Elegant Microweb...
7
by: Calvin KD | last post by:
Hi everyone, Has someone out there experienced the same problem? What i wanted to do is to display a popup window (modal) upon the loading of a webpage. Here is my code sample (in html view):...
8
by: Chris Wertman | last post by:
Ok I have been looking and looking and I cant find what Im looking for. I need to be able to add a button to IE , When that button is fired it send the URL that is in the Address bar to a...
5
by: Greg Smith | last post by:
I am making the step from windows to web. The final destination is our production server running Server 2003 Web Edition. I am having problems using the BUILD | PUBLISH WEB SITE option. What...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.