AutoHotkey Community

It is currently May 27th, 2012, 12:00 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Nemu Cheat Device
PostPosted: November 28th, 2010, 3:11 am 
Im making a nemu 64 cheat tool. so far it can load the cheat names on the left, and when you click on it the rom values go on the right. im hoping to have a fully working program.

Problem: how do you get a right click menu with a tree view

[Deleted double post. ~jaco0646]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 4:00 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
:?:
Code:
Gui,Add,TreeView,AltSubmit gLabel
P:=TV_Add("test")
TV_Add("hello",P)
Gui,Show
Return
GuiClose:
ExitApp
Label:
If (A_GuiEvent="RightClick"){
   TV_GetText(Item,A_EventInfo)
   Menu,MyMenu,Add,% "Show Properties for: " Item,Menu
   Menu,MyMenu,Show
   Menu,MyMenu,DeleteAll
}
Return
Menu:
MsgBox A_ThisMenuItem
Return

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 6:44 am 
Thanks that work perfectly. If i want it for two different trees what would i do.

Also, i want to open a n64 rom and have it read some certain bytes in the header. but when writing it to a variable it doesnt copy right.

Example: Super Mario 64 (U) [!].z64
Romheader: SUPER MARIO 64.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 1:26 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Code:
Gui,Add,TreeView,AltSubmit gLabel
P1:=TV_Add("test")
P2:=TV_Add("hello")


Have you got example for rom reading?

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 4:46 pm 
Some thing like this:

Image

I want the part that says "SUPER MARIO 64 " (Including the extra spaces.)

Then i need to cut off the trailing spaces.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 4:47 pm 
EDIT: Mine just keeps grabbing the first 4 chars of the beggining.

"80 37 12 40" = ".7.@"


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 5:25 pm 
Ran into extra problem. How to make seperator with second post.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 6:06 pm 
Figured it out
"Menu, MyMenu, Add"

Just leave it blank.
I still have the other problem.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 6:26 pm 
New problem.

How do you parse each string in a multi string EDIT.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 7:19 pm 
Maybe for the rom problem. You could use an external tool to get that info.

Write it to a file. Then have your program load the file and bam.

If you want to get rid of it, just delete it.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 7:26 pm 
I'm sorry but i dont want external programs. Now i'll have this file lurking around my program. plus if some one deletes it because they got the wrong idea, my script is broken.
Even if i have Fileinstall. If some one deletes my file while the program is running, it doesnt work any more.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 8:10 pm 
So you're parsing by newline, so you're code would be
Loop,PARSE,multilineedit,`n,`r


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 8:33 pm 
Thanks. i'll use GuiControlGet.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 9:38 pm 
Update: I have the Adding Cheats capability completed on this project.

Im now working on the Deleting cheats.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2010, 10:19 pm 
Deleting cheats successful.

One problem.

if i have a ini that goes like this.

Code:
Cheat0
Cheat1
Cheat2
Cheat3
Cheat4
Cheat5


If i delete Cheat2, how do i shift the rest.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google Feedfetcher, Yahoo [Bot] and 18 guests


You can 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:
Powered by phpBB® Forum Software © phpBB Group