KaFu Posted January 15, 2009 Share Posted January 15, 2009 An even smaller example I searched for to use in SMF .... $filename = 'test.ini' ShellExecute(@SystemDir & '\RUNDLL32.EXE','shell32.dll,OpenAs_RunDLL ' & $filename) Best Regards OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
trancexx Posted January 15, 2009 Share Posted January 15, 2009 Nice. Though, I have trouble understanding why would you use RUNDLL32.EXE to call that function from shell32.dll. Autoit is DllCall() capable -to say it that way. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Larnil Posted January 15, 2009 Share Posted January 15, 2009 I like it's simplicity Link to comment Share on other sites More sharing options...
KaFu Posted January 15, 2009 Author Share Posted January 15, 2009 Autoit is DllCall() capable -to say it that way.True, didn't thought about that , it was just an msdn example using shellexecute i adjusted to use with au... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
yehia Posted January 15, 2009 Share Posted January 15, 2009 still nice though My Scripts:IE New UDFsElastic images moving under mouse (with a happy valentine's example)_FileRemoveLine Link to comment Share on other sites More sharing options...
RomanK Posted January 26, 2009 Share Posted January 26, 2009 Great! I love how simple this is. It might really be useful in future! [font="Courier New"]http://RomanK.hondadesigns.com[/font] Link to comment Share on other sites More sharing options...
rajeshontheweb Posted March 11, 2009 Share Posted March 11, 2009 (edited) ; v1.1 <Mar 11, 2009> Added File Name Selection ; v1.0 <Jan 15, 2009> Original Shell Execute code from KaFu $FileName = FileOpenDialog("Open file", "", "Any file (*.*)") If $FileName = "" Then Msgbox(4096,"Error","Invalid Selection") Exit EndIf ShellExecute(@SystemDir & '\RUNDLL32.EXE','shell32.dll,OpenAs_RunDLL ' & $Filename) just a small mod to select a file :-) i used to select the file using Shift and then use the open with command which is made available by windows xp . but i would love this usage. (i had only once tried such thing loonnng ago but the trouble was i didnt wanna remember this stuff every time. autoit is the best way do it isntit Edited March 11, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
JRSmile Posted March 11, 2009 Share Posted March 11, 2009 here the dllcall version: $filename = @ScriptFullPath DllCall("shell32.dll","hwnd","OpenAs_RunDLL","hwnd",0,"str","c:\","str",$filename, "int", 0) $a=StringSplit("547275737420796F757220546563686E6F6C75737421","") For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4) Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI" Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile; MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-) Link to comment Share on other sites More sharing options...
rajeshontheweb Posted March 11, 2009 Share Posted March 11, 2009 amateurish doubt, silly it might be but what is that "C:\" there? Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
JRSmile Posted March 11, 2009 Share Posted March 11, 2009 (edited) no idea, copied it from here : #395343 Edited March 11, 2009 by JRSmile $a=StringSplit("547275737420796F757220546563686E6F6C75737421","") For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4) Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI" Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile; MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now