Jump to content

Changing font color and style that will be typed


layer
 Share

Recommended Posts

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

Link to comment
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]
Link to comment
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]
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...