Just a Question :)

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Marcdk
Junior Coder
Posts: 36
Joined: Sat Sep 22, 2007 10:16 pm

Just a Question :)

Post by Marcdk » Sun Feb 24, 2008 8:20 pm

Okay i have a question, i want to know if this is possible to make...

If i make a bot, that does the following;

I press S And the bot sends: Hello there!

Something like..

If>S key is pressed
Send>Hello there!
else
Goto> label>end

Could be really nice if this was possible :) And how i could make it

EDIT: I looked at the command: Waitkeydown but i have no idea how to make a working script with that, if i have like 5 diffrent buttons i can click, example..

S: Hello there!
A: how are you?
D: Im From Greece
Z: Okay then
L: Im 17, you?

I hope you can see what i mean :P

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sun Feb 24, 2008 9:22 pm

Use OnEvent:

Code: Select all

OnEvent>KEY_DOWN,S,0,SKey
OnEvent>KEY_DOWN,A,0,AKey

Label>mainloop
  Wait>0.02
Goto>mainloop

SRT>SKey
  Send>Hello there!
End>SKey

SRT>AKey
  Send>how are you?
End>AKey
Or create simple macros and assign each to hotkeys.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Marcdk
Junior Coder
Posts: 36
Joined: Sat Sep 22, 2007 10:16 pm

Post by Marcdk » Thu Feb 28, 2008 6:37 pm

thank you :D

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts