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 


VB - Hello guys! Mind to help?

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

Joined: 08 May 2006
Posts: 71

PostPosted: Tue Aug 21, 2007 8:39 pm    Post subject: VB - Hello guys! Mind to help? Reply with quote

Ok guys
i started learning VB 2 days ago ,
So i want to make an auto macro , that will click the keys :
ctrl + S
in same time , like activate a key , but i cant seem to make it .
please help me any one of you , i will Rep you!
thank you!
What i am asking is :
A Button that when you click it actiavtes the timer to click Alt + S.
Back to top
View user's profile Send private message
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Tue Aug 21, 2007 8:47 pm    Post subject: Re: VB - Hello guys! Mind to help? Reply with quote

noob-attack wrote:
Ok guys
i started learning VB 2 days ago ,
So i want to make an auto macro , that will click the keys :
ctrl + S
in same time , like activate a key , but i cant seem to make it .
please help me any one of you , i will Rep you!
thank you!
What i am asking is :
A Button that when you click it actiavtes the timer to click Alt + S.


if i remember correctly from about ten years ago when i used vb3 a little, you could use sendkeys - which is a damn ugly way to get things done - but it would be easier than explain api calls to you...

example;;
Shell "notepad", vbNormalFocus
SendKeys "This is a test string%Fx"

That should type the string, hit alt + F then x to exit... though I'm not testing this just doing it from memory..

_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Aug 21, 2007 8:51 pm    Post subject: Reply with quote

SendKeys "Key1+Key2" dont know vb but it should be like that...
like VK_F1+VK_F2
Back to top
View user's profile Send private message
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Tue Aug 21, 2007 9:02 pm    Post subject: Reply with quote

example app here with explainations;

http://cwashington.netreach.net/main/library/sendkeys.html

i'm pretty sure mine would work - though i don't have vb on any computer at my house... the blessed "curse" of linux Wink

_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
noob-attack
Advanced Cheater
Reputation: 0

Joined: 08 May 2006
Posts: 71

PostPosted: Tue Aug 21, 2007 9:06 pm    Post subject: Reply with quote

Hey guys and thank you for the quick reply .
But , the first 2 answers are wrong , that doesnt even belong to VB
The ctrl key of VB is ^ and it should be like this :
SendKeys "^S"
But it doesnt seem to work , thats why im asking for help.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Aug 21, 2007 9:12 pm    Post subject: Reply with quote

^+S? just a guess...
u can use keydown ctrl and make a check if S is pressed and then release both
Back to top
View user's profile Send private message
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Tue Aug 21, 2007 9:13 pm    Post subject: Reply with quote

noob-attack wrote:
Hey guys and thank you for the quick reply .
But , the first 2 answers are wrong , that doesnt even belong to VB
The ctrl key of VB is ^ and it should be like this :
SendKeys "^S"
But it doesnt seem to work , thats why im asking for help.


Ahhh well % must be alt or something...

What code are you trying? What I quickly typed up won't work, because you havn't initialized sendkeys. What error are you getting.

Try the following from the link i posted;

Code:

Dim objKeys
Dim bSuccess

Set objKeys = CreateObject("SKey.SKeys")
bSuccess = objKeys.ActivateApp "Microsoft Word"
If bSuccess Then objKeys.SendKeystrokes("The quick brown fox")

Set objKeys = Nothing

The same example using Javascript:

var objKeys = new ActiveXControl("SKey.SKeys");
var bSuccess = objKeys.ActivateApp("Microsoft Word");
if (bSuccess) {
    objKeys.SendKeystrokes("The quick brown fox");
}


Part of asking questions... Is reading the answer - we're not going to MAKE a program for you. We can help you with pseudo code, but don't take it on face value. I was merely pointing you in the right direction.

_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
TheIndianGuy
Advanced Cheater
Reputation: 102

Joined: 14 Jan 2007
Posts: 88

PostPosted: Tue Aug 21, 2007 10:11 pm    Post subject: Reply with quote

you can use sendkeys.send { } or e.Keycode = forgot rest of code off top of my head.

try looking up my open source auto typer on cef in the gernal programming section from there you can learn how to use timers for what you need it for. Very Happy
Back to top
View user's profile Send private message
noob-attack
Advanced Cheater
Reputation: 0

Joined: 08 May 2006
Posts: 71

PostPosted: Thu Aug 23, 2007 3:13 pm    Post subject: Reply with quote

Hum .. you guys didnt get me
i dont need the program
just which key is Ctrl + S
i made teh button already and all .
i just need to know which one is Ctrl + S
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Thu Aug 23, 2007 3:25 pm    Post subject: Reply with quote

Code:

Timer1.Enabled = True


noob-attack wrote:
A Button that when you click it actiavtes the timer



Wink

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
TheIndianGuy
Advanced Cheater
Reputation: 102

Joined: 14 Jan 2007
Posts: 88

PostPosted: Thu Aug 23, 2007 3:55 pm    Post subject: Reply with quote

noob-attack wrote:
Hey guys and thank you for the quick reply .
But , the first 2 answers are wrong , that doesnt even belong to VB
The ctrl key of VB is ^ and it should be like this :
SendKeys "^S"
But it doesnt seem to work , thats why im asking for help.


sendkeys.send

noob-attack wrote:
Hum .. you guys didnt get me
i dont need the program
just which key is Ctrl + S
i made teh button already and all .
i just need to know which one is Ctrl + S


yes i did understand you and i did understand your question you need to use sendkeys.send or e.keycode

you can use sendkeys.send just look up a chart probably on the msdn forums that has the list of keys you can use and the code for each one well good luck on your program im sorry i cant be of more assistance. also you are asking for a hotkey remember google is your friend
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