-
Posts
69 -
Joined
-
Last visited
Everything posted by ChrisN
-
@jdelaney: That works for my example - I'll have to test it at work tomorrow & see if it works on more things. Thanks! Edit: It doesn't work if the tool name (150MM SAW BLADE) doesn't start with a number. I modified it and it works now $array = StringRegExp($string,"(?U)N100 (.*)s+((.*))[rnWws]+((STARTMOP)[rnWws]+(ENDMOP))",3)
-
:idea:Someone should figure out an easier way to match things than using regular expressions. I need some help matching things -- I can't seem to get my regular expressions to work. So here is what I am trying to do: Basically, I want to have just the hilighted parts extracted. I am trying to match them using "N100 (" and "(STARTMOP)" and "(ENDMOP)" to define what to extract, but I am having trouble getting a regular expression that matches anything - I just get errors Can anyone help? (BTW, I am using GEOSoft's PCRE Toolkit to test my regular expressions)
-
Showing Tidy errors/warnings inline with code (SciTE)
ChrisN replied to ChrisN's topic in AutoIt General Help and Support
No. It doesn't fail because I declared them globally. So they are declared already, but au3check doesn't know that. Edit: thanks, that works. -
Awesome! Thanks @JFX It works!
-
Sorry, it doesn't work. I get error 3 for both DllCall()'s
-
How can I change aero glass color from my program? All I have found is this: [DllImport("dwmapi.dll", EntryPoint = "#127", PreserveSig = false)] public static extern void DwmGetColorizationParameters(out WDM_COLORIZATION_PARAMS parameters); [DllImport("dwmapi.dll", EntryPoint = "#131", PreserveSig = false)] public static extern void DwmSetColorizationParameters(WDM_COLORIZATION_PARAMS parameters, uint uUnknown); public struct WDM_COLORIZATION_PARAMS { public uint Color1; public uint Color2; public uint Intensity; public uint Unknown1; public uint Unknown2; public uint Unknown3; public uint Opaque; } source: http://stackoverflow.com/questions/1487919/how-does-windows-change-aero-glass-color And I don't have a clue about using external dll's. Can anyone help?
-
WOW!! I can hardly belive it's made in AutoIt!
- 995 replies
-
- isn autoit studio
- isn
-
(and 3 more)
Tagged with:
-
Problem with icon position when using GuiCtrlSetImage
ChrisN replied to ChrisN's topic in AutoIt General Help and Support
Created a ticket: #2075 -
Problem with icon position when using GuiCtrlSetImage
ChrisN replied to ChrisN's topic in AutoIt General Help and Support
Found another thread describing the same problem. -
Problem with icon position when using GuiCtrlSetImage
ChrisN replied to ChrisN's topic in AutoIt General Help and Support
Actually _SetIcon() from Icons.au3 doesn't work like GuiCtrlSetImage() because it doesn't return 0 if I try to set an icon from a .exe file with none in, and my program depends on it -
Problem with icon position when using GuiCtrlSetImage
ChrisN replied to ChrisN's topic in AutoIt General Help and Support
GUICtrlSetGraphic works only on Graphic controls, not Icon controls -
Problem with icon position when using GuiCtrlSetImage
ChrisN replied to ChrisN's topic in AutoIt General Help and Support
Yashied's Icons.au3 UDF works fine. Is this an AutoIt bug? (AutoIt 3.3.8.0) -
Nope. WinXP
-
When I resize my gui, and update my icon with GuiCtrlSetImage(), the icon goes back to the original location until I resize my gui again. Anyone else have this problem Example code: #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 185, 139, 192, 148, BitOR($GUI_SS_DEFAULT_GUI,$WS_SIZEBOX,$WS_THICKFRAME)) $Icon1 = GUICtrlCreateIcon(@ScriptDir & "\default.ico", -1, 16, 88, 32, 32) GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### AdlibRegister("updateicon") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func updateicon() GUICtrlSetImage($Icon1, @ScriptDir & "\default.ico") EndFuncdefault.ico
-
This topic should probably be in the Example Scripts forum, not the ActiveX/COM Help and Support forum. P.S. I don't have vista so I can't test it
-
Hmmm... maybe a problem with my resizing options... Edit: Ok, mustn't have locked them in enough before extending/retracting. Locking width + height + 1 vertical + 1 horizontal seems to work.
-
FWIW, here's my solution: Case $Button_1 $state = _guiextender_section_state($extendablesection) If $state = 1 Then GUICtrlSetResizing($ListView1, $GUI_DOCKHEIGHT) GUICtrlSetResizing($Label_1, BitOR($GUI_DOCKTOP,$GUI_DOCKHEIGHT)) GUICtrlSetResizing($Label_2, BitOR($GUI_DOCKTOP,$GUI_DOCKHEIGHT)) GUICtrlSetResizing($Button_1, BitOR($GUI_DOCKTOP,$GUI_DOCKHEIGHT)) _GUIExtender_Section_Extend($extendablesection, False) ;retract GUICtrlSetData($Button_1, "66") GUICtrlSetResizing($ListView1, $GUI_DOCKLEFT + $GUI_DOCKRIGHT + $GUI_DOCKTOP + $GUI_DOCKBOTTOM) GUICtrlSetResizing($Label_1,$GUI_DOCKLEFT + $GUI_DOCKBOTTOM + $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT) GUICtrlSetResizing($Label_2,$GUI_DOCKLEFT + $GUI_DOCKBOTTOM + $GUI_DOCKRIGHT + $GUI_DOCKHEIGHT) GUICtrlSetResizing($Button_1,$GUI_DOCKRIGHT + $GUI_DOCKBOTTOM + $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT) ElseIf $state = 0 Then GUICtrlSetResizing($ListView1, $GUI_DOCKHEIGHT) GUICtrlSetResizing($Label_1, BitOR($GUI_DOCKTOP,$GUI_DOCKHEIGHT)) GUICtrlSetResizing($Label_2, BitOR($GUI_DOCKTOP,$GUI_DOCKHEIGHT)) GUICtrlSetResizing($Button_1, BitOR($GUI_DOCKTOP,$GUI_DOCKHEIGHT)) _GUIExtender_Section_Extend($extendablesection, True) ;extend GUICtrlSetData($Button_1, "55") GUICtrlSetResizing($ListView1, $GUI_DOCKLEFT + $GUI_DOCKRIGHT + $GUI_DOCKTOP + $GUI_DOCKBOTTOM) GUICtrlSetResizing($Label_1,$GUI_DOCKLEFT + $GUI_DOCKBOTTOM + $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT) GUICtrlSetResizing($Label_2,$GUI_DOCKLEFT + $GUI_DOCKBOTTOM + $GUI_DOCKRIGHT + $GUI_DOCKHEIGHT) GUICtrlSetResizing($Button_1,$GUI_DOCKRIGHT + $GUI_DOCKBOTTOM + $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT) EndIf Before extending/retracting I change the resizing flags to prevent the controls from moving, extend/retract, and then change the resizing back to what it should be. edit: Causes problems when the window is maximized, though
-
Ok, here it is. $Form1 = GUICreate("Form1", 643, 604, 192, 124, BitOR($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_TABSTOP)) _guiextender_init($Form1) ;_GUIExtender_Section_Start(0,453) $ListView1 = GUICtrlCreateListView("Name|Description|Path", 0, 0, 642, 430, BitOR($GUI_SS_DEFAULT_LISTVIEW,$WS_HSCROLL,$WS_VSCROLL)) GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 100) GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 300) GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 2, 200) GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKBOTTOM) $ListView1context = GUICtrlCreateContextMenu($ListView1) $cntxtmnu_Run = GUICtrlCreateMenuItem("Run", $ListView1context) $cntxtmnu_RunParam = GUICtrlCreateMenuItem("Run with parameters...", $ListView1context) $cntxtmnu_RunCon = GUICtrlCreateMenuItem("Run in console", $ListView1context) $cntxtmnu_RunHlp = GUICtrlCreateMenuItem("Help file", $ListView1context) $cntxtmnu_RunWeb = GUICtrlCreateMenuItem("Website", $ListView1context) $cntxtmnu_Del = GUICtrlCreateMenuItem("Delete Item", $ListView1context) $cntxtmnu_Add = GUICtrlCreateMenuItem("Add Items...", $ListView1context) $Label_1 = GUICtrlCreateLabel("Edit details", 8, 432, 55, 17) GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Label_2 = GUICtrlCreateLabel("Label_2", 64, 440, 492, 2, $SS_ETCHEDHORZ) GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKBOTTOM+$GUI_DOCKHEIGHT) $Button_1 = GUICtrlCreateButton("66", 568, 432, 68, 14, BitOR($BS_NOTIFY,$BS_FLAT)) GUICtrlSetFont(-1, 8, 400, 0, "Webdings") GUICtrlSetResizing(-1, $GUI_DOCKRIGHT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) ;_GUIExtender_Section_End() $extendablesection = _GUIExtender_Section_Start(455,149 ) _GUIExtender_Section_Action($extendablesection) Opt("GUIResizeMode", $GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKBOTTOM+$GUI_DOCKHEIGHT) $Label_3 = GUICtrlCreateLabel("Name", 104, 456, 32, 17) GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Label_4 = GUICtrlCreateLabel("Description", 79, 480, 57, 17) GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Label_5 = GUICtrlCreateLabel("Command Line Parameters", 6, 504, 130, 17) GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Label_6 = GUICtrlCreateLabel("Help File", 91, 528, 45, 17) GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Label_7 = GUICtrlCreateLabel("Icon", 111, 552, 25, 17) GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Label_8 = GUICtrlCreateLabel("Website", 93, 576, 43, 17) GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Checkbox_RWC = GUICtrlCreateCheckbox("Run with console", 528, 504, 105, 17) GUICtrlSetResizing(-1, $GUI_DOCKRIGHT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Icon1 = GUICtrlCreateIcon("E:Utilitiesdefault.ico", -1, 8, 456, 32, 32) GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Input_Name = GUICtrlCreateInput("", 144, 456, 489, 21) $Input_Description = GUICtrlCreateInput("", 144, 480, 489, 21) $Input_CmdParam = GUICtrlCreateInput("", 144, 504, 377, 21) $Input_HelpFile = GUICtrlCreateInput("", 144, 528, 457, 21) $Input_Icon = GUICtrlCreateInput("", 144, 552, 457, 21) $Input_Website = GUICtrlCreateInput("", 144, 576, 489, 21) $Button_HelpBrowse = GUICtrlCreateButton("...", 608, 528, 28, 22, BitOR($BS_NOTIFY,$BS_FLAT)) GUICtrlSetResizing(-1, $GUI_DOCKRIGHT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Button_IconBrowse = GUICtrlCreateButton("...", 608, 552, 28, 22, BitOR($BS_NOTIFY,$BS_FLAT)) GUICtrlSetResizing(-1, $GUI_DOCKRIGHT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) _GUIExtender_Section_End() What I am trying now is changing the x/y/width/height after the section is closed so my gui looks right & my resizing works. Edit: that didn't work, but changing the resizing to hold the control position, extending/retracting, and then setting the resizing back to normal seems to work.
-
How would I use this on a resizable gui, or isn't that possible? Basically, I have a listview that fills most of the gui except for ~200 pixels high at the bottom. There I have some controls that I want to hide, but when the section retracts, my listview still leaves a section at the bottom where the controls would be if I would have resized the window.
-
Will you beta test my current script, please?
ChrisN replied to jaberwacky's topic in AutoIt General Help and Support
Here ya go... SciTE4AU3 Config.zip- 47 replies
-
- SciTE Customizer
- SciTE
-
(and 2 more)
Tagged with:
-
Pixelsearch with ElseIf and checking string
ChrisN replied to Andrejj's topic in AutoIt General Help and Support
ElseIf needs a test condition. Did you read the help topic for If..ElseIf...Else...Endif ? -
It was worth a try anyway! The only code I have turns off all the monitors.
-
Did you try using the GuiMenu.au3 UDF?
-
Wouldn't it be easier to press the power buttons on the monitors