raj9039852537 Posted April 12, 2014 Posted April 12, 2014 Want some sendkey with adobe reader and some other programs. Using Winactivate needs class name, tried to use imagename from taskmanager (Acrord32.exe) for adobe reader but not working
FireFox Posted April 12, 2014 Posted April 12, 2014 (edited) Hi, Can you please at least make a proper english sentence? Br, FireFox. Edited April 12, 2014 by FireFox
willichan Posted April 12, 2014 Posted April 12, 2014 Try using the window title instead of the class name. My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash
jguinch Posted April 12, 2014 Posted April 12, 2014 Maybe you can use Opt("WinTitleMatchMode", 2) to match only the "Adobe Reader" string (it is at the end of the Window title). If the process name is the only information you have, then you can use something like this : $res = _WinGetFromProcess("notepad.exe") MsgBox(0, "", "Window title for notepad : " & $res) $res = _WinGetFromProcess("notepad.exe", 1) MsgBox(0, "", "Window handle for notepad : " & $res) ; Returns the Windows Title or Handle, from a Process name or PID ; Process : ProcessName or PID ; iFlag : 0 = returns the title ; 1 = returns the handle Func _WinGetFromProcess($Process, $iFlag = 0) Local $aProcessList = ProcessList($Process) Local $aWinList = WinList() For $i = 1 To $aWinList[0][0] If $aWinList[$i][0] <> "" And BitAND(WinGetState($aWinList[$i][1]), 2) Then $iPid = WinGetProcess($aWinList[$i][1]) For $j = 1 To $aProcessList[0][0] If $aProcessList[$j][0] = $iPid OR $aProcessList[$j][1]= $iPid Then If $iFlag Then Return $aWinList[$i][1] Else Return $aWinList[$i][0] EndIf EndIf Next EndIf Next Return 0 EndFunc Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
raj9039852537 Posted April 13, 2014 Author Posted April 13, 2014 Thanks, for suggession specially firefox bro, the point is i am using net on mobile and it is difficult to concentrate on sentences while typing for me.Bytheway thanks all for suggessions.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now