shay Posted June 13, 2010 Share Posted June 13, 2010 (edited) Hi i write a script that on 32bit PC when i test in all run OK but when i run the code on 64bit PC it didn't work so good, it get stuck on the "WinWaitActive" so i try to baypass this with a loop with no lock ;close installation GUI Do WinActivate ("LU-1000") $handle = WinGetHandle("LU-1000","") sleep(1500) $wait = WinWait("LU-1000", "exit") Until $wait = $handle any idea? Edited June 13, 2010 by shay "If the facts don't fit the theory, change the facts." Albert Einstein Link to comment Share on other sites More sharing options...
Achilles Posted June 13, 2010 Share Posted June 13, 2010 Have you tried using the AutoIt info tool (comes with autoit install) to see if the title of the window is still the same? My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
shay Posted June 13, 2010 Author Share Posted June 13, 2010 Have you tried using the AutoIt info tool (comes with autoit install) to see if the title of the window is still the same?the title is the same. "If the facts don't fit the theory, change the facts." Albert Einstein Link to comment Share on other sites More sharing options...
MvGulik Posted June 13, 2010 Share Posted June 13, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
shay Posted June 14, 2010 Author Share Posted June 14, 2010 Forum post typo? (probably)sleep(1500) $wait = WinWait("LU-1000", "exit") Assumingsleep(1500) $wait = WinWait("LU-1000", "exit") If the WinWait() [text] parameter fails for some reason it would also never exit. yes its a typo, in my code it`s doesn't look like that. i know the loop want exit, also i try WinWaitActive with no luke. it doesn't work on the 64Bit PC. "If the facts don't fit the theory, change the facts." Albert Einstein Link to comment Share on other sites More sharing options...
Ascend4nt Posted June 14, 2010 Share Posted June 14, 2010 Hmm, just to give it a shot - maybe the "exit" text isn't being read? Try to see if it shows up with the AutoIT window info tool ('Visible Text' tab). Also, would you mind telling people what the program is? Searches for LU-1000 didn't bring up anything useful for me. My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
shay Posted June 14, 2010 Author Share Posted June 14, 2010 [quote name='Ascend4nt' date='14 June 2010 - 11:08 AM.... ...Also, would you mind telling people what the program is? Searches for LU-1000 didn't bring up anything useful for me. "If the facts don't fit the theory, change the facts." Albert Einstein Link to comment Share on other sites More sharing options...
KaFu Posted June 14, 2010 Share Posted June 14, 2010 Hmm, just to give it a shot - maybe the "exit" text isn't being read?Seems like the best guess so far to me. Compile your code to x64 and test that. If it works, you need a 32/64 bit wrapper for your code. Take a look at ICU how I've done it, the wrapper is part of the source download. 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...
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