[Recycle bin] SKAN's Tips and Tricks
I can be very slow :oops: but I am looking forward a great deal to trying some of these and hope to make use of them. Thank You for your generous contributions!
Bob
You've probably missed them and only seen the last page since the topic name keeps changing...WOW Goyyah! I'm one of the ones guilty :oops: of not often visiting the other forum so I am just now seeing these, or have missed them somehow anyway, until now.
@Goyyah: I guess you decided against cleaning up this mess?
You continue to amaze me with your Tips and Tricks. I like how in your little snippet editor you used at least 3 of your tricks. Really shows how powerful and useful they can be. Keep up the good work! I am eagerly waiting for the next installment!
"Power can be given overnight, but responsibility must be taught. Long years go into its making."
WOW Goyyah! I'm one of the ones guilty :oops: of not often visiting the other forum so I am just now seeing these, or have missed them somehow anyway, until now. I have noted many excellent and useful posts from you here already though.
I understand.. For some time this topic was under forum section: Utilities & Resources and Mr.Chris decided to move it here so that this topic will receive due attention.
I can be very slow :oops: but I am looking forward a great deal to trying some of these and hope to make use of them. Thank you for your generous contributions!
Thanks for the kind words! I was feeling low for sometime.
Regards,
Goyyah: I guess you decided against cleaning up this mess?
Dear corrupt,
I am myself a mess - I guess !. The nick Goyyah will die soon. Just a two or three more posts before that. Please bear with me till then.
Absolutely Amazing Goyyah!
You continue to amaze me with your Tips and Tricks. I like how in your little snippet editor you used at least 3 of your tricks. Really shows how powerful and useful they can be. Keep up the good work! I am eagerly waiting for the next installment!
Dear Veovis,
Thanks for this ... and many thanks for consistently encouraging me.
Also i would never be able to find some of those post message or things you've found, for refreshing things or making a GUI drag itself. So you help me be lazy! Thanks Goyyah!
(I also like how you have you tricks and tips as your signature! Its pretty useful as some times i will be reading a different topic and then see your sig)
"Power can be given overnight, but responsibility must be taught. Long years go into its making."
@Goyyah: Please don't misunderstand. I don't want to see you go. I appreciate the useful tips and tricks that you post. The only reason I asked is because I am interested in contributing to the discussions...Goyyah: I guess you decided against cleaning up this mess?
Dear corrupt,
I am myself a mess - I guess !. The nick Goyyah will die soon. Just a two or three more posts before that. Please bear with me till then.
@Goyyah: Please don't misunderstand. I don't want to see you go. I appreciate the useful tips and tricks that you post. The only reason I asked is because I am interested in contributing to the discussions...
No! Not at all..
You are a nice Friend
I do not remember why I posted that way! Maybe I was feeling dejected that day.
It is just that I want to slow down, and be very selective.
I have already opened an another nick.
Regards,
[*:715hajh8]How to set a GUI to be " Always @ Bottom " ? posted 28-Mar-2006 updated 30-Jun-2006.Regards,
[*:28jxycse]How to Animate a GUI Window ? posted 23-Jun-2006 updated 4-Jul-2006.
Constants for AnimateWindow function:
ROLL_LEFT_TO_RIGHT = 0x20001 ROLL_RIGHT_TO_LEFT = 0x20002 ROLL_TOP_TO_BOTTOM = 0x20004 ROLL_BOTTOM_TO_TOP = 0x20008 ROLL_DIAG_TL_TO_BR = 0x20005 ROLL_DIAG_TR_TO_BL = 0x20006 ROLL_DIAG_BL_TO_TR = 0x20009 ROLL_DIAG_BR_TO_TL = 0x2000a SLIDE_LEFT_TO_RIGHT= 0x40001 SLIDE_RIGHT_TO_LEFT= 0x40002 SLIDE_TOP_TO_BOTTOM= 0x40004 SLIDE_BOTTOM_TO_TOP= 0x40008 SLIDE_DIAG_TL_TO_BR= 0x40005 SLIDE_DIAG_TR_TO_BL= 0x40006 SLIDE_DIAG_BL_TO_TR= 0x40009 SLIDE_DIAG_BR_TO_TL= 0x40010 ZOOM_IN = 0x16 ZOOM_OUT = 0x10010 FADE_IN = 0xa0000 FADE_OUT = 0x90000
Regards,
BMP to JPEG Conversion - Using third party DLL!
http://www.autohotke...p?p=68587#68587/* Author: Ben Hackl Posted: http://www.vbaccelerator.com/home/Resources/Babbage/JPG_DLL_for_VB/JPGWrite.asp Download Information: Source: http://www.vbaccelerator.com/home/Resources/Babbage/JPG_DLL_for_VB/JPGWrite.zip Backup: https://ahknet.autohotkey.com/~goyyah/3PDLL/Image/JPGWrite/JPGWrite.zip Only DLL : https://ahknet.autohotkey.com/~goyyah/3PDLL/Image/JPGWrite/dilib.dll AHK File : https://ahknet.autohotkey.com/~goyyah/3PDLL/Image/JPGWrite/BMP2JPEG.ahk */ ; ** Converting from BMP to JPEG with a Third-party DLL file: DILib.dll ** IfNotExist, dilib.dll { MsgBox,48, DILib.dll (BMP to JPEG), DILIB.DLL Not Found! ,3 Exit } Source := "C:\Image.bmp" ; Replace with the fullpath to Source Bitmap Image File! Target := "C:\Image.jpg" ; Modify to suit needs. Quality := 90 ; (1-100) Quality in percentage, Less Quality=Less Output Size Progress := 0 ; Progressive? 0=False, 1=True Result:=DllCall("DILib.dll\_DIWriteJpg@16", Str,Target , Str,Source, Int,Quality, Int,Progress)+1 Msg:="Conversion Successful|An Error Occured|Error Reading Source|Error Writing Target|" StringSplit, Message, Msg, | MsgBox,64, DILib.dll (BMP to JPEG), % Message%Result% ,3 Return
Remarks:
[*:2l2doqvz]Disclaimer: Not tested/experimented enough! .
[*:2l2doqvz]Very fast! dilib.dll was written in VC++ 5.0.
[*:2l2doqvz]dilib.dll is sized at 115 Kb .. Thats not huge! Still, I will post if I find something smaller!
Regards,
How to Hide / Show Taskbar buttons ?
http://www.autohotke...p?p=68698#68698
GetTaskmanWindow is an undocumented function available in User32.dll and calling it with
DllCall() returns the handle to the window which contains the
Taskbar buttons ( ahk_class MSTaskSwWClass ).
Interestingly, WinShow command is capable of unhiding windows irrespective of DetectHiddenWindows setting!
To Hide ALL Taskbar buttons:WinHide, % "ahk_id " DllCall("GetTaskmanWindow")
To UNDO it:WinShow, % "ahk_id " DllCall("GetTaskmanWindow")
Remarks:
[*:39e6wks1]Important note:
WinGetClass, TBClass, % "ahk_id " DllCall("GetTaskmanWindow"),
TBClass reveals MSTaskSwWClass. But,
WinHide, ahk_class MSTaskSwWClass does not work! :shock:
Neither does hWnd:=WinExist(ahk_class MSTaskSwWClass)! :shock: :shock:
[*:39e6wks1]I just discovered GetTaskmanWindow and wanted to document it. We have a way to
find a handle now and more serious experiments can be done with MSTaskSwWClass window!
[*:39e6wks1]It would be nice if this was included in AHK Documentation!AHK Documentation for WinHide
Remarks
Use WinShow to unhide a hidden window (DetectHiddenWindows can be either On or Off to do this).
This command operates only upon the topmost matching window except when WinTitle is ahk_group GroupName, in which case all windows in the group are affected.
The Explorer taskbar may be hidden/shown as follows:
WinHide ahk_class Shell_TrayWnd
WinShow ahk_class Shell_TrayWnd
All taskbar buttons can be hidden/shown as follows:
WinHide, % "ahk_id " DllCall("GetTaskmanWindow")
WinShow, % "ahk_id " DllCall("GetTaskmanWindow")
Regards,
I just realized I was using two of your functions in one line
Gui, Add, Pic, vpic x0 y0 w100 h100, % CreateBMPGradient("Bg.bmp",ColorPicker(),ColorPicker(),1)
so I figured it was about time to say thank you.
Thank you.
Roland.
Gui, Add, Pic, vpic x0 y0 w100 h100, % CreateBMPGradient("Bg.bmp",ColorPicker(),ColorPicker(),1)
That was a very creative combination!
ColorPicker() and CreateBMPGradient().
Thanks! .. I had never thought that way!.
Regards,
[*:rgp7mxk1]How to enable Drag for a GUI without a Titlebar ? posted 28-Mar-2006 updated 30-Jul-2006.
Regards,Added example: How to simulate the activated/deactivated status for a simulated Titlebar?