Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[EDITED] More questions in original post

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
sportskid300
Grandmaster Cheater
Reputation: 0

Joined: 22 Jun 2006
Posts: 944
Location: You Wish.

PostPosted: Sat Jun 02, 2007 10:33 pm    Post subject: [EDITED] More questions in original post Reply with quote

I have a few MASM questions for you guys:
(1) How can I force a place for a program to be saved?
AKA using an installer, but how?
(2) How do I use GetDir to find where a specified file is located?
Should I do that through Hikey?

Thanks a lot for any help!

_________________
Thanks to Mr.Mohammed for the Avatar!
http://forum.cheatengine.org/viewtopic.php?t=92760&sid=b5cfb5d8e759c2b023910472b2fac2e8 EXCELLENT ASM TUT!

If you need help, ask!
http://www.youtube.com/watch?v=cW44BpXpjYw INSANE Line Rider!


Last edited by sportskid300 on Tue Jun 05, 2007 6:34 pm; edited 3 times in total
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sat Jun 02, 2007 11:07 pm    Post subject: Reply with quote

Registry Functions.
_________________
Back to top
View user's profile Send private message
sportskid300
Grandmaster Cheater
Reputation: 0

Joined: 22 Jun 2006
Posts: 944
Location: You Wish.

PostPosted: Sat Jun 02, 2007 11:47 pm    Post subject: Reply with quote

Yea, I've browsed it.
However, no sample code is given.
I learn best through visual
I'm looking at RegCreateKeyEx, if someone could whip up a quick sample,
I'd be much obliged.
Thanks!

_________________
Thanks to Mr.Mohammed for the Avatar!
http://forum.cheatengine.org/viewtopic.php?t=92760&sid=b5cfb5d8e759c2b023910472b2fac2e8 EXCELLENT ASM TUT!

If you need help, ask!
http://www.youtube.com/watch?v=cW44BpXpjYw INSANE Line Rider!
Back to top
View user's profile Send private message
Splizes
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Jun 2006
Posts: 1944
Location: Florida

PostPosted: Sat Jun 02, 2007 11:58 pm    Post subject: Re: Regedit? Reply with quote

sportskid300 wrote:
I was wondering if anyone knew how to use ASM (I use MASM) to add files to HIKEY_CURRENT_USER\ or HIKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Run to make a program run automatically when Windows starts up.
Thanks!

or if its a .exe do this goto
C:\Documents and Settings\USERNAME\Start Menu\Programs\Startup
and put a copy of the exe there D:
Back to top
View user's profile Send private message
sportskid300
Grandmaster Cheater
Reputation: 0

Joined: 22 Jun 2006
Posts: 944
Location: You Wish.

PostPosted: Sun Jun 03, 2007 9:18 am    Post subject: Reply with quote

Thanks!
Xor, the only part I don't get is the kName part, throughout the code.
Where does that play a role?
Also, what is the command to move 1 file?
I now this sounds really nooby, but I'm not seeing it in the MASM Help Index.
In there is rndir, so I know how to rename and move folders around, but not single files.
Also, is there an easier way to delete files than with
Code:
cmp, fdelete("C:\Whatever\sex.exe"), 0
je fail

???

SnowFox, yours wouldnt work, if I had to use specific usernames.
If there was a variable username, it would work.
That would only work on my computer.

Thanks again!

PS: Xor, do you have MSN?
If you could PM me your address, that would be excellent.

_________________
Thanks to Mr.Mohammed for the Avatar!
http://forum.cheatengine.org/viewtopic.php?t=92760&sid=b5cfb5d8e759c2b023910472b2fac2e8 EXCELLENT ASM TUT!

If you need help, ask!
http://www.youtube.com/watch?v=cW44BpXpjYw INSANE Line Rider!
Back to top
View user's profile Send private message
sportskid300
Grandmaster Cheater
Reputation: 0

Joined: 22 Jun 2006
Posts: 944
Location: You Wish.

PostPosted: Sun Jun 03, 2007 9:42 am    Post subject: Reply with quote

FIX
_________________
Thanks to Mr.Mohammed for the Avatar!
http://forum.cheatengine.org/viewtopic.php?t=92760&sid=b5cfb5d8e759c2b023910472b2fac2e8 EXCELLENT ASM TUT!

If you need help, ask!
http://www.youtube.com/watch?v=cW44BpXpjYw INSANE Line Rider!


Last edited by sportskid300 on Sun Jun 03, 2007 9:57 am; edited 1 time in total
Back to top
View user's profile Send private message
sportskid300
Grandmaster Cheater
Reputation: 0

Joined: 22 Jun 2006
Posts: 944
Location: You Wish.

PostPosted: Sun Jun 03, 2007 9:58 am    Post subject: Reply with quote

It won't compile due an error on line 20: Too few arguments to invoke.
I belive you need MB_OK at the end
Problem is, when I add MB_OK, put a program in C:, rename it to sex (its a executable), it doesnt work, and the program has to close to due an error (Send error log or not)

_________________
Thanks to Mr.Mohammed for the Avatar!
http://forum.cheatengine.org/viewtopic.php?t=92760&sid=b5cfb5d8e759c2b023910472b2fac2e8 EXCELLENT ASM TUT!

If you need help, ask!
http://www.youtube.com/watch?v=cW44BpXpjYw INSANE Line Rider!
Back to top
View user's profile Send private message
sportskid300
Grandmaster Cheater
Reputation: 0

Joined: 22 Jun 2006
Posts: 944
Location: You Wish.

PostPosted: Sun Jun 03, 2007 3:04 pm    Post subject: Reply with quote

Ahhh screw it.
Xor you can go away.

_________________
Thanks to Mr.Mohammed for the Avatar!
http://forum.cheatengine.org/viewtopic.php?t=92760&sid=b5cfb5d8e759c2b023910472b2fac2e8 EXCELLENT ASM TUT!

If you need help, ask!
http://www.youtube.com/watch?v=cW44BpXpjYw INSANE Line Rider!


Last edited by sportskid300 on Tue Jun 05, 2007 6:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites