P3rsp3ctiv3

Send Uppercase from input

7 posts in this topic

#1 ·  Posted

Hello I would like to create a tool which can send a custom text in big letters.  My problem is that the tool don´t  write the letters big.

Here is my code:

#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


Local $sString, $name
$window = GUICreate("Texttransformer v1.0", 283, 229, 446, 332)
GUISetCursor (0)
GUISetBkColor(0x008080)
$exit = GUICtrlCreateLabel("F9 - exit", 80, 144, 124, 28)
GUICtrlSetFont(-1, 22, 400, 0, "Terminal")
$start = GUICtrlCreateLabel("F5 - start", 80, 96, 124, 28)
GUICtrlSetFont(-1, 22, 400, 0, "Terminal")
$title = GUICtrlCreateLabel("Texttransformer", 8, 32, 264, 29)
GUICtrlSetFont(-1, 19, 400, 0, "MingLiU_HKSCS-ExtB")
GUICtrlSetColor(-1, 0xC0DCC0)
$name = GUICtrlCreateInput("", 64, 184, 153, 21)
GUICtrlSetColor(-1, 0x3399FF)
GUISetState(@SW_SHOW)


HotKeySet ("{f5}","Start")
HotKeySet ("{f9}","Cancle")


While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

Func Start();
    Local $sString = GUICtrlRead($name)
    StringUpper($sString) 
    Send($sString)
EndFunc


Func Cancle();
    Exit
EndFunc

Share this post


Link to post
Share on other sites



#2 ·  Posted

Should be:

8 minutes ago, P3rsp3ctiv3 said:

Func Start();
    Local $sString = GUICtrlRead($name)
    GUICtrlSetData($name, StringUpper($sString) )
EndFunc

 

 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#3 ·  Posted

1 minute ago, water said:

I want that the input text will be send in big letters.

 

Share this post


Link to post
Share on other sites

#4 ·  Posted

You are quoting the wrong text :) That's not what I said.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#5 ·  Posted

9 minutes ago, water said:

Should be:

 

 

I want that the input text will be send in big letters. I don´t want that the input in the GUI will change. :)

Share this post


Link to post
Share on other sites

#6 ·  Posted

Where is your "Send" command to go? You do not set any window to be activated so the output goes to your $window form but there is no field on @window set to handle the Send command. Perhaps you need to activate the terminal window before using the Send command?


Who lied and told you life would EVER be fair?

Share this post


Link to post
Share on other sites

#7 ·  Posted

40 minutes ago, benched42 said:

Where is your "Send" command to go? You do not set any window to be activated so the output goes to your $window form but there is no field on @window set to handle the Send command. Perhaps you need to activate the terminal window before using the Send command?

If i run the script a window will open. If I press F5, the function Start will be activated and send the uppercase into the current window.

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