Sign in to follow this  
Followers 0
layer

Changing font color and style that will be typed

5 posts in this topic

#1 ·  Posted (edited)

Is there a way to make the font a ddiferent color and have a different style when it will be typed into a different window? And can I make it press shift enter before the text is typed? Heres the code:

Func FakeSN ()
   GUICreate ("Fake Screename", 600, 250)
   GUISetState (@SW_SHOW)
   $i= GUICtrlCreateInput ("", 10, 25)
   $l= GUICtrlCreateLabel ("Enter the users screename you want to send the fake sn to:", 1, 1)
   $i2= GUICtrlCreateInput ("", 100, 100)
   $l2= GUICtrlCreateLabel ("Enter the fake screename you would like and the message seperating each with a semi colon:", 70, 70)
   $b= GUICtrlCreateButton ("Go!", 150, 150, 50, 50)
         While 1
      $get= GUIGetMsg ()
      Select
      Case $get= $GUI_EVENT_CLOSE
         Exit
      Case $get= $b
         $getin= GUIRead ($i)
         $screenname = $getin
$getin2= GUIRead ($i2)
$message = $getin2

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)
         Opt("WinTitleMatchMode", 2)
         WinWait("Instant Message")
         EndSelect
         WEnd
      EndFunc

Now I'm havong trouble making AutoIt send Shift and Enter... I know what function to yous, but where would it go? Like the part here

Run(@ComSpec & ' /c start aim:goim?screenname=' & '"' & $screenname & '&message=' & $message, '',@SW_HIDE)
How would I make it so that before it types $message it makes it bold, sends Shift and Enter and makes the font red or blue, I forgot, lets just say blue for now...

Thanks for the help :)

PS: I know that one function won't appear like magic, but I would like some suggestions, thank you. :)

Edited by layer

FootbaG

Share this post


Link to post
Share on other sites



errr .... why would u try to send a shift+enter in a run command??????

makes no sense to me.

i don't have AIM so i can't test it.

maybe you can tell me what happens after the run-command? does it send the message or does just appear a box ready-to-send?

Greetings,

ZeD

Share this post


Link to post
Share on other sites

Shift enter makes a line break. Enter just sends the message.


My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]

Share this post


Link to post
Share on other sites

Shift enter makes a line break. Enter just sends the message. You could do

Send({shift down})

Send({enter})

Send({shift up})

or maybe even

Send({shift down}{enter}{shift up}) =-P


My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]

Share this post


Link to post
Share on other sites

Why that posted like that? I have no idea.


My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]

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