Jump to content

TheDcoder

Active Members
  • Posts

    7,103
  • Joined

  • Days Won

    88

Everything posted by TheDcoder

  1. TraySetToolTip, TD
  2. Hello, I am having a problem with an array, here is the code: #include <Array.au3> Local $aAddNewFiles[4] $aAddNewFiles[0] = 3 ; No. of files $aAddNewFiles[1] = @DesktopDir & "FileX" $aAddNewFiles[2] = @DesktopDir & "FileY" $aAddNewFiles[3] = @DesktopDir & "FileZ" Local $aAddNewFilesNames[$aAddNewFiles[0]] ; This array will contain File Names w/ Ext For $i = 1 To UBound($aAddNewFiles) - 1 $aAddNewFilesNames = StringRegExpReplace($aAddNewFiles[$i], "^.*\\", "") ; Extract File Name w/ Ext Next _ArrayDisplay($aAddNewFilesNames)_ArrayDisplay sets @error to 1 (meaning $aAddNewFilesNames is not an array) Thanks in advance, TD
  3. None of the download links work TD
  4. @Melba23 I already checked that before posting this thread . What I tried after reading the wiki is Compiled this (test.exe): FileOpen(@ScriptDir & '\text.txt', 1) ; Make a file called text.txt Used another script to execute test.exe: Run("test.exe", @AppDataDir) ; Both script are located in the same directory (Desktop) It didn't create a file called text.txt in %appdata% as mentioned in the wiki So I asked the question here, TD
  5. @MikahS If I supply a string (path) to Run(), how will it effect executable?
  6. This might be a silly question but, AutoIt is my first language (Also the only one I know) What is "working directory"? (2nd param in Run) I saw the term many times, now I am curious about it. Thanks in advance, TD
  7. Like this: Global $hex $hex = "Da" $hex &= "ta" ConsoleWrite($hex) Will return: data TD
  8. Tension, Lite Sleep, Coding for hours are all causes of hair loss (Source: My Dad's Part Bald head) I was look for this too, thanks for asking
  9. Welcome P.S Click "Mark Solved" If I answered your question
  10. First, I did not read your post Pretend that UDF is ScriptX.au3 & your script is ScriptY.au3 Copy ScriptX.au3 to ScriptY.au3's location and add #include "ScriptX.au3" to your script TD
  11. Thanks Melba, I was confused & puzzled b/c I tried many Styles and Ex-Styles to do this. Thanks again, TD
  12. Hello, Please look at the code below: #include-once ; -- Created with ISN Form Studio 2 for ISN AutoIt Studio -- ; #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Include <GuiButton.au3> Global $ParentX = GUICreate("ParentX",500,500,-1,-1,-1,-1) GUISetBkColor(0xFFFFFF,$ParentX) Global $ButtonX = GUICtrlCreateButton("ButtonX",200,235,100,30,-1,-1) GUISetState(@SW_SHOW,$ParentX) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ButtonX LaunchChild() EndSwitch WEnd Func LaunchChild() Local $ChildX = GUICreate("ChildX",250,250,-1,-1,-1,-1) GUISetBkColor(0xFFFFFF,$ChildX) GUISetState(@SW_SHOW,$ChildX) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE GUIDelete($ChildX) Return EndSwitch WEnd EndFunc While ChildX is active, ParentX should be inaccessible (i.e when clicked on parent it should not become active). How can I do this? Thanks in Advance, TD
  13. @UEZ Yes, I have a dual core CPU. Thanks for the valuable info that AutoIt only uses 1 core TD
  14. @UEZ Thanks for your reply. I noticed that your script was using ~45% of my CPU, So adding (IMHO) some effects is not gonna hurt TD
  15. Always the useful, RTFC you rule!!!
  16. I solved the problem myself, Its my mistake that I changed "GUI Grid" Value to 0 Solution: 1. Open "C:Users<USERNAME>DocumentsISN AutoIt StudioDataPluginsformstudio2settings.ini" 2. In settings.ini: [settings] sizelimit=X raster_size=0 <<<<<<<<<<< Change 0 to any number except 0 (4 is recommended) spacing_distance=X raster=X repos=X draw_grid=X showdocklines=X 3. Open ISN Studio & Check If it works TD
  17. Hello, Please look at the picture: As you can see, the main editor was not created.... I have a very important project & the form studio is broke!! Thanks in Advance, TD
  18. Please read title="Forum Rules">Forum Rules
×
×
  • Create New...