taultunleashed logoMsgBox : VGExtreme General Discussion
newtopic  postreply
 [ 6 posts ] 
blue large dot

MsgBox : VGExtreme General Discussion

Posted: March 29th, 2007, 7:35 am
 
binafus

Total Posts: 154
Joined: November 3rd, 2006, 4:27 pm
binafus's Reps: 0
User avatar
Active User > 50 Posts
Anyone know how to make a simple MsgBox stay on top of the Vanguard window?

If you add something like

(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
Dim MyVar
MyVar = MsgBox ("Hello World!", 65, "MsgBox Example")


It will default back to Exhume every time you call it.


Reply with quote
Posted: March 29th, 2007, 8:15 am
 
xaraph
xaraph's Reps:
User avatar
I'm pretty sure you would have to inject the code directly into Vanguards process. Use the hook.injectlibrary Exhume function. There's probably an easier way, but none is coming to mind.


Reply with quote
Posted: March 29th, 2007, 10:13 am
 
wyvernx

Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
User avatar
administrator
premium
There is another way.. if you are using VGE.

Grab the demo scripts. (for XUM). One of those is a message box type of window you can create. Think making your own custom window using XUM that looks like a message box. Then you can add a simple FocusWindow call to it and it will show up on top.

_________________
Use Search first, ask questions later!


Reply with quote
Posted: March 29th, 2007, 7:10 pm
 
binafus

Total Posts: 154
Joined: November 3rd, 2006, 4:27 pm
binafus's Reps: 0
User avatar
Active User > 50 Posts
Got the custom window

Got the FocusWindow sending it to the top.

Made custom buttons.

Can not seem to figure out how to get which button is pressed.

Any help would be appreciated.


(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
Windows.FocusWindow wnd

set wnd = GUI.AddWindow(100,450,"test")

wnd.Settitle "Control"
wnd.setWidth  10
wnd.setheight  10
wnd.setLeft 50
wnd.SetOnDbClick  "dbclick"
wnd.setminx 170
wnd.setminy 72

set btn1 = wnd.addcontrol("Button",3,10,"Pause")
btn1.Setheight 20
btn1.setwidth 45
btn1.SetRightAnchor  true
btn1.SetLeftAnchor  true
btn1.SetonPress  "1"

set btn2 = wnd.addcontrol("Button",50,10,"UnPause")
btn2.Setheight 20
btn2.setwidth 65
btn2.SetRightAnchor  true
btn2.SetLeftAnchor  true
btn2.SetonPress  "2"

set btn3 = wnd.addcontrol("Button",118,10,"Exit")
btn3.Setheight  20
btn3.setwidth 40
btn3.SetRightAnchor  true
btn3.SetLeftAnchor  true
btn3.SetonPress  "3"


Reply with quote
Posted: March 29th, 2007, 9:47 pm
 
wyvernx

Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
User avatar
administrator
premium
Try this:

(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
       set wnd = GUI.AddWindow(100,450,"test")
        Windows.FocusWindow wnd.GetHWND()
   
        wnd.Settitle "Control"
        wnd.setWidth  10
        wnd.setheight  10
        wnd.setLeft 50
        wnd.SetOnDbClick  "dbclick"
        wnd.setminx 170
        wnd.setminy 72

        set btn1 = wnd.addcontrol("Button",3,10,"Pause")
        btn1.Setheight 20
        btn1.setwidth 45
        btn1.SetRightAnchor  true
        btn1.SetLeftAnchor  true
        btn1.SetonPress  "onPause"

        set btn2 = wnd.addcontrol("Button",50,10,"UnPause")
        btn2.Setheight 20
        btn2.setwidth 65
        btn2.SetRightAnchor  true
        btn2.SetLeftAnchor  true
        btn2.SetonPress  "onUnPause"

        set btn3 = wnd.addcontrol("Button",118,10,"Exit")
        btn3.Setheight  20
        btn3.setwidth 40
        btn3.SetRightAnchor  true
        btn3.SetLeftAnchor  true
        btn3.SetonPress  "onExit"

    public sub onExit
        CloseWindow wnd.GetHWND()
    end sub

    public sub onPause
        bPaused = true
    end sub

    public sub onUnPause
        bPaused = false
    end sub


_________________
Use Search first, ask questions later!


Reply with quote
Posted: March 30th, 2007, 5:57 am
 
binafus

Total Posts: 154
Joined: November 3rd, 2006, 4:27 pm
binafus's Reps: 0
User avatar
Active User > 50 Posts
Thanks that is going to work.


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 13 guests

cron
Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of VGExtreme General Discussion RSS Feed 
Sitemap of VGExtreme General Discussion Sitemap 
SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?