View unanswered posts | View active topics It is currently Wed May 22, 2013 4:13 am



Post new topic Reply to topic  [ 3 posts ] 
 Interactive menus 
Author Message
BBChild

Joined: Mon Mar 09, 2009 2:57 am
Posts: 5
Reply with quote
Post Interactive menus
Have you found ways to monitor things and call them over your menu?
my way actually goes over batch files but thats not really perfect.


res.bat reads the output from scrnres.exe and writes that in Res.rc
Code:
@echo off & setlocal ENABLEEXTENSIONS
cls
scrnres.exe>res.dat
set "Res="
for /f "delims=" %%a in ('more ^< res.dat') do (
  if not defined Res set Res=%%a
)
echo [exec] (%Res%) {"plugins\reschanger\res.bat"}>res.rc


reschanger menu includes Res.rc
Code:
[submenu] (ResChanger)
      [include] ("..\plugins\reschanger\Res.rc")
      [separator]
      [exec] (res up)               {@changeres up}
      [exec] (res down)            {@changeres down}
      [exec] (res reset)            {@changeres reset}
      [separator]
      [exec] (set 1024x600)         {@changeres 1024 600}
      [exec] (set 1024x768)         {@changeres 1024 768}
      [exec] (set 1152x864)         {@changeres 1152 864}
      [exec] (set 1280x600)         {@changeres 1280 600}
      [exec] (set 1280x768)         {@changeres 1280 768}
      [exec] (set 1280x800*)         {@changeres 1280 800}
      [exec] (set 1280x1024)         {@changeres 1280 1024}
[end]


finaly you have a line in your menu that looks like:
[exec] (1280x800) {"plugins\reschanger\res.bat"}

you can use that method for many other infos:
ex/int ip
weather info
etc...

feel free to post other examples in batch or python or everything else :D


Tue Mar 31, 2009 12:50 pm
Report this post
Profile
Sponsored Links
Google Adsense


Moderator
User avatar

Joined: Sun Dec 05, 2004 10:08 pm
Posts: 778
Location: LA, US
Reply with quote
Post Re: Interactive menus
Interesting.

_________________
My blackbox styles


Tue Mar 31, 2009 3:05 pm
Report this post
Profile WWW
BBDinosaur
User avatar

Joined: Tue Nov 22, 2005 6:37 pm
Posts: 232
Location: Somewhere fun with nice ladies
Reply with quote
Post Re: Interactive menus
You try messing with JScript or TCL/TK?

_________________
It's a trick, get an axe!!!
Image


Sat Apr 04, 2009 3:18 am
Report this post
Profile YIM WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: qwcp6v3405 and 1 guest


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.