Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 21:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



$Hprocess

Discussion on $Hprocess within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
SaM.ThE.MaN's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 828
Received Thanks: 427
$Hprocess

Hi,
i know how to get PID of a process,but i would like to know how to handle a process,this is what i have done but it is not working,
Quote:
Func Start1()
ToolTip('Non-PK Map Fog Leveler Enabled". To pause press "Pause"',0,0)
$pid1=WinGetProcess("[ACTIVE]","#327701")
$pid2=WinGetProcess("[ACTIVE]","Button69")
MsgBox(4096, "PID is", $pid1)
$hprocess = $pid1
$hprocess = $pid2
$pid1 = ControlClick("[Conquer] Raiding Clans", "", "Right", 1, 182, 22)
$pid1 = ControlClick("[Conquer] Raiding Clans", "", "Left", 1, 573, 381)
Sleep(1000)
$pid1 = ControlClick("[Conquer] Raiding Clans", "", "Right", 1, 573, 381)
$pid2 = ControlClick("[Conquer] Raiding Clans", "", "Right", 1, 182, 22)
Sleep(6000)
$pid1 = ControlClick("[Conquer] Raiding Clans", "", "Left", 1, 426, 383)
Sleep(1000)
$pid1 = ControlClick("[Conquer] Raiding Clans", "", "Right", 1, 426, 383)
$pid2 = ControlClick("[Conquer] Raiding Clans", "", "Right", 1, 182, 22)
Sleep(6000)
EndFunc
Can som1 tell me how to use Process id and get handle of process .ty
SaM.ThE.MaN is offline  
Old 02/13/2010, 12:31   #2
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
Code:
$hwnd = WinGetHandle ( "title" [, "text"] )
$pid = WinGetProcess ( "title" [, "text"] )
| Moep | is offline  
Thanks
1 User
Old 02/13/2010, 15:02   #3
 
SaM.ThE.MaN's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 828
Received Thanks: 427
Oh really,even i know that,but HOW TO USE,now ur gonna say u wont tell me
SaM.ThE.MaN is offline  
Old 02/13/2010, 16:35   #4
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
u just save the handle in the variable, then use it at the place u needed.

f.e.:

Code:
$hwnd = WinGetHandle ( "[Conquer] Raiding Clans")
ControlClick($hwnd, "", "Right", 1, 182, 22)
ControlClick($hwnd, "", "Left", 1, 573, 381)
| Moep | is offline  
Thanks
1 User
Old 02/13/2010, 18:42   #5
 
SaM.ThE.MaN's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 828
Received Thanks: 427
So ,do i still need to get the pid?
SaM.ThE.MaN is offline  
Old 02/13/2010, 19:30   #6
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
depends on the functions u use.
pid idnetify your process, so the value represent the whole process/programm.
hwnd are a handle to the window themself and to the elements who are at the window.
But, if u need a controlcklick relativ to the whole windwo, its enough to write only the title of the Window u getting from WindowInfoTool, autoit doing the rest for u
| Moep | is offline  
Old 02/14/2010, 09:01   #7
 
SaM.ThE.MaN's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 828
Received Thanks: 427
its no use,i cannot get handle of conquer raiding clans,IT just doesnt work.are you sure you know anything about autoit,cause ur never able to help me
SaM.ThE.MaN is offline  
Old 02/14/2010, 11:12   #8
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
Autoit, wtf is this?
| Moep | is offline  
Old 02/14/2010, 11:29   #9
 
Xereon's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 366
Quote:
Originally Posted by | Moep | View Post
Autoit, wtf is this?
O`relly? You don`t know it? ^^


PS: Kommt sofort in meine Sig
Xereon is offline  
Old 02/14/2010, 12:47   #10
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
hey, aber der quote von sam is auch gut
| Moep | is offline  
Old 02/14/2010, 15:37   #11
 
SaM.ThE.MaN's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 828
Received Thanks: 427
-.- u know that i understand wt u saying right?
SaM.ThE.MaN is offline  
Old 02/14/2010, 19:02   #12
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
Quote:
Originally Posted by SaM.ThE.MaN View Post
-.- u know that i understand wt u saying right?
scheinbar ja nicht, denn sonst würdest du nicht soviele fragen stellen...
| Moep | is offline  
Old 02/14/2010, 20:08   #13
 
SaM.ThE.MaN's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 828
Received Thanks: 427
^.-
SaM.ThE.MaN is offline  
Reply




All times are GMT +1. The time now is 21:48.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.