
msmith11
Members-
Posts
13 -
Joined
-
Last visited
msmith11's Achievements

Seeker (1/7)
0
Reputation
-
Compile dialog box missing in SciTE
msmith11 replied to msmith11's topic in AutoIt General Help and Support
Yes I was running SciTE-Lite. Somehow it wasn't clear to me I needed to install SciTE4AutoIt3 to get the compiler dialog to work. In any event the compiler dialog window seems to be back online. Thank you very much for your quick response. Go AutoIt! -
Compile dialog box missing for all scripts when invoking Tools/Compile or CTRL+F7. This is occurring in an existing AutoIt/SciTE install that was working fine. However, the AutoIt .exe files run correctly whether compiled from Menu/Tool/Compile, CTRL+F7 or launching Aut2Exe from the windows start button. AutoIt uninstalled and full version v3.3.14.5 reinstalled three times. Windows 7 last updated automatically 2/18/2019 (possibly broke something in the AutoIt install?). Don't know if the compile dialog was broken before the Windows update. I do have a restore point available before the update but have not invoked it. If it's the update, if I roll it back Windows will just update again and break the compile window again. I need a fix that will support the Windows update if the update is the problem. Per RegEdit, AutoIt registry values are not removed when uninstalling AutoIt. Prior AutoIt settings are maintained upon reinstall so the reinstall is not a clean install. Compiling from inside SciTE output pane results: >"C:\Program Files (x86)\AutoIt3\SciTE\..\aut2exe\aut2exe.exe" /in "C:\AutoItScripts\Finished\MouseLocator.au3" >Exit code: 0 Time: 0.09376 Thanks for your help.
-
I found something that works. Once the decimals are isolated in their own cells you can datatype them to numbers using the Number function. ;New code: #include <File.au3> Local $avArray[6][2] _FileReadToArray( "..path\Test.csv", $avArray, 0, "," ) ;YOU'll HAVE TO MODIFY YOUR PATH HERE _ArrayDisplay($avArray) ;starting data structure For $i = 0 to 5 $a_AccumArray[$i][1] = Number( $a_AccumArray[$i][1] ) Next _ArraySort($avArray,0,0,0,1) ;sort ascending on column 1 (the decimals) _ArrayDisplay($avArray) _ArraySort($avArray,1,0,0,1) ;sort descending on column 1 (the decimals) _ArrayDisplay($avArray)
-
Sorting negative decimals with _ArraySort has me baffled. Trying to sort a 2D array with negative decimals read in thru _FileReadToArray. Works fine for positive decimals. For negative decimals preceded by a minus sign however, _ArraySort treats negative decimals as absolute values. The minus sign seems to be ignored. Any suggestions would be greatly appreciated. Thanks and best to you. The _FileReadToArray Version: Copy this data to an empty Notepad file and save as Test.csv CALD,0.0376 AXGN,0.0195 ERII,-0.0243 QRVO,-0.0025 BLDR,-0.0059 WTW,0.0620 ;Program start #include <File.au3> Local $avArray[6][2] _FileReadToArray( "..path\Test.csv", $avArray, 0, "," ) ;YOU'll HAVE TO MODIFY YOUR PATH HERE _ArrayDisplay($avArray) ;starting data structure _ArraySort($avArray,0,0,0,1) ;sort ascending on column 1 (the decimals) _ArrayDisplay($avArray) _ArraySort($avArray,1,0,0,1) ;sort descending on column 1 (the decimals) _ArrayDisplay($avArray) ;Program End ;Negative Decimal Data acquired thru the UDF _FileReadToArray will not sort correctly ********************************************************************************************************** The same program with data entered manually: #include <File.au3> Local $avArray[6][2] = [ _ ["CALD", 0.0376], _ ["AXGN", 0.0195], _ ["ERII", -0.0243], _ ["QRVO", -0.0025], _ ["BLDR", -0.0059], _ ["WTW", 0.062]] _ArrayDisplay($avArray) ;starting data structure _ArraySort($avArray,0,0,0,1) _ArrayDisplay($avArray) _ArraySort($avArray,1,0,0,1) _ArrayDisplay($avArray) ;Manually entered negative decimals sort correctly
-
Buttons Don't Work When Rectangle Object Is Present
msmith11 replied to msmith11's topic in AutoIt GUI Help and Support
Neat trick for locating limits of graphic: Color the background. That feature also made me realize the "graphic" is the container for the "object" e.g. GUICtrlCreateGraphic creates the container and GUICtrlSetGraphic creates the object in the container (in my case the rectangle). I also didn't realize the coordinates in GUICtrlSetGraphic are an offset to the container. Never would have gotten there on my own. Thanks -
Buttons Don't Work When Rectangle Object Is Present
msmith11 replied to msmith11's topic in AutoIt GUI Help and Support
Maybe you'd like to know this form is mostly static by design and being data driven from a file to array load that is managed elsewhere. The buttons are the only active control. The rectangle is actually being used as a thickened line to develop grid lines on the form to create a spreadsheet look -
Simple code. Nothing elegant. Can't figure why adding a rectangle to a control disables some of the control buttons. Try activating the rectangle at line 21 and see what happens. On my system it shuts off the top 2 buttons. Buttons are linked to dummy messages just for testing activation. Code has been simplified just to exhibit the problem. Thanks so much for your input. ;Func Display #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <ColorConstantS.au3> Opt('MustDeclareVars', 1) Local $a_PositionLines[7][8] ;define the array holding the current stock Position information Local $msg Local $h_GUIWindow = GUICreate("Position Alerts", 745, 340 ) GUISetBkColor ( 0xFFCCCC ) Local $sFont = "Liberation Sans" Local $n_GridColor = 0x660000 #cs ;start horizontal grid lines...using rectangles for thickness Local $n_hLine1 = GUICtrlCreateGraphic(0, 0) ;First horizontal line. set to 0, 0 actual start position and length controlled in GUICtrlSetGraphic GUICtrlSetGraphic( $n_hLine1, $GUI_GR_COLOR, $n_GridColor, $n_GridColor ) GUICtrlSetGraphic( $n_hLine1, $GUI_GR_RECT, 10, 35, 725, 2 ) #ce ;start label row Local $h_Symbol = GUICtrlCreateLabel("Name", 25, 13, 50, 20, $SS_CENTER) GUICtrlSetFont ( $h_Symbol, 8, 700, 4, $sFont ) Local $h_Symbol = GUICtrlCreateLabel("Type", 100, 13, 40, 20, $SS_CENTER) GUICtrlSetFont ( $h_Symbol, 8, 700, 4, $sFont ) Local $h_Symbol = GUICtrlCreateLabel("%Change", 160, 13, 60, 20, $SS_CENTER) GUICtrlSetFont ( $h_Symbol, 8, 700, 4, $sFont ) Local $h_Symbol = GUICtrlCreateLabel("Entry", 236, 13, 80, 20, $SS_CENTER) GUICtrlSetFont ( $h_Symbol, 8, 700, 4, $sFont ) Local $h_Symbol = GUICtrlCreateLabel("Current", 331, 13, 90, 20, $SS_CENTER) GUICtrlSetFont ( $h_Symbol, 8, 700, 4, $sFont ) Local $h_Symbol = GUICtrlCreateLabel("Base", 433, 13, 85, 20, $SS_CENTER) GUICtrlSetFont ( $h_Symbol, 8, 700, 4, $sFont ) Local $h_Symbol = GUICtrlCreateLabel("%Change", 535, 13, 60, 20, $SS_CENTER) GUICtrlSetFont ( $h_Symbol, 8, 700, 4, $sFont ) Local $h_Symbol = GUICtrlCreateLabel("Set", 645, 13, 55, 20, $SS_CENTER) GUICtrlSetFont ( $h_Symbol, 8, 700, 4, $sFont ) ;end label row ;Define Buttons Local $h_Row1Symbol = GUICtrlCreateButton("But1", 15, 46, 70, 30) GUICtrlSetFont ( $h_Row1Symbol, 10, 0, 1, $sfont ) ;Position #2 Local $h_Row2Symbol = GUICtrlCreateButton("But2", 15, 96, 70, 30) GUICtrlSetFont ( $h_Row2Symbol, 10, 0, 1, $sfont ) ;Position #3 Local $h_Row3Symbol = GUICtrlCreateButton("But3", 15, 146, 70, 30) GUICtrlSetFont ( $h_Row3Symbol, 10, 0, 1, $sfont ) ;Position #4 Local $h_Row4Symbol = GUICtrlCreateButton("But4", 15, 196, 70, 30) GUICtrlSetFont ( $h_Row4Symbol, 10, 0, 1, $sfont ) ;Position #5 Local $h_Row5Symbol = GUICtrlCreateButton("But5", 15, 246, 70, 30) GUICtrlSetFont ( $h_Row5Symbol, 10, 0, 1, $sfont ) ;Position #6 Local $h_Row6Symbol = GUICtrlCreateButton("But6", 15, 296, 70, 30) GUICtrlSetFont ( $h_Row6Symbol, 10, 0, 1, $sfont ) GUISetState( @SW_SHOW, $h_GUIWindow) ;Run the GUI until the window is closed While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $h_Row1Symbol MsgBox(0, 'Button 1', '#1 button was pressed') Case $msg = $h_Row2Symbol MsgBox(0, 'Button 2', '#2 button was pressed') Case $msg = $h_Row3Symbol MsgBox(0, 'Button 3', '#3 button was pressed') Case $msg = $h_Row4Symbol MsgBox(0, 'Button 4', '#4 button was pressed') Case $msg = $h_Row5Symbol MsgBox(0, 'Button 5', '#5 button was pressed') Case $msg = $h_Row6Symbol MsgBox(0, 'Button 6', '#6 button was pressed') EndSelect WEnd
-
Right Click AutoIt commands missing in Explorer
msmith11 replied to msmith11's topic in AutoIt General Help and Support
Reinstalled as Administrator. That did the trick! -
I would like this to happen: InetGet("ftp://ftp2.interactivebrokers.com/usa.txt", "C:\ShortableSymbols\Interactive\usa.txt", 4) My result is Exit code: 0 and no file saved. The file views in IE9 and can be saved from IE9 using the Save as command. What could I be missing. Not a clue as to why this doesn't work. Thanks
-
I would like to control the Windows 7 ScITE window size at program startup. I have tried adding this so far with various settings for all four parameters: ScITE Options -> Open User Options File. ## Scite start position and size position.left=100 position.top=100 position.width=1000 position.height=600 I save the file, close and reopen ScITE but the ScITE window opens full screen regardless of the four settings above. What am I missing? Thanks
-
Right Click AutoIt commands missing in Explorer
msmith11 replied to msmith11's topic in AutoIt General Help and Support
Deleted Userchoice from .AU3 still no right click response. Anything else to try? Thanks. -
Right Click AutoIt commands missing in Explorer
msmith11 replied to msmith11's topic in AutoIt General Help and Support
Correct. -
I've installed the latest versions of SciTE4AutoIt3 and autoit-v3-setup on a Windows 7 Ultimate machine. In viewing the tutorials I keep seeing references to right click Explorer commands such as Compile Script, Compile with Options, Edit Script, Run Script, and Tidy. These menu items do no appear no matter where I right click in Explorer. What am I missing. Thanks.