Jump to content

How can I make two functions happen in one


layer
 Share

Recommended Posts

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
Link to comment
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!
Link to comment
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
Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...