diveboy Posted September 21, 2006 Share Posted September 21, 2006 Yes, thats right. I have a need to package Paradox runtime version 5 for deployment. (the read me file is talking Win 3.1 & Workgroups, so no MSI or any other package manager). I'm wondering if I can use @SWHIDE with a run command to hide the install dialog but still send keys to it while its hidden from view ? is this possible ? or do I have to have the dialogs unhidden to script them ? (maybe block input while it's running) Thanks in advance Michael. Link to comment Share on other sites More sharing options...
NELyon Posted September 21, 2006 Share Posted September 21, 2006 Yes, with ControlSend and ControlClick. Just look in the helpfile for "Control" Link to comment Share on other sites More sharing options...
diveboy Posted September 21, 2006 Author Share Posted September 21, 2006 Thanks Codemyster. looks like what I need. Link to comment Share on other sites More sharing options...
NELyon Posted September 21, 2006 Share Posted September 21, 2006 Thanks Codemyster.looks like what I need.No problem Link to comment Share on other sites More sharing options...
diveboy Posted September 21, 2006 Author Share Posted September 21, 2006 alrighty, I have my controlsend/controlclick all worked out and it installs. Just trying to hide the window now. I'm using run("program.exe","workingdir", @sw_hide) and it's still starting up full screen, I have tried run with @sw_minimize and no difference. I have also tried minimizeall() after it has started and it still stays fullscreen. Anyone got some other tricks they use to hide windows ? Link to comment Share on other sites More sharing options...
CoderDunn Posted September 21, 2006 Share Posted September 21, 2006 Look at WinSetState() in the help file. Hallman Link to comment Share on other sites More sharing options...
diveboy Posted September 21, 2006 Author Share Posted September 21, 2006 Thanks Hallman, WinSetState() hides the window, I have two windows that open when the application starts, these are "Paradox 5.0 for Windows Install" and "Paradox 5.0 for Windows Installation" the "Paradox 5.0 for Windows Install" is pretty borland background install (does nothing). to use WinSetState to access both windows, I need to set opt("WinTitleMatchMode", 3) as when I use WinSetState("Paradox 5.0 for Windows Install") in default "WinTitleMatchMode" it goes to the last active match which is the "Paradox 5.0 for Windows Installation" dialog and not the background. I'm now having problems waiting for a dialog in when it's set to hidden. controlclick("Paradox 5.0 for Windows Notification", "You", "Button1","button) $i=0 Do Sleep ($delay) if WinExists("Paradox 5.0 for Windows Program Manager Group", "Install", "Button2", "button") $i=1 endif until $i=1 I've used some sample code to get the list of windows and it can't see the window I'm waiting for. Reading WinExists() in the help file says that it "WinExists will return 1 even if the window is hidden." so how can I detect this window when I have it set to hide ? Link to comment Share on other sites More sharing options...
diveboy Posted September 21, 2006 Author Share Posted September 21, 2006 (edited) ok given up on hiding them I'm now creating a GUI fullscreen and using $WS_EX_TOPMOST to keep it on top, all seems to be working but I get breif flashes of dialog boxes from the install program popping up over my gui. is there any other way of getting your gui to "always stay on top" ? Cheers Michael. Edited September 22, 2006 by diveboy Link to comment Share on other sites More sharing options...
diveboy Posted September 22, 2006 Author Share Posted September 22, 2006 should of posted and not edited my last post. 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