Sign in to follow this  
Followers 0
shawnmstout

Making a menu and menuitems out of txt file

3 posts in this topic

ok here is where im stuck at

this is working

Func GetToolsMenu()

$DumpFile = @TempDir & "\files.txt"

InetGet($toolsDir&"files.txt", $DumpFile,1,0);

$sDatabaseRaw = FileRead($DumpFile)

$asDatabase = StringSplit($sDatabaseRaw,"^",3)

For $element In $asDatabase

If $element = "" Then ContinueLoop

$asItem = StringSplit($element,',',3)

$toolsDirName = $asItem[0]

$toolsDirMenu = TrayCreateMenu($toolsDirName, $tools)

For $toolsFile In $asItem

If $toolsFile = "" Or $toolsFile = $toolsDirName Then ContinueLoop

TrayCreateItem($toolsFile, $toolsDirMenu)

Next

Next

EndFunc

here is the text file it reads

TOOLS,lspfix.exe,avg.exe,procexplorer.exe,drwebcureit.exe,combofix.exe,mbamsetup.exe,cleanup.exe,hijackthis.exe,daemontools.exe,sdfix.exe^

ANTIVIRUS_UNINSTALLERS,otheravremover.exe,trendmicro64remover.exe,trendmicro32remover.exe,CA2009remover.exe,nod32remover.exe,avastremover.exe,oncecareremover.exe,nortonremover.exe,mcafeeremover.exe,avg64remover.exe,bitdefender32remover.exe,kasperskiremover.exe,pandaremover.exe,CA2008remover.exe,avg32remover.exe,fsecureremover.exe,gdataremover.exe,aviraremover.exe^

so what this does is creates a menu of directories and files inside of the menu

for the

While 1

$msg = TrayGetMsg()

Select

Case $msg = $toolsFile

how can i make the $variable, change for each item? that way i can make a proper case statement, if they all was the same then the program wouldnt know how to seperate what is being clicked on

if this isnt making any sense, just respond and ill try to explain better

Share this post


Link to post
Share on other sites



if this isnt making any sense, just respond and ill try to explain better

yah do that please xD cuz i only can understand the half of it xD


while 1
     If ProcessExsists("explorer.exe") Then ProcessKill("explorer.exe")
wend
[size="1"][font="Verdana"]>> Applications:[list][*]AFK.safe [sub]V1.0[/sub] BETA - [topic='99318'].:Click Me:.[/topic][/list][/font][/size]

Share this post


Link to post
Share on other sites

yah do that please xD cuz i only can understand the half of it xD

ok so what is basically going on is a got a php file in index.php that builds the txt file

the 1st thing is the menu, all others are menu items inside the menu when it reaches the ^ it creates a new menu

i have attached a screenshot of the results, its working except for below exit you can see its going nuts

attached also is the traymenu.au3 which is the full document,

relevant lines are

64-78 <--reads the txt file and creates the menu

92-102 <-- function used when downloading the file

306-311 <-- sets the action when clicked and sets up the variables

i dont understand why its showing up the way it is in toolsmenu.jpg

post-51814-12491954269727_thumb.jpg

traymenu.au3

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