Jump to content

Recommended Posts

  • Developers
Posted

someone has to know if its possible???

<{POST_SNAPBACK}>

Ofcourse you can...

GUICreate("click the Icon", 200, 200)
$H_INP_ICON_ICO = GUICtrlCreateIcon("C:\Program Files\AutoIt3\Icons\filetype1.ico", -1, 100, 50)
GUISetState(@SW_SHOW)
; Process GUI Input
;-------------------------------------------------------------------------------------------
While 1
   $RC = GUIGetMsg()
   If $RC = -3 Then Exit
   If $RC = $H_INP_ICON_ICO Then 
      RunWait(@ComSpec & ' /C explorer.exe http://www.autoitscript.com/', '', @SW_HIDE)
   EndIf
Wend

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

Helpfile:

#include "GUIConstants.au3"

GUICreate("My GUI")  ; will create a dialog box that when displayed is centered

GUICtrlCreateButton ("my picture button", 10,20,40,40, $BS_ICON)

GuiCtrlSetImage (-1, "shell32.dll",22)

               

GUISetState ()

; Run the GUI until the dialog is closed

While 1

    $msg = GUIGetMsg()

   

    If $msg = $GUI_EVENT_CLOSE Then ExitLoop

Wend

button with bitmap

edit...JdeB beat me to it. slightly diferent though

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

  • Developers
Posted

I dont get it, i want a .bmp image to function as a link, but it has to be larger than an icon, lets say "340,70"

<{POST_SNAPBACK}>

Ok ... so whats the question you have ?

isn't it just a case of :

replace GUICtrlCreateIcon() with GUICtrlCreatePic ( ) ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

yeah maybe, but im not that good, would you plz give me an example of how to do it?

i would like to use an jpg ore bmp image file, i preferre jpg, to show in a GUI window, but bigger than an icon, and it has to link to a specific homepage if you click on it...

Hope you understand what im would like to do..

thx for your help

  • Developers
Posted (edited)

As larry said:

- take the example.

- take a line at the time and look in the helpfile what it does and try to understand.

- modify the example and play/learn....

It a lot more gratifying understanding and doing it yourself......

Happy RTFMing :)

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
  • Recently Browsing   0 members

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