Jump to content

Help with my Gui


Marcdk
 Share

Recommended Posts

for pictures, files and etc, I always use FileInstall()... see help

$My_pic = @TempDir & "\XPClean.jpg"
FileInstall("C:\Program Files\AutoIt3\Examples\AutoIt-123\Images\XPClean.jpg", $My_pic)

8)

Doesns't work for me :mellow: I have to following source:

#include <ButtonConstants.au3>

#include <ComboConstants.au3>

#include <EditConstants.au3>

#include <GUIConstantsEx.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

#include "resources.au3"

$My_pic = @TempDir & "\Grafik.jpg"

FileInstall("C:\Users\Marc\Desktop\Ny_mappe\Grafik.jpg", $My_pic)

$realm = IniRead("config.ini", "Gametool", "realm", "0")

$account = IniRead("config.ini", "Gametool", "account", "0")

$link1 = IniRead("config.ini", "Gametool", "link1", "0")

$link2 = IniRead("config.ini", "Gametool", "link2", "0")

$browser = IniRead("config.ini", "Gametool", "browser", "0")

$broswerexe = IniRead("config.ini", "Gametool", "browserexe", "0")

$hotkey = IniRead("config.ini", "Gametool", "hotkey", "0")

$Form1 = GUICreate("Marcdk's Profile Viewer", 377, 185, 193, 125)

$Label1 = GUICtrlCreateLabel("Insert the username into the first textfield, and select your realm in the second one ", 5, 40, 360, 19)

GUICtrlSetFont(-1, 7, 400, 0, "Comic Sans MS")

$edit_field2 = GUICtrlCreateInput($account, 10, 70, 200, 21)

$edit_field1 = GUICtrlCreateInput($realm, 10, 100, 200, 21)

$Lookup = GUICtrlCreateButton("Check player profile", 237, 75, 115, 33, 0)

$Pic1 = GUICtrlCreatePic("C:\Users\Marc\Desktop\Ny_Mappe\Grafik.jpg", 0, 0, 377, 193, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))

GUISetState(@SW_SHOW)

While 1

$msg= GUIGetMsg()

Switch $msg

Case $GUI_EVENT_CLOSE

Exit

Case $Lookup

$input1 = GUICtrlRead($edit_field1)

$input2 = GUICtrlRead($edit_field2)

website()

;If _IsPressed($hotkey) Then

;WinMinimizeALL()

;WinActivate("Profile Tool")

;EndIf

EndSwitch

WEnd

Func website()

Run($browser)

Sleep(1200)

Send("{F6}")

Send("{BACKSPACE}")

Send("{END}")

Send($link1)

Send($input1)

Send($link2)

Send($input2)

Send("{ENTER}")

EndFunc

////////////////////////////////////////////////////////

In the same folder as i have this script i have the following files:

Grafik.jpg

Resources.au3

When i compile it, everything seems right, but when i remove the: Grafik.jpg from the folder and opens the exe, the picture isn't "installed" into the bot..

Link to comment
Share on other sites

Glad you got it... This can seem a little frustrating at times... ( it was to me (( an still is )))... but that's why we are here in the forums to help

Welcome to the Autoit forums

8)

Hehe, yeah, was a little tricky, thanks again for the help :mellow:

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...