Jump to content

How i change the tile of a Window?


Harmonful
 Share

Recommended Posts

Wow, check your syntax. Look more into your code before posting. We don't write everything for you.

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Link to comment
Share on other sites

it send this error:

C:\Documents and Settings\Max\Mis documentos\pedo.au3 (7) : ==> Unterminated string.: 
WinSetTitle ( "Tibia, "Tibia", "Tibia Bot" ) 

>Exit code: 1    Time: 0.890

Some example? thx

I think you yourself answered your question.
Link to comment
Share on other sites

I'll be on your side Ryona. :D jump on my bike, let's ride this baby!

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>


Global $hGUI = GUICreate('Test', 450, 200, -1, -1, $WS_OVERLAPPEDWINDOW)
Global $hButton = GUICtrlCreateButton("Change window title", 80, 100, 140, 30)

GUISetState()


While 1

    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
        Case $hButton
            WinSetTile($hGUI, 0, _RandomCountryOrWhatever())
    EndSwitch

WEnd




Func _RandomCountryOrWhatever()

    While 1
        $sString = _WinAPI_LoadString(_WinAPI_GetModuleHandle("kernel32.dll"), Random(0, 350))
        If $sString Then Return StringRegExpReplace($sString, ".*?\$", "")
    WEnd

EndFunc   ;==>_RandomCountryOrWhatever



Func WinSetTile($sTile, $sText, $sNewTitle)

    Local $sTitle = $sTile
    Return WinSetTitle($sTitle, $sText, $sNewTitle)

EndFunc   ;==>WinSetTile
Edited by trancexx

♡♡♡

.

eMyvnE

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