AutoBit Posted February 24, 2013 Share Posted February 24, 2013 Hi everyone, I wrote a simple script that worked on win 7 but the same script doesn't work on win 8. I used "ShellExcute to" run an "exe" file which works fine! Later when i want to send {ENTER} to a window the window doesn't response to it. While(WinActive("[CLASS:#32770]") = 0) WinActivate("[CLASS:#32770]") WEnd Send("{enter}") I Tried other commands that didn't work and i read in the forum about it but i didn't see any solution to my problem. I turned off the the UAC ! any advice? Link to comment Share on other sites More sharing options...
JohnOne Posted February 24, 2013 Share Posted February 24, 2013 Is the window metro? 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...
AutoBit Posted February 24, 2013 Author Share Posted February 24, 2013 No, It's a regular Window of an app. Link to comment Share on other sites More sharing options...
KaFu Posted February 24, 2013 Share Posted February 24, 2013 Are you sure "CLASS:#32770" is still valid? Check it with the AU3Info Tool. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
AutoBit Posted February 24, 2013 Author Share Posted February 24, 2013 Yes, I already did it before i post my question.it's the same class. Link to comment Share on other sites More sharing options...
JohnOne Posted February 24, 2013 Share Posted February 24, 2013 (edited) If the window running is elevated higher then that of your account, then Send might possibly fail (I think) Try #RequireAdmin Edited February 24, 2013 by JohnOne 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...
AutoBit Posted February 24, 2013 Author Share Posted February 24, 2013 It Worked!!!!!Thank you so much Link to comment Share on other sites More sharing options...
ahha Posted February 26, 2013 Share Posted February 26, 2013 Go here to #8 is a way to test under program control if elevation is needed (winmove test). 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