Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Guilink

1
Quote from: ForeverZer0 on November 24, 2014, 07:55:58 pm
There is a difference in the methods between the two operating systems, so I will need to make an edit to identify the OS and have it behave accordingly.


I understand.
If you can do only for WinXP/Seven already'll be perfect for me.
I have to admit, my project depends on it.

Anyway, thank you already helped me a lot.  


EDIT:

Please if someone else can adapt to Windows XP will be very grateful
2
Quote from: ForeverZer0 on November 24, 2014, 11:52:58 am
I think something like this should be sufficient for what you are trying to accomplish.

Spoiler: ShowHide
module Zer0
 #-----------------------------------------------------------------------------
 # * Constants
 #-----------------------------------------------------------------------------
 EnumProcesses = Win32API.new ('psapi', 'EnumProcesses', 'plp', 'i')
 OpenProcess = Win32API.new('kernel32', 'OpenProcess', 'lil', 'l')
 GetProcessImageFileName =
   Win32API.new('psapi', 'GetProcessImageFileName', 'lpl', 'l')
 #-----------------------------------------------------------------------------
 # * Get Array of Running Executables on the System
 #-----------------------------------------------------------------------------
 def self.executable_names
   exes = []
   pids = self.process_ids
   pids.each {|pid|
     handle = OpenProcess.call(0x0400, 0, pid)
     next if handle == 0
     buffer = "\0" * 256
     result = GetProcessImageFileName.call(handle, buffer, 256)
     next if result == 0
     exe = buffer.delete("\0").split('\\').pop
     exes.push(exe)
   }
   return exes
 end
 #-----------------------------------------------------------------------------
 # * Get Array of IDs of Processes Running on the System
 #-----------------------------------------------------------------------------
 def self.process_ids
   pids = [0].pack ('L') * 1024
   bytes = [0].pack ('L')
   EnumProcesses.call(pids, 1024, bytes)
   count = bytes.unpack('L')[0] / 4
   return pids.unpack('L' * count)
 end
 #-----------------------------------------------------------------------------
 # * Check if Specified Executable(s) is Running
 #-----------------------------------------------------------------------------
 def self.check_exe(*names)
   exes = self.executable_names
   names.each {|name| return true if exes.include?(name) }
   return false
 end
end


It basically allows to check for the executable name of running processes. With that, you can do your own checks on names and compare. I will leave it to you to expand on that aspect of it, although I did make a basic function at the end to demonstrate a simple way. If you need any help using or understanding it, just ask.

I haven't tested anything yet, so I am not sure if it is possible to change the exe name to fool the script. If so, might need to change how it works a little bit. I just went for the quick and simple way of getting it done.

EDIT:
Wow, it has been a long time since I have written code using Ruby...  :P


Thank you! Is perfect!
It worked, I called by this way :

  if Zer0::check_exe("notepad.exe")
   print "Notepad is open"
 else
   print "Notepad is Close"
 end


But one thing , when I tested at the morning on office computer (Win 7) worked perfectly , as when I tested at home now (Win XP ) did not work properly ... the list of exes appeared incorrectly, it interferes with something ?
3
Quote from: ForeverZer0 on November 21, 2014, 12:52:35 pm
Not exactly the right track, a window handle is not a process. A process may not even have a window handle, so you will need to identify by the PID.

I might get a spare second soon, and see if I can throw together a couple Win32API functions you can use.


EDIT:
Have to go to work now, might work on this more later, but if someone feels like continuing and finishing, be my guest.
Here is how to get an array of all PIDs currently running.

Spoiler: ShowHide
enumprocesses = Win32API.new ('psapi.dll', 'EnumProcesses', 'plp', 'i') 
pids = [0].pack ("L") * 1024
cbNeeded = [0].pack ("L")
enumprocesses.call(pids, 1024, cbNeeded)
num_procs = cbNeeded.unpack("L")[0] / 4
pids = pids.unpack("L" * num_procs)



Thanks! With that he checks the amount of open process ...

Now I need to find a way to recognize the process by name  :wacko:
4

Thanks everyone for the help.. I think we are on the right track.

I have this code that identifies an open window . But it is not enough

class Anti_HackTest
  def initialize
findWindow = Win32API.new('user32.dll', 'FindWindow', 'P''P', 'L')

@Pro_N = [
  findWindow.call(0, 'Cheat'),
#findWindow.call(0, 'Window name here'),
]
for i in 0... @Pro_N.size
if @Pro_N >= 1
print "No cheating ! The game will be closed"
exit
end
end
end
end
5
Hello Everyone,

I look for a code to check whether there is an open process in windows. So I can finish the game if it is open .

Example:

If "cheatengine.exe" process is open
close game
end

I would be grateful if someone could help me with this

Thank and sorry for the bad english.
6
Script Requests / [Request] Game screen not freeze
August 03, 2012, 06:32:23 am
I'm looking for a script, it makes the game screen does not freeze even when the Game.exe is not selected.(Alt + Tab to another application)

I have seen this script somewhere but I can not find it, if anyone can help I will be grateful.

Sorry for my bad English.

Thank you.
7
Using the new version of this script and the script RMXOS, this system has stopped working, please check this.

This error occurs when I try to change a switch or a variable global:



Server side error:



Thank you


8
Yeeeeee

My favorite script has been updated.    :haha:

Like you said, I tested the new version and yet still some bugs.

I'm anxious for new updates on this!!!!

Thanks Blizzard!
9
I'm happy just to know it has a chance this can be fixed!!

Recalling the bugs xD:
Spoiler: ShowHide
I found the following bugs when I logged in with two characters ...
First, the online system stopped working properly, you could not see exactly the positions of the characters.
Second, only sometimes I could make an attack with monsters or pvp.
Third, the monsters respawn does not work.

:ninja:
10
Quote from: Ryex on January 17, 2011, 10:23:25 pm
Quote from: Futendra on January 17, 2011, 04:19:33 pm
Quote from: Noob on January 17, 2011, 03:42:32 pm
Hey, I've found that it's very rare for multiple people to be able to fight a NPC enemy at once. It happens for me occasioanally, I think by luck. Is there a way to make multi-combat happen all the time? Did I forget to configure something...?
as far as I know every player 'has its own enemies' which means the movement, behaviour, reactions and samage can't be general. Of course maybe with much editting or a diff script, or as said maybe configuring.

thats garbage, the babs controller makes all enemies global. more than one person CAN fight with the same monster at the same time.


This is the theory ... because in practice it does not work for now
11
Quote from: Blizzard on January 10, 2011, 02:40:31 am
It really depends. I'm busy with many other things in my life now and, honestly, I'm never really in the mood to work on it.


Hum...ok

Unfortunately I'll have to go back to work with Netplay old and trying to do something.

Thanks
12
Blizzard...

I wanted to use the BlizABS with RMX-OS without any bugs, even if it works OFFLINE. (Yes, just believe)
Cause I can not use the RMX-OS if my game has no ABS, and others are incompatible.


I really wanted this, because this system without bugs never has updated. D:

If you could help me with this I would be very grateful. (:
13
Blizzard, please, you must predict when you will fix these bugs?

Thanks.
14
I was very happy and excited with this update, more errors and bugs that I reported still ... = (

Spoiler: ShowHide
I found the following bugs when I logged in with two characters ...
First, the online system stopped working properly, you could not see exactly the positions of the characters.
Second, only sometimes I could make an attack with monsters or pvp.
Third, the monsters respawn does not work.


Thanks anyway ...

And I wait one more update!

=D
15
No more extension on the server? I looked at the first post and I have not found
16
RMXP Script Database / Re: [XP] Custom Resolution
November 25, 2010, 01:39:58 pm
I also tried rebooting and it did not work
17
RMXP Script Database / Re: [XP] Custom Resolution
November 25, 2010, 01:21:19 pm
Quote from: Wizered67 on November 25, 2010, 11:05:55 am
Whenever I try to use this amazing script, it gives me an error on line 136.
no implicit conversion from nil to integer


And yes, I did put in the screenshot.dll


I have the same error!

:huh:
18
abandoned...

=/
19
I got it!  :)

The tips were very useful, thanks Wizered67 and Blizzard !
20
Hi sexy guys...

I need that on the login screen... the "REMEMBER_LOGIN" function just to show me only the last "username"  ... and not username and Password.


Thanks!

Srry for bad english

Edit: Resolved.
Thanks Wizered67 and Blizzard !