Jump to content

Really Weird GUI Problem


Recommended Posts

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
Link to comment
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
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...