ileandros Posted April 8, 2012 Posted April 8, 2012 (edited) Hello, I want to create a image viewer, Is it possible?? I was checking google and autoit for some help but i didnt find something... This some kind of code to help me. #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Image Viewer", 615, 438, 192, 124) $Group1 = GUICtrlCreateGroup("Image Viewer", 8, 8, 601, 385) GUICtrlCreateGroup("", -99, -99, 1, 1) $Button1 = GUICtrlCreateButton("Browser...", 328, 400, 75, 25) $Input1 = GUICtrlCreateInput("", 8, 400, 265, 21) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $file = FileOpenDialog("Choose file...", @TempDir, "All (*.*)") GUICtrlSetData($Input1, $file) EndSwitch WEnd Edited April 8, 2012 by ileandros I feel nothing.It feels great.
DCCD Posted April 8, 2012 Posted April 8, 2012 Hi there, take a look creates a picture control for the GUI., I hope this help. [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group
PhoenixXL Posted April 8, 2012 Posted April 8, 2012 Try This!! #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Image Viewer", 615, 438, 192, 124) $Group1 = GUICtrlCreateGroup("Image Viewer", 8, 8, 601, 385) GUICtrlCreateGroup("", -99, -99, 1, 1) $Button1 = GUICtrlCreateButton("Browser...", 328, 400, 75, 25) $Input1 = GUICtrlCreateInput("", 8, 400, 265, 21) $Image=GUICtrlCreatePic('',9,9,600,384) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $file = FileOpenDialog("Choose file...", @TempDir, "All (*.*)") GUICtrlSetData($Input1, $file) _setImage($Image,$file) EndSwitch WEnd Func _setImage($Control,$Image) If GUICtrlSetImage($Control,$Image)=0 Then Return @error Return 0 EndFunc My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.
AutoBert Posted April 8, 2012 Posted April 8, 2012 (edited) If you need some ideas have a look in the source of: [beispiel] BMP-, GIF-, PNG- & JPG-Viewer (Stand: 10.02.2012). To run this example you need the GUICtrlPic.au3 (@Großvater autoit.de) also.greetings from germanyautobert Edited April 8, 2012 by AutoBert
ileandros Posted April 9, 2012 Author Posted April 9, 2012 Thanks guys. Gj PhoenixXl I feel nothing.It feels great.
armoros Posted April 9, 2012 Posted April 9, 2012 Thanks guys. Gj PhoenixXl thats niceΕλληνας Εισαι φιλΕ...?just asking [font="verdana, geneva, sans-serif"] [/font]
ileandros Posted April 9, 2012 Author Posted April 9, 2012 thats niceΕλληνας Εισαι φιλΕ...?just askingKai nai kai oxi I feel nothing.It feels great.
PhoenixXL Posted April 23, 2012 Posted April 23, 2012 Ελληνας Εισαι φιλΕ...?Wat iz This I dont Understand My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.
KaFu Posted April 23, 2012 Posted April 23, 2012 It's greek and google translates it to "Net ... Are you Greek" ... luckily all members from Greece are obliged by policy to add a "ros" suffix to their username ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
PhoenixXL Posted April 23, 2012 Posted April 23, 2012 Ok!! Thnx KaFu For the Reply My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.
ileandros Posted April 23, 2012 Author Posted April 23, 2012 Phoenix the quote ur asking for translation was for me Anyway thats greek and means "Are you greek buddy?" I feel nothing.It feels great.
PhoenixXL Posted April 23, 2012 Posted April 23, 2012 Well That means U R Greek Anyways Thnx My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.
armoros Posted April 23, 2012 Posted April 23, 2012 It's greek and google translates it to "Net ... Are you Greek" ... luckily all members from Greece are obliged by policy to add a "ros" suffix to their username ...Yes "os" or "as" [font="verdana, geneva, sans-serif"] [/font]
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