Jump to content

ChrisN

Active Members
  • Posts

    69
  • Joined

  • Last visited

About ChrisN

  • Birthday 05/26/1994

Profile Information

  • Interests
    Making computers do what I want them to do :-)

Recent Profile Visitors

260 profile views

ChrisN's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. @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)
  2. :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)
  3. 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.
  4. This annoys me. How can I turn this "feature" off? Edit: actually they ar au3check errors. But they still annoy me.
  5. Awesome! Thanks @JFX It works!
  6. Sorry, it doesn't work. I get error 3 for both DllCall()'s
  7. 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?
  8. WOW!! I can hardly belive it's made in AutoIt!
  9. Found another thread describing the same problem.
  10. 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
  11. GUICtrlSetGraphic works only on Graphic controls, not Icon controls
  12. Yashied's Icons.au3 UDF works fine. Is this an AutoIt bug? (AutoIt 3.3.8.0)
  13. 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
×
×
  • Create New...