Jump to content

Help for TaskDialog


Jej7
 Share

Recommended Posts

Translation in English :

Hello, me would like to know how to use the dll comctl32.dll of vista to show a taskDialog?

Here is what looks like TaskDialog:

Posted Image

I think that it is necessary to use the dll comctl32.dll but I do not know how to make.

Thank you for your help.

Français :

Bonjour, je voudrait savoir comment utiliser la dll comctl32.dll de vista pour afficher une taskDialog?

Voilà à quoi ressemble une TaskDialog :

Posted Image

Je pense qu'il faut utiliser la dll comctl32.dll mais je ne sais pas comment faire.

Merci pour votre aide.

Link to comment
Share on other sites

Just a quick demo, I'm sure you can figure the rest out for yourself!

$struct=DllStructCreate("wchar string[255]")
DllStructSetData($struct,"string","Hello")
$struct2=DllStructCreate("wchar string[255]")
DllStructSetData($struct2,"string","This is a sample TaskDialog")
DllCall("comctl32.dll","int","TaskDialog","hwnd",Chr(0),"int",Chr(0),"ptr",DllStructGetPtr($struct),"ptr",DllStructGetPtr($struct2),"ptr",Chr(0),"int",0,"ptr",Chr(0),"ptr*",Chr(0))

;)

Broken link? PM me and I'll send you the file!

Link to comment
Share on other sites

Thank you very much !

Thanks to the code of monoceres I managed to personalize TaskDialog.

$struct=DllStructCreate("wchar string[255]")
DllStructSetData($struct,"string","Hello")
$struct2=DllStructCreate("wchar string[255]")
DllStructSetData($struct2,"string","This is a sample TaskDialog")
$struct3=DllStructCreate("wchar string[255]")
DllStructSetData($struct3,"string","The Text  !!!!")
DllCall("comctl32.dll","int","TaskDialog","hwnd",Chr(0),"int",Chr(0),"ptr",DllStructGetPtr($struct),"ptr",DllStructGetPtr($struct2),"ptr",DllStructGetPtr($struct3),"int",32,"ptr",Chr(0),"ptr*",Chr(0))

But I would like to develop her(it) more for which look like GUI :

Posted Image

The resemblance is striking! ;)

The functions are on this page but I do not think which are in the dll : http://msdn.microsoft.com/en-us/library/bb787473(VS.85).aspx

If it is not possible I can try to create my equivalent function.

Link to comment
Share on other sites

Just a quick demo, I'm sure you can figure the rest out for yourself!

$struct=DllStructCreate("wchar string[255]")
DllStructSetData($struct,"string","Hello")
$struct2=DllStructCreate("wchar string[255]")
DllStructSetData($struct2,"string","This is a sample TaskDialog")
DllCall("comctl32.dll","int","TaskDialog","hwnd",Chr(0),"int",Chr(0),"ptr",DllStructGetPtr($struct),"ptr",DllStructGetPtr($struct2),"ptr",Chr(0),"int",0,"ptr",Chr(0),"ptr*",Chr(0))

;)

Alright smart-arse :D
Link to comment
Share on other sites

Alright smart-arse ;)

Well I just had to try it when you said it was hard :D

The functions are on this page but I do not think which are in the dll : http://msdn.microsoft.com/en-us/library/bb787473(VS.85).aspx

If it is not possible I can try to create my equivalent function.

That is not a function, it's a struct that you're supposed to fill your data into and pass to the TaskDialogFunction().

Since this look like UDF material I look into it and post an example later!

;)

Broken link? PM me and I'll send you the file!

Link to comment
Share on other sites

ok thank's !

I succeeded has to create one HUI and finally I continued with this method. I made a version alpha of my future program, I shall put him on-line in a future version.

Thank you for your help, that can always be of use to all the world. ;)

Link to comment
Share on other sites

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...