Jump to content

Search the Community

Showing results for tags 'add'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 9 results

  1. good morning sirs. please i have a request from you. i have an variable to Read a data from a file this data is Encrypted and when i read it i Decrypte it. for that i need a function to Write a ini data to string. ;#Function# ===================================================================================================================== ; Name............: _IniReadFromString ; Description.....: Returns the value of a key in a specific section of an ini-formatted string ; Syntax..........: _IniReadFromString($szInput, $szSection, $szKey, $Default) ; Parameters......: ;   $szInput - The string that contains data in ini format ;   $szSection   - The sectionname (just as in IniRead) ;   $szKey   - The keyname (just as in IniRead) ;   $Default - The default value if the key does not exist or reading failed (just as in IniRead) ; Return values ..: ;   Success  - Returns the read value ;   Failure  - Returns $Default ; Author .........: FichteFoll ; Remarks ........: Works for Unicode as well as for ANSI ; Related ........: IniRead, _IniReadSectionFromString ; Link ...........; See on top ; Example ........; $var = _IniReadFromString(StringFormat("[Sect]\r\nMyKey1=value1\r\nMyKey2=value2"), "Sect", "MyKey2", "no_value") ; =============================================================================================================================== Func _IniReadFromString($szInput, $szSection, $szKey, $Default) $szInput = StringStripCR($szInput) ;~  Local $aRegMl = StringRegExp($szInput, "\[" & __StringEscapeRegExp($szSection) & "\]\n+(?:[^\[].*?=.*\n)*" & __StringEscapeRegExp($szKey) & "=(.*)\n?(",3) Local $aRegMl = StringRegExp($szInput, "\[" & __StringEscapeRegExp($szSection) & "\]\n+(?:[^\[].*?=.*\n)*" & __StringEscapeRegExp($szKey) & "=(.*)\n?", 3) If @error Then Return SetError(1, 0, $Default) ; key not found    Return $aRegMl[0] EndFunc;==>_IniReadFromString ; ############################################################################################################################### ; =============================================== ; = Internal Use Only ; =============================================== Func __StringEscapeRegExp($szExp) Return StringRegExpReplace($szExp, "([\(\)\[\]\{\}\\\/\?\.\\|\+])", "\\$1") ; ()[]{}\/?.|+ EndFunc;==>__StringEscapeRegExp like this function Read the ini from string. please ihelp me thanks in advance
  2. Good morning I'm working on a little project, and I was wondering if there's a way ( sure there is ) to insert data to a ComboBox control everytime the user insert some text in the ComboBox which is not in the ComboBox data. I'll try to explain with an example: - Form with some data ( ComboBox is empty ); - User prompt something in the ComboBox: if what the user prompts is not in the ComboBox values ( at the moment empty ), then insert the value in the ComboBox values, in order to have, next time the user prompts the form, the value that he entered. More pratical example: - First call of the form, ComboBox empty; - I prompt "A" in the ComboBox; - Second call, in the ComboBox I should see "A"; - I prompt "B" in the ComboBox; - Third call, I should see "A" "B"; - And so on... Everytime the form is called, I re-create it, so I think I can't use _GUICtrlComboBox_AddStrings(). I tried with Global $strCboStrings = "" ; When the user prompt the form, the code below is executed. ; I.E. : User prompt "A", after the if I should have "A"; ; In the second call, If I write "B", I should see "A" ; "B"; ; If I write "A" again, in the combobox values should not be any changes. If Not StringInStr($strCboStrings, GUICtrlRead($cboVoiceCategory)) <> 0 Then $strCboStrings &= $strCboStrings & "|" & GUICtrlRead($cboVoiceCategory) EndIf Any suggestion? Thanks
  3. Hi guys I have an inquiry please I want an example of how to add an icon file to the compiled autoit file and how to use it in GUICtrlCreateIcon Preferably in a separate list within the resourceFor example myIcons I hope my request is clear and I hope you will help me solve this problem Because I found an example in the help files but I did not understand the method well
  4. Hey guys I need help to get further with this script Test.txt contains lines like this: _______________ Line1 Line2 Line3 _______________ I have managed to view the content of a txt file in the left side of a GUI like this: #Include <File.au3> #include <GUIConstants.au3> Global $file = FileRead("Test.txt") GUICreate("", 800, 800, 192, 124) $control = GUICtrlCreateEdit($file, 0, 0, 400, 800, $ES_AUTOVSCROLL + $WS_VSCROLL + $ES_READONLY) GUICtrlSetFont(-1, 14, 400, 0, "@Arial Unicode MS") GUICtrlSetBkColor(-1, 0xFFFFFF) GUICtrlSetState($control, $GUI_FOCUS) ;Makes sure that text is not highlighted by default GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Okay so is it possible to make each line become a clickable item? Say I want to delete Line2, then I highlight it and click a "remove" button. Also an "add" button would be needed to add new lines On Case $GUI_EVENT_CLOSE the changes should be saved to Test.txt (Or with a save button) Is this possible? I hope you can help me :-)
  5. HI. I was needing to add a program to Tarkbar(an easy way without using objectcreateinterface ) so I found this. So then I deduced how to add to the StartMenu while I see the shell32 in hex editor search for taskbarunpin|taskbarpin string. I found another two interesting string (startpin|startunpin) So I try out and they work too but to add to StartMenu. This is not an official way to do this, however it works. $sFileLnk parameter must be Link(.lnk) to our program. ;~ Success: True. ;~ Failure: False. Func DeleteFromTaskBar($sFileLnk) Return _WinAPI_ShellExecute($sFileLnk,"","", "taskbarunpin") EndFunc Func AddToTaskBar($sFileLnk) Return _WinAPI_ShellExecute($sFileLnk,"","", "taskbarpin") EndFunc Func AddToStartMenu($sFileLnk) Return _WinAPI_ShellExecute($sFileLnk,"","", "startpin") EndFunc Func DeleteFromStartMenu($sFileLnk) Return _WinAPI_ShellExecute($sFileLnk,"","", "startunpin") EndFunc Saludos
  6. This probably has a simple solution, but I cannot figure it out. First here is the code: #include #include #include #include #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("", 234, 58, 192, 124) $FIRST = GUICtrlCreateLabel("First", 8, 16, 23, 17) $SECOND = GUICtrlCreateLabel("Second", 104, 15, 41, 17) $1st=GUICtrlCreateInput("", 36, 12, 57, 21) $2nd=GUICtrlCreateInput("", 150, 12, 57, 21) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $FIRST1=GUICtrlRead($1st) $SECOND2=GUICtrlRead($2nd) if $FIRST1<>"" Then $SECOND2=$FIRST1+$SECOND2 EndIf While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd What I want to do is, when I put a number in the First inputbox, the Second inputbox automatically adds it to its total. Example: First: I put in the number 6 Second: It already has the number 8 in it I want the Second to automatically update to 14. Any help is greatly appreciated.
  7. Startup Manager allows you to customise the programs that run on startup and supports all of the different methods that programs can run on startup. If you want to run your own program on startup, or remove unnessecary ones, then this program will make your life easier. Features: Supports Registry and startup folder. Shows and allows you to modify whether it affects all user accounts or just yours and if it will run all the time, or just once. Allows you to add your own applications to the startup folder. Startup Manager.au3 Guinesses UDF for I hope you like it Updates: Added guidisable into the script for standard UDF compatibility.
  8. Hi, at this path "@programfilesdir\AutoIt3\SciTE\api" there's file "au3.user.calltips.api" this file add funcs to autoit okay, now i added my func. but i want make it's color blue like other funcs. how should i do this thanks.
  9. Hello again everyone I still come back here for some more guidance. I have a big pile of variables/constants that I need to be selected depending of the previous variable/constant. Something like this: Global $pos[1][4] $pos[0][0] = 35, 30 $pos[0][1] = 110, 30 $pos[0][2] = 185, 30 $pos[0][3] = 260, 30 If $variableA = yes Then $pos[0][2] = $pos[0][2] - 0.1 EndIf This clearly wont work, but is more of a suggestion to what I want to happen. The outcome should then be $pos[0][1] Is this possible? Kind Regards, Akarillon
×
×
  • Create New...