Sign in to follow this  
Followers 0
JellyFish666

Really Weird GUI Problem

2 posts in this topic

#1 ·  Posted (edited)

I am having problems with this script have no idea, why.

The problem is when I go to close the script, it closes but another Autoit script is running (for no reason) and I can't end it unless I go to task manager.

#include <IE.au3>
;#include <Misc.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Width = 800
$Height = 700

;_Singleton(@ScriptName , 0)

$oIE = _IECreateEmbedded()
$GUI = GUICreate("Google..." , $Width, $Height + 50)
GUISetBkColor(0x000000 , $GUI)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, $Width, $Height)
GUICtrlCreateLabel(@IPAddress1 , 0 , 700 , 100 , 20)
GUICtrlSetBkColor(-1, 0x00FF00)
$File = GUICtrlCreateMenu("File")
$Exit = GUICtrlCreateMenuItem("Exit" , $File)
$View = GUICtrlCreateMenu("View")
$Cal = GUICtrlCreateMenuItem("Calculator" , $View)
;GUICtrlCreateButton("LOL" , 0 , 700 , 100 , 50)


GUISetState(@SW_SHOW)

_IENavigate($oIE, "http://www.runescape.com/game.ws?m=0&j=1")


While 1
    $Msg = GUIGetMsg()
    If $Msg = $GUI_EVENT_CLOSE Then Exit
WEnd
Edited by JellyFish666

Share this post


Link to post
Share on other sites



I am having problems with this script have no idea, why.

The problem is when I go to close the script, it closes but another Autoit script is running (for no reason) and I can't end it unless I go to task manager.

That has nothing to do with the code you posted, and AutoIt scripts don't run "for no reason". Check out the process with _ProcessListProperties() or some other tools and find out what launched it.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
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
Sign in to follow this  
Followers 0