Sign in to follow this  
Followers 0
layer

How can I make two functions happen in one

7 posts in this topic

I have this part of code, and I need to make it so that $screename sends SHIFT and ENTER before it sends the users input...

If StringInStr($screenname, " ") Then
  $screenname = StringReplace($screenname, " ", "+", 0, 0)
EndIf
If StringInStr($message, " ") Then
  $message = StringReplace($message, " ", "+", 0, 0)
EndIf


Run(@ComSpec & ' /c start aim:goim?screenname=' & '"' &  $screenname & '&message=' &  $message, '',@SW_HIDE)

Provided by JS!

But is there a way so that I can have two functions to a variable or what?

Thanks :)


FootbaG

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Why not just use

Send('+{ENTER}')

?

Edited by ezzetabi

Share this post


Link to post
Share on other sites

Because I need Send ('+{ENTER}') right before it types in the screename so that it is one line below the original place to type...Get it?


FootbaG

Share this post


Link to post
Share on other sites

You could wait for the AIM window to appear and then send the message text.... Look up ControlSend in the help file

By the way, it appears that sending @CRLF (carriage return / line feed) as part the aim:goim? message won't work.

Hope that helps


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Thanks CyberSlug =)

What do you mean the aim:goim? doesnt work? I don't really understand what you meant, im sort of slow ;-)

But I'll have all of the code out soon, as soon as I think of some more features for the project... So far it only has invisible text and a fake screename that appears in your window but tou type it...It's for AIM.


FootbaG

Share this post


Link to post
Share on other sites

Wait I thought I understood what you said, but I didn't. About ControlSend, I know how to use it, except I don't know where to place it in the above code I provided... Any ideas on where to place it

?

thank you so much =)


FootbaG

Share this post


Link to post
Share on other sites

bump please


FootbaG

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0