
Pauletp
Members-
Posts
18 -
Joined
-
Last visited
Everything posted by Pauletp
-
I have the same problem. I checked the link http://www.autoitscript.com/autoit3/docs/appendix/GUIStyles.htm#Label and didn't see a description of $SS_REALSIZEIMAGE. Is there any other documentation on $SS_REALSIZEIMAGE somewhere else? Some time has now passed since the first post. Philip, can I ask you if in the end you managed to find a solution to the problem?
-
Align shortcuts on the right side of menu entries: I would like to find a way to automatically align shortcuts on the right side of the menu entry in an Autoit GUI. This is the usual look for many programs. For example, in Firefox if you click on the the File menu you get the following drop down menu (without the broken lines I have put in here just to simulate the format) which has the shortcuts aligned on the right side of the menu entries: File New Window-------------Ctrl+N New Tab-------------------Ctrl+T Open location------------Ctrl+L etc In AutoIt I have a GUI with the lines $MenuItemSearch = GUICtrlCreateMenu("Search") $MenuItemSearchTitle = GUICtrlCreateMenuItem("Find title-----------CTRL+F", $MenuItemSearch) Dim $Form1_1_AccelTable[1][2] = [["^f", $MenuItemSearchTitle]] GUISetAccelerators($Form1_1_AccelTable)AutoIt has the information there is a shortcut by the lines Dim $Form1_1_AccelTable[1][2] = [["^f", $MenuItemSearchTitle]] GUISetAccelerators($Form1_1_AccelTable)and you can see that in the line $MenuItemSearchTitle = GUICtrlCreateMenuItem("Find title-----------CTRL+F", $MenuItemSearch)I have manually placed the shortcut in the menu with the characters "Find title-----------CTRL+F". I would like to make some tidy menues. Does anybody have an idea how to automatically align shortcuts on the right side of the menu entries in AutoIt without doing it the manual way? Many thanks for a tip.
-
---- Thanks for the tip. Wasn't sure about the working directory but I inserted "C:\" as follows Run(@ComSpec & " /c midi2abc -k 2 test.mid > test.abc -k 2 c:\test.mid > c:\test.abc", "C:\", @SW_HIDE) ... and it works ...!
-
I want to use AutoIt3 to run a command line program. The program is called "c:\midi2abc.exe" Example: In Windows when I enter "c:\midi2abc -k 2 test.mid > test.abc -k 2 c:\test.mid > c:\test.abc" at the command line the output is a text file called "c:\test.abc" which has the content I expect. ------ I tried the following line with AutoIt Run(@ComSpec & " /c midi2abc -k 2 test.mid > test.abc -k 2 c:\test.mid > c:\test.abc", "", @SW_HIDE) The script executes but the result is an empty file . Have I messed up the syntax somehow? Thanks anyone for a tip.
-
I have a string "G3A B2 G2|A2 G2 B2 G2|G3A B2 G2|A2 G2 E4|G3A B2 G2|A2 G2 B2 d2|G3A G2 E2|E2 D2 D4" In the tutorial on regular expressions in the Help file there is a GUI (StringRegExpGUI.au3) to test results with StringRegExp If I input the search string in the GUI to be ([abcdefgABCDEFG]3[abcdefgABCDEFG] [abcdefgABCDEFG]2 [abcdefgABCDEFG]2) the GUI shows the result array to be 0 => G3A B2 G2 1 => G3A B2 G2 2 => G3A B2 G2 3 => G3A G2 E2 This is the result I want. But the code #Include <Array.au3> $Source = "G3A B2 G2|A2 G2 B2 G2|G3A B2 G2|A2 G2 E4|G3A B2 G2|A2 G2 B2 d2|G3A G2 E2|E2 D2 D4" $Filter = "([abcdefgABCDEFG]3[abcdefgABCDEFG] [abcdefgABCDEFG]2 [abcdefgABCDEFG]2)" $MatchArray = StringRegExp($Source, $Filter,1) _ArrayDisplay ($MatchArray, "Display matches") only displays the first match which is "G3A B2 G2" so the syntax must be wrong. Many thanks if someone has a tip.
-
Use an applications window within your gui
Pauletp replied to kev51773's topic in AutoIt General Help and Support
I am a newbie and also interested in showing an application running in a GUI. I tried to run the code you posted but the result is just an emtpy GUI and the script has paused. Do you have an idea how to test to make it work on my XP machine? -------- -
I have recorded a few lines of AutoIt 3 code to make a very simple script. When I run the script by clicking on a link to the script nothing happens. If the SCiTE editor is open and I run the script the SCiTE window is activated and I see in the Windows system tray that the script has paused. If I press F5 from within SciTE the script runs. So the code works. Have I missed a setting somewhere? This must be something simple. Thanks anyone for a tip.
-
I have a directory tree with three levels. Can I make an array of all subfolders from the path of the top folder? I don't think it's possible to do this with a single command. Could I do it this way? 1. Use the command _FileListToArray to make an array $FolderList 2. Loop through $FolderList to find folders one level down in the tree 3. Repeat 2 until there are no more folders to find 4. Add all the arrays together into one big array. The total number of folders could be approx. 1000. Can AutoIt handle an array of this size? Many thanks if anybody has a tip or a simpler method. Paul
-
How to read and write ID3 tags in MP3 files
Pauletp replied to Pauletp's topic in AutoIt General Help and Support
Thanks for the tip. I have tested the script "getID3Tag and setID3Tag" (from Xenobiologist) and I was able to read and write tags to some MP3s on my machine. -
Passing string to _FileListToArray
Pauletp replied to Pauletp's topic in AutoIt General Help and Support
Thank you for your help. That's done the trick. -
Passing string to _FileListToArray
Pauletp replied to Pauletp's topic in AutoIt General Help and Support
Yes, it does. -
I have a problem with the following code. If I run ;------------------Reference: ;----------------- Window open in Explorer is ;-----------------"e:\abc\script_test" ;-----------------"Script_test" contains 5 other folders ;---------- get path of window in Explorer $GetTextString = WinGetText("") ;-------------locate the line break $pos = StringInStr($GetTextString,@LF ) ;-------------take out the first line for the folder path $folderpath = StringLeft($GetTextString, $pos) MsgBox (0,"", $folderpath,2) #Include <File.au3> #Include <Array.au3> ;-------------manual insertion of path string ;$FileList =_FileListToArray("E:\abc\Script_test","*", 2) $FileList =_FileListToArray($folderpath,"*", 2) _ArrayDisplay($FileList,"$FileList") If @Error=1 Then MsgBox (0,"","No Files\Folders Found.") Exit EndIf ;---------------- I get the message "No Files\Folders Found." But if I manually insert the "E:\abc\Script_test" I get the array listed as I expected showing the names of the folders. I must be missing something basic here. Anyone see the problem? Thanks for a tip.
-
How to find full path of current folder in XP explorer
Pauletp replied to Pauletp's topic in AutoIt General Help and Support
WinGetText works to get the path. Thank you. Is there also a way to "read" the text highlighted on the screen? In this case I want to read the file or folder which is highlighted (selected), but I suppose it could also be characters in a Word file. Many thanks for a tip. -
In the help file the sample code for FileOpenDialog leaves the dialog in the top left of my screen. How can I make the dialog appear in the center of the screen? Many thanks for a tip.
-
Hello I'm new to AutoIt. I would like to select a file from an explorer-like window. Is this a standard GUI control? Thanks for a tip.