hhsecond Posted April 9, 2015 Author Share Posted April 9, 2015 (edited) BTW as long as we're "out of the box" you may be a ble to turn off this "mail alert" in program settings. I will not be able to turn of the mail alert. In fact that is the requirement. i need to click on that. i can do every thing manually. but script cannot. Any way thanks a lot for your valuable time. Edited April 9, 2015 by hhsecond Link to comment Share on other sites More sharing options...
JohnOne Posted April 9, 2015 Share Posted April 9, 2015 Post the au3wininfo summary tab for the alert window. If you cannot do this with autoit native, your next step would probably be >IUI Automation. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
hhsecond Posted April 9, 2015 Author Share Posted April 9, 2015 Post the au3wininfo summary tab for the alert window. If you cannot do this with autoit native, your next step would probably be >IUI Automation. >>>> Window <<<< Title: DPIMail Alert Class: #32770 Position: 447, 436 Size: 392, 152 Style: 0x94C801C5 ExStyle: 0x00010101 Handle: 0x00000000000C026C >>>> Control <<<< Class: Button Instance: 1 ClassnameNN: Button1 Name: Advanced (Class): [CLASS:Button; INSTANCE:1] ID: 2 Text: OK Position: 303, 94 Size: 75, 23 ControlClick Coords: 49, 12 Style: 0x50030000 ExStyle: 0x00000004 Handle: 0x00000000001202C6 >>>> Mouse <<<< Position: 802, 564 Cursor ID: 0 Color: 0xD6D3CE >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< OK An Error Occurred While Receiving Documents From Mailbox: DPRP23 Please Try Again... >>>> Hidden Text <<<< Link to comment Share on other sites More sharing options...
JohnOne Posted April 9, 2015 Share Posted April 9, 2015 What this give you in console? $path = "c:\programfiles(x86)\myfolder\DPPrint\DPPrint.exe" ShellExecute($path) $hwnd = WinWait("DPMail Alert") ; Wait until the Window exists ConsoleWrite("WinWait - " & $hwnd & @LF) $act = WinActivate($hwnd) ; Activate the window ConsoleWrite("WinActivate - " & $act & @LF) $con = ControlGetHandle($hwnd, "", "[class:Button; Instance:1]") ConsoleWrite("ControlGetHandle - " & $con & @LF) $clk = ControlClick($hwnd,"",$con) ConsoleWrite("ControlClick - " & $clk & @LF) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Iczer Posted April 10, 2015 Share Posted April 10, 2015 i think it's issue related to bug #2356 - "ControlGetText return blank string, but Window Info tool work without fail" Window Info tool work, but autoit functions not. Link to comment Share on other sites More sharing options...
JohnOne Posted April 10, 2015 Share Posted April 10, 2015 The one that got closed because it can not be reproduced? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Iczer Posted April 10, 2015 Share Posted April 10, 2015 if you look carefully, it was closed under "works for me" reason. so you wrong. and i do not know how to reopen already closed bug. but anyway - what actual difference between Window Info tool and any autoit program? i mean difference that can explain this "not working" issue. I tried sign my compiled script, i used autoit-written Info tool : but without any luck. There a must be some basic reason. Asside note, i'm on XP so no UAC involved (but maybe something of this kind?). Link to comment Share on other sites More sharing options...
JohnOne Posted April 10, 2015 Share Posted April 10, 2015 "works for me" == "I cannot reproduce your claim". So no, I'm not wrong.. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
hhsecond Posted April 13, 2015 Author Share Posted April 13, 2015 (edited) guys, I got the solution. someone've already suggested. i think its JOS. runasadmin workd. But my prob is i need to avoid UAC. i can have admin access to install the program. but this app should run every day by some users. They will not be able to use admin credentials. if i give value to HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers and HKEY_CURRENT_machineSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers this registry key. WOULD my system stops prompting UAC? I'll be able to give values to that keys because i have admin access. Please help me and jos thanks alot. @johnone: i tried your code. all the console write were gave success values. Thank you maan for your time Edited April 13, 2015 by hhsecond Link to comment Share on other sites More sharing options...
hhsecond Posted April 14, 2015 Author Share Posted April 14, 2015 "works for me" == "I cannot reproduce your claim". So no, I'm not wrong.. Hi johnone, Could you please look into the above registry key question. Am running out of option. please help me Link to comment Share on other sites More sharing options...
JohnOne Posted April 14, 2015 Share Posted April 14, 2015 I do not even understand the question, but I can tell you that a non admin user cannot write to HKLM. Post code. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
hhsecond Posted April 15, 2015 Author Share Posted April 15, 2015 I do not even understand the question, but I can tell you that a non admin user cannot write to HKLM. Post code. I want my application to run without asking UAC. Till now, the update i can give is my application is not behaving good if it is not running as admin. I just need my application run without any issues and my users is not asked for admin credentials. Would you be able to give me some suggestions.? Link to comment Share on other sites More sharing options...
JohnOne Posted April 16, 2015 Share Posted April 16, 2015 If a non admin user can execute code that can modify the local machine registry and without even a warning from UAC then we'd all be in big trouble don't you agree? You have options. Make all users admin (not big not clever) Run a particular part of your code as admin, and add you admin login details to code (not big not clever) Use the HKCU registry, it's what it's meant for. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
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