
Dolemite50
Active Members-
Posts
156 -
Joined
-
Last visited
Everything posted by Dolemite50
-
Sweet! Thanks for posting your stuff here, BugFix. You have some great scripts but most of the versions I have are Google translated to English from the German forum (and probably a little off). I think this one came out as "Ach-Tung, Shorty!"
-
Arrgh! I've been locking horns with that bloody RAM leak for over a year now. This thread may or may not help the cause, good luck gents!
-
Nicely done, Yashied! I really appreciate the good examples.
-
As far as first UDF's go, you really came out swinging. Nicely documented, clean code, functional script. You're definitely heading down the right track man, keep it up!
-
Hi Jennico, Nice application, it looks like it did it's job on my mp3 folder. Now I have to decide whether to keep my original Beatles catalogue since I have the remasters. (they're awesome btw) One thing I found a little counter-intuitive was that after I browsed for a folder it appeared so I clicked "Scan",.. and within two seconds it said "Nope! No dupes here!" My initial response was "Hot damn! Jennico has done it again! That was lightning fast!!!" ...then I realized that after selecting a folder you also have to check the box next to it. No problem-o, but it begs the question: "Why the hell would I browse for it if I'm not going to scan it?" hehe I'd say you're right about using it for a media search because it worked beautifully in my mp3 folder but slow as mollasses in my code folder. All and all I'd say it's a great app, thanks for sharing. If you ever need a few ideas for more bells and whistles check out Duplicate File Detective. I'm finding it hard to concentrate on code with that avatar of yours on my screen... I swear it's looking right at me... Gotta get it off of my mind... thinking about baseball.. thinking about baseball.. thinking about baseball.. ... OK, there we go. 100% cured. Thanks again, Jennital. Arrrgh!
-
ScitTE - Add a space after autocompleting?
Dolemite50 replied to Dolemite50's topic in AutoIt General Help and Support
Thanks guys! I know it sounds minor but I use a funky mouse/keyboard combo for what I am trying to do. Hi Xeno, I'm not sure that I follow you. Let me try to explain. ///////////////////////////////////// I type the letter "G".. The popup appears with "Global" highlighted so I click "ENTER" The word "Global" appears with no space after it so I have to hit SPACE before continuing ///////////////////////////////////// Are you saying that I should create an abbreviation for the letter "G" that triggers the word "global"? Thanks Manadar, I appreciate the tip but as I said in the first post, I'm not referring to abbreviations. -
Whoa, these are my results: Zoicks! What a huge difference! What does the default "using user's local" option actually do? Am I safe to stick with the faster non-case sens option? (2) What situations might call for the default search? (0)
-
Very nice, picea! That's looking really good. I thought I'd attempt one myself but that plan fizzled when I saw your code. Man, that GDIPlus stuff is intimidating at first. Up until now I've done a fine job of avoiding it but after seeing your tab I guess its time for me to go lock horns with: GDIPlus_GraphicsCreateFigureArcFillBrushLinePathSetGabbaGabba($tab) Cover me, I'm going in!
-
Ahh, thanks for the explanation. I was trying "All Files" to preview images. Do you happen to know how to get the Image Preview dialog? BTW, this would be great with a facelift. I've yet to find a "File..." dialog written it AutoIt, although there have been some great examples of customizing the Win dialogs. I'm hoping somebody proves me wrong.
-
It definitely looks 80's but might come in handy. Was I supposed to get an actual preview of the file? (I only got a preview of the list of files) Thanks!
-
Hi, If I want to use a bg image for an icon button's hover state and hide it on rollout,.. how do I detect the rollover when the button is disabled/hidden?
-
Wow, thanks for implementing the suggestions! Keep on tearing it up!
-
NotePad++ with AutoIt User CallTips ...
Dolemite50 replied to jaberwacky's topic in AutoIt Example Scripts
Nicely done! I use an "Open WIth NP++" command all the time so it's handy to have a few extra gizmos like this. Did you get Au3 cTags working? btw, you don't happen to know how to choose which toolbar commands are available do you? I can change the icons, not the commands. Thanks mang, this worked great! -
change background in GUI using transition effect ??
Dolemite50 replied to piterek's topic in AutoIt General Help and Support
That's what I meant by this: -
change background in GUI using transition effect ??
Dolemite50 replied to piterek's topic in AutoIt General Help and Support
Do you have the gui with controls set to transparent so that all you would see without the bg is floating controls? It's hard to tell without any code but here are a few random suggestions: Use two bg guis behind yur control guiSet gui w/ controls to top right after setting bg to top for transition (or during)Use Flash if it's handy. -
"Added #1270: GuiSetIcon() now finds suitable large and small icons." Can somebody please elaborate on that?
-
I will view the application later on.
-
Get er' done! I finally have dual monitors but now I'm on Win7 so I missed all the fun. (cheesy rhyme unintentional)
-
Line operations with RegExp
Dolemite50 replied to Dolemite50's topic in AutoIt General Help and Support
Thanks alot guys, all solutions should work fine. My question was slightly hypothetical because I was also trying to clear up some newline/RegExp confusion. Geo's code is enlightening but I still have a few questions if anyone has a sec. (?m:^) (?m) - ^ and $ match newlines within data. Is (?m) used as a trigger to enable ^ and $ matching on lines? Would $ not match an EOL without it? I'm lost on the ":^" -part. The closest I could find in my ref books was (?:...) = Passive Group. I'm thinking that it ties in with the $1 backref somehow, is that right? Does $1 mean "Use the first (group), but ignore it if it is passive?" (.+\v+|$) My best guess is "Match any char one or more times until one or more vertical spaces or end of the line" Head... hurting... must.. abort... -
Hi, I am using MrCreator's GUICtrlSetOnHover and Yashied's Icons.au3 to create tri-state buttons. All works well for me in a standard "show this pic until hovered and then show this pic..." -setup. Now what I'm trying to create is a tri-state icon button. The icon images will be static and only the bgs will swap so I thought I could use "same setup as before + icon over it" ..but I ran into a snag. Similar to a toolbar, some buttons have no "up state" image. You will only see the icon until being moused over then the bg image also appears to indicate that it is active. I couldn't figure out how to trigger a hover event for the button with no visible or enabled item to hover? .. while on the subject,.. does anybody happen to know if it would be more demanding on an application to use a png for the button's icon rather than an ico? Thanks! Yashied's original code: #Include <GUICtrlSetOnHover.au3> #Include <GUIConstantsEx.au3> #Include <GDIPlus.au3> Opt('MustDeclareVars', 1) Global $hForm, $Pic1, $hPic1, $Pic2, $hPic2, $nMsg _GDIPlus_Startup() $hForm = GUICreate('Form1', 625, 467, 192, 124) $Pic1 = GUICtrlCreatePic(@ScriptDir & '\options_logo.jpg', 0, 0, 196, 466) $hPic1 = GUICtrlGetHandle($Pic1) GUICtrlSetState(-1, $GUI_DISABLE) $Pic2 = GUICtrlCreatePic('', 32, 112, 162, 59) $hPic2 = GUICtrlGetHandle($Pic2) _SetImageHover($Pic2, @ScriptDir & '\performance.png') GUICtrlSetOnHover($Pic2, 'HoverPic', 'LeaveHoverPic') GUISetState() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func HoverPic($CtrlID) Select Case $CtrlID = $Pic2 _WinAPI_InvalidateRect($hPic1, _ControlGetRect($hPic2)) _SetImageHover($Pic2, @ScriptDir & '\performance_over.png') _WinAPI_InvalidateRect($hPic2) EndSelect EndFunc ;==>HoverPic Func LeaveHoverPic($CtrlID) Select Case $CtrlID = $Pic2 _WinAPI_InvalidateRect($hPic1, _ControlGetRect($hPic2)) _SetImageHover($Pic2, @ScriptDir & '\performance.png') _WinAPI_InvalidateRect($hPic2) EndSelect EndFunc ;==>LeaveHoverPic Func _ControlGetRect($hWnd) Local $Pos = ControlGetPos($hWnd, '', '') Local $tRect = DllStructCreate('int;int;int;int') DllStructSetData($tRect, 1, $Pos[0]) DllStructSetData($tRect, 2, $Pos[1]) DllStructSetData($tRect, 3, $Pos[0] + $Pos[2]) DllStructSetData($tRect, 4, $Pos[1] + $Pos[3]) Return $tRect EndFunc ;==>_ControlGetRect Func _SetImageHover($ControlID, $sImage) Local $hWnd = GUICtrlGetHandle($ControlID) Local $hImage, $hBitmap ; _GDIPlus_Startup() $hImage = _GDIPlus_BitmapCreateFromFile($sImage) $hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) _GDIPlus_ImageDispose($hImage) ; _GDIPlus_Shutdown() _WinAPI_DeleteObject(_SendMessage($hWnd, 0x0173)) _SendMessage($hWnd, 0x0172, 0, $hBitmap) $hImage = _SendMessage($hWnd, 0x0173) If $hImage <> $hBitmap Then _WinAPI_DeleteObject($hBitmap) EndIf EndFunc ;==>_SetImageHover
-
Hi, The other day I needed to add "ITEM: " to the beginning of each line in a file, which I did by reading the file to an array, adding "ITEM: " to each in iteration, and then overwriting the file with new array. I thought it might be faster to try the same with RegExpReplace on the whole file at once but I couldn't seem to get the syntax right for putting something at the start of each line. I tried every variation of the following that I could think of: \A - Match only at beginning of string. \n - Match a linefeed (@LF, chr(10)). \r - Match a carriage return (@CR, chr(13)). \v - any vertical whitespace character. ^ - beginning of string. (?m) - ^ and $ match newlines within data. Any help?
-
Nice, wraithdu. That highlighting is smooooth. The only beef I had was that it didn't provide classes in realtime but that shouldn't be too hard for me to tweak. I liked the blue, those red highlights make me think error.
-
Nicely done, Mat! You've been a kicking out some good stuff.
-
Ahhh, I think I see what the problem was. The array isn't listed in order and when I parsed a multi line string into words it showed the first word at the top but the rest of the first sentence's words were listed much later. When I didn't see the second and third words showing up after the first I assumed the pattern must have missed them but as it turns out those unruly first-sentence scamps were hiding out near the bottom of the list out of scroll range. It's a great start, keep at it. There's plenty of room for things like replace functionality, stored patterns, etc. There is an app called RegExp Quick Tester somewhere around here that might give you a few ideas. I think that Quick Tester's functionality combined with your app's "pseudo approach" would be my ideal util.