Jump to content

Tony007

Members
  • Posts

    7
  • Joined

  • Last visited

Tony007's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hello, please I need your help. I have a sentence and I want to remove the last word. How can I do that? I've already started a script. #include <MsgBoxConstants.au3> $Sentence = "Monday Tuesday Wednesday Thursday Friday" $NewSentence = ;Delete last Word from String MsgBox($MB_SYSTEMMODAL, "", $NewSentence) ;Result should be "Monday Tuesday Wednesday Thursday" Can anyone point me in the right direction? Thank you in advance
  2. Thank you, it works. 👍
  3. Hi, is it possible to export only the area "$idOutput" with the TEXT as a PNG? Thanks #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> Example() Func Example() Local $hGUI = GUICreate("Test", 700, 700, -1, -1) Local $input1 = GUICtrlCreateInput("", 10, 10, 150, 20) Local $idButtonStart = GUICtrlCreateButton("Start", 200, 10, 50, 30) Local $idButtonClear = GUICtrlCreateButton("Clear", 260, 10, 50, 30) Local $idButtonExport = GUICtrlCreateButton("Export", 320, 10, 50, 30) Local $idOutput = GUICtrlCreateLabel("TEXT", 10, 50, 500, 500, BitOR($BS_PUSHLIKE, $SS_CENTER)) GUICtrlSetFont($idOutput, 45, 800, "", "Impact") GUISetState(@SW_SHOW, $hGUI) ; Run the GUI until the dialog is closed While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $idButtonStart $ContentInput1 = GUICtrlRead($input1) GUICtrlSetData($idOutput, $ContentInput1) Case $idButtonClear GUICtrlSetData($input1, "") GUICtrlSetData($idOutput, "") Case $idButtonExport EndSwitch WEnd GUIDelete($hGUI) Exit EndFunc ;==>Example
  4. I need something like this, but the first 5 words should stay and not the characters. #include <MsgBoxConstants.au3> Local $sString = StringLeft("Mon,Tues,Wed,Thur,Fri,Sat,Sun", 5) ; Retrieve 5 characters from the left of the string. MsgBox($MB_SYSTEMMODAL, "", "The 5 leftmost characters are: " & $sString)
  5. Do you know what commands can help me?
  6. Sorry but I have no examples, I searched on google and autoit help, but I do not know what to look for.
  7. Hello, I have a certain number of words (10 - 20 words) separated by a comma. What can I do that only the first 5 words remain, the rest should be deleted?
×
×
  • Create New...