| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| mgr.inz.Player I post too much
 
  Reputation: 222 
 Joined: 07 Nov 2008
 Posts: 4438
 Location: W kraju nad Wisla. UTC+01:00
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| panraven Grandmaster Cheater
 
 ![]() Reputation: 62 
 Joined: 01 Oct 2008
 Posts: 958
 
 
 | 
			
				|  Posted: Thu Jul 28, 2016 1:40 pm    Post subject: |   |  
				| 
 |  
				| Thank you~ 
 May be replacing timer with CommonDialog's OnClose event?
 It seems sd.FileName will contain filename of the CT executing from the Explorer.
 
 btw, using event then the caption trail with os.date'%X' will show the last save/load time.
 _________________
 
 - Retarded. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mgr.inz.Player I post too much
 
  Reputation: 222 
 Joined: 07 Nov 2008
 Posts: 4438
 Location: W kraju nad Wisla. UTC+01:00
 
 | 
			
				|  Posted: Thu Jul 28, 2016 3:05 pm    Post subject: |   |  
				| 
 |  
				| Unfortunately there's no dialog result exposed to lua: 
  	  | Code: |  	  | local mf = getMainForm() local sd = mf.SaveDialog1
 
 print( getPropertyList(sd).Text )
 
 Name
 Tag
 HelpContext
 Width
 Height
 Title
 DefaultExt
 FileName
 Filter
 FilterIndex
 InitialDir
 Options
 | 
 
 We can not check (inside OnClose event) if dialog was cancelled.
 
 
 But. I can use OnClose event to enable the timer at right moment and only when it is needed.
 Timer will disable itself after updating a label. First post updated with new file.
 
 
 Edit:
 Removed not needed source. It's in first post anyway.
 _________________
 
 
 Last edited by mgr.inz.Player on Sun Oct 30, 2016 12:54 pm; edited 1 time in total
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| panraven Grandmaster Cheater
 
 ![]() Reputation: 62 
 Joined: 01 Oct 2008
 Posts: 958
 
 
 | 
			
				|  Posted: Thu Jul 28, 2016 3:57 pm    Post subject: |   |  
				| 
 |  
				| It seems the original timer method update the label correctly in the right time. But event base method may have a delay(?) in case of asking user to merge 2 table.
 _________________
 
 - Retarded. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mgr.inz.Player I post too much
 
  Reputation: 222 
 Joined: 07 Nov 2008
 Posts: 4438
 Location: W kraju nad Wisla. UTC+01:00
 
 | 
			
				|  Posted: Thu Jul 28, 2016 4:23 pm    Post subject: |   |  
				| 
 |  
				| I see. 
 When you click YES in "do you wish to merge" window:
 - file name is correct, because you added stuff to existing CT file from other CT
 - time is wrong
 
 When you click NO in "do you wish to merge" window:
 - file name is wrong, you just opened other CT file
 - time is correct
 
 
 
 Also, pressing CTRL+S do not update the time. I have to dig more.
 _________________
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| jaejunks How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 29 May 2016
 Posts: 4
 
 
 | 
			
				|  Posted: Sat Jan 21, 2017 9:20 am    Post subject: |   |  
				| 
 |  
				| I think I've fixed the table name not get updated after opening a different table. 
 I've removed some of the code lines since they aren't necessary, and shorten the timer interval so that the name update is more snappy.
 
 
 
 
	
		
	 
		| Description: |  |  Download
 |  
		| Filename: | currentCheatTableName.lua |  
		| Filesize: | 1.24 KB |  
		| Downloaded: | 4133 Time(s) |  
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| jaejunks How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 29 May 2016
 Posts: 4
 
 
 | 
			
				|  Posted: Thu Jan 26, 2017 6:43 am    Post subject: |   |  
				| 
 |  
				| Script update: 
 - Added label tooltip to display table full file path.
 
 - Made the "Delete all addresses from the list" button prompts user to clear the table name if there's a table currently loaded.
 
 The second one is mainly to prevent the Save menu item from accidental overwriting of a possibly good table file because both the menu and the button don't clear the table file name that was previously loaded or saved.
 
 I haven't managed to apply the second modification to the Save menu item (the `New1` component) because somehow, changes to its OnClick property seems to be ineffective. i.e. the newly assigned handler is never called. Anyone can shed some lights on this?
 
 
 
 
	
		
	 
		| Description: |  |  Download
 |  
		| Filename: | currentCheatTableName.lua |  
		| Filesize: | 1.9 KB |  
		| Downloaded: | 4164 Time(s) |  
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mgr.inz.Player I post too much
 
  Reputation: 222 
 Joined: 07 Nov 2008
 Posts: 4438
 Location: W kraju nad Wisla. UTC+01:00
 
 | 
			
				|  Posted: Thu Jan 26, 2017 8:04 am    Post subject: |   |  
				| 
 |  
				| Hi, I'll check your modifications later. _________________
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mgr.inz.Player I post too much
 
  Reputation: 222 
 Joined: 07 Nov 2008
 Posts: 4438
 Location: W kraju nad Wisla. UTC+01:00
 
 | 
			
				|  Posted: Sun Apr 12, 2020 9:41 am    Post subject: |   |  
				| 
 |  
				| updated _________________
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| daspamer Grandmaster Cheater Supreme
 
  Reputation: 54 
 Joined: 13 Sep 2011
 Posts: 1588
 
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Corroder Grandmaster Cheater Supreme
 
  Reputation: 75 
 Joined: 10 Apr 2015
 Posts: 1668
 
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mgr.inz.Player I post too much
 
  Reputation: 222 
 Joined: 07 Nov 2008
 Posts: 4438
 Location: W kraju nad Wisla. UTC+01:00
 
 | 
			
				|  Posted: Mon Apr 13, 2020 5:48 am    Post subject: |   |  
				| 
 |  
				| I'm using custom CE which has there git revision info. Also I have other extensions which adds some other infos and stats to the main form caption: 64bit or 32bit CE, Lua memory usage, etc.
 
 A simple example with only git revision and 32/64 bit info:
 
   
 You see how many D are in caption and in in label below progressbar.
 _________________
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Corroder Grandmaster Cheater Supreme
 
  Reputation: 75 
 Joined: 10 Apr 2015
 Posts: 1668
 
 
 | 
			
				|  Posted: Mon Apr 13, 2020 7:53 am    Post subject: |   |  
				| 
 |  
				| Aha...I see 100 D over there. Okay, then we able to make some changes (custom CE) which asjusted to our needs. _________________
 
 Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mgr.inz.Player I post too much
 
  Reputation: 222 
 Joined: 07 Nov 2008
 Posts: 4438
 Location: W kraju nad Wisla. UTC+01:00
 
 | 
			
				|  Posted: Mon Apr 13, 2020 8:03 am    Post subject: |     |  
				| 
 |  
				| This is why I prefer using additional currentTableNameLabel and decimalPIDLabel labels. Sometimes I have CT files with very long names, e.g. "dropdownlist looping tester, cheat engine version 6.8.3 commit XXXXXXX.CT" (XXXXXXX - commit SHA)
 As you see, it wouldn't fit in CE caption. Of course I can resize main window... but I prefer CE width not bigger than 1/3 of my screen.
 
   
 
 
 
 Of course you can adjust my script to your needs and post working script here.
 _________________
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Corroder Grandmaster Cheater Supreme
 
  Reputation: 75 
 Joined: 10 Apr 2015
 Posts: 1668
 
 
 | 
			
				|  Posted: Mon Apr 13, 2020 9:17 am    Post subject: |   |  
				| 
 |  
				| I got the reason and thank so much for allow use your script. _________________
 
 Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |