richietheprogrammer 0 Posted May 23, 2011 That makes no sense. Just convert the code. You have _SendMessage() in SendMessage.au3, see helpfile.How will _SendMessage() help me? can you give an example to change, say Mozilla Firefox's picture in title? Share this post Link to post Share on other sites
AdmiralAlkex 126 Posted May 23, 2011 Ni I can't. Zedna already posted an example, use that. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Share this post Link to post Share on other sites
Maffe811 0 Posted May 23, 2011 Ah, sorry! You want to use the script to change a icon for another program ? Im to fresh in the scripting world to help with that. [font="helvetica, arial, sans-serif"]Hobby graphics artist, using gimp.Automating pc stuff, using AutoIt.Listening to music, using Grooveshark.[/font]Scripts:[spoiler]Simple ScreenshotSaves you alot of trouble when taking a screenshot!Don't remember what happened with this, but aperantly the exe is all i got.If you don't want to run it, simply don't._IsRun UDFIt figures out if the script has ben ran before based on the info in a ini file.If you don't want to use exactly what i wrote, you can use it as inspiration.[/spoiler] Share this post Link to post Share on other sites
Zedna 294 Posted May 23, 2011 (edited) Google first result:How To Change the Application Icon with Visual Basichttp://support.microsoft.com/kb/259673/en-us?fr=1SendMessage & WM_SETICONAs I said this example does exactly what you want, it's easy to convert that code to Autoit.You need just WinGetHandle() + LoadIcon and SendMessage (WM_SETICON) API functions.Search this forum for examples with these API functions. Edited May 23, 2011 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites
monoscout999 10 Posted May 24, 2011 (edited) bucause i don`t know how is a handle of an icon or how to get it i try to retrieve one using _sendmessage() with WM_GETICON as msg, but i don´t get anything... #include <SendMessage.au3> Const $WM_SETICON = 0x0080 ; http://msdn.microsoft.com/en-us/library/ms632643 Const $WM_GETICON = 0x007F ; already declared if you use WinApiEx.au3 ;P ups! Const $ICON_BIG = 1 Const $ICON_SMALL = 0 $winhndl = WinGetHandle("[CLASS:SciTEWindow]") ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $winhndl = ' & $winhndl & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console $autoiticon = _SendMessage($winhndl, $WM_GETICON, $ICON_SMALL) ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $autoiticon = ' & $autoiticon & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console sorry but still don´t get it... >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "F:\Agustin\autoit\Foro Autoit\sendicon.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams +>01:16:06 Starting AutoIt3Wrapper v.2.0.1.24 Environment(Language:0C0A Keyboard:0000040A OS:WIN_7/ CPU:X64 OS:X64) >Running AU3Check (1.54.19.0) from:C:\Program Files (x86)\AutoIt3 +>01:16:06 AU3Check ended.rc:0 >Running:(3.3.6.1):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "F:\Agustin\autoit\Foro Autoit\sendicon.au3" @@ Debug(7) : $winhndl = 0x00000000001103BA >Error code: 0 @@ Debug(9) : $autoiticon = 0 >Error code: 0 +>01:16:06 AutoIT3.exe ended.rc:0 >Exit code: 0 Time: 1.343 Also i found this but i don´t know how to implement a VB.NET native method to autoit http://msdn.microsoft.com/en-us/library/system.drawing.icon.extractassociatedicon.aspx Edited May 24, 2011 by monoscout999 Share this post Link to post Share on other sites