realkiller Posted September 30, 2005 Posted September 30, 2005 (edited) i wanna hide a window but it doesnt hide instant i tryed winsetstate "@SW_HIDE run "@SW_HIDE but it must minimized first sow i thought about minimize first, but than it start first the programme, after a few sec it minimize then i can hide the programme isnt there i way 2 hide it instant. this is the window info Title: .RoBerRt Class: WindowsForms10.window.8.app5 Size: X: 240 Y: 166 W: 800 H: 597 Edited September 30, 2005 by realkiller Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
Valuater Posted September 30, 2005 Posted September 30, 2005 this should do it WinSetState ( ".RoBerRt", "", @SW_HIDE ) 8)
realkiller Posted September 30, 2005 Author Posted September 30, 2005 i tryed that doesnt work instant Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
Valuater Posted September 30, 2005 Posted September 30, 2005 if it is known by windows RunWait(@COMSPEC & " /c Start myfile.msi", "", @SW_HIDE ) 8)
LxP Posted September 30, 2005 Posted September 30, 2005 In case that also doesn't work, could you please post the code that you're using to open this window? It will be easier to work from that.
realkiller Posted September 30, 2005 Author Posted September 30, 2005 (edited) if it is known by windowsRunWait(@COMSPEC & " /c Start myfile.msi", "", @SW_HIDE )8)if i put the exe in c:RunWait(@COMSPEC & " C:\RoBeRt.exe", "", @SW_HIDE ) and start it then i get a error opening it window connot find filei got this code that hides the window after 2secRun("C:\RoBeRt.exe", "", @SW_HIDE) While 1 WinSetState (".RoBeRt", "", @SW_HIDE) WEnd Edited September 30, 2005 by realkiller Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
Valuater Posted September 30, 2005 Posted September 30, 2005 how about this Run("C:\RoBeRt.exe", "", @SW_MINIMIZE) WinWait("") WinSetState (".RoBeRt", "", @SW_HIDE) 8)
realkiller Posted September 30, 2005 Author Posted September 30, 2005 first of all thx for replying all forgot 2 tell;) second i see the window still i made this now i see it 1sec While 1 If ProcessExists("RoBeRt.exe") Then WinSetState (".RoBeRt", "", @SW_HIDE) Else Run("RoBeRt.exe", "C:\", @SW_HIDE) EndIf WEnd Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
Valuater Posted September 30, 2005 Posted September 30, 2005 (edited) Run("C:\RoBeRt.exe", "", @SW_MINIMIZE) put this in your script and try it 8) Edited September 30, 2005 by Valuater
realkiller Posted September 30, 2005 Author Posted September 30, 2005 doesnt minimize it seems that if you run the programme you cant set any things like hide or what ever, is there a way then 2 make a gui and run the programme in it and the window of it then i can hide it Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
realkiller Posted September 30, 2005 Author Posted September 30, 2005 plz help someone Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
WSCPorts Posted September 30, 2005 Posted September 30, 2005 #include <GuiConstants.au3> #include <AnyGuiv2.6.au3> Func SetParent($oHwnd, $nHwnd) $ret = DllCall("User32.dll", "hwnd", "SetParent", "hwnd", $oHwnd, "hwnd", $nHwnd) Return $ret[0] EndFunc WinWait(".RoBerRt") SetParent(".RoBerRt", "0") $TaG = _GuiTarget(".RoBerRt", 1) _TargetStyle("set", 1, BitOR($WS_CHILD, $WS_SYSMENU, $WS_MINIMIZE, $WS_MAXIMIZE)) http://www.myclanhosting.com/defiasVisit Join and contribute to a soon to be leader in Custumized tools development in [C# .Net 1.1 ~ 2.0/C/C++/MFC/AutoIt3/Masm32]
realkiller Posted September 30, 2005 Author Posted September 30, 2005 i get multiple errors Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
LxP Posted September 30, 2005 Posted September 30, 2005 (edited) You need the AutoIt beta and you need qwaizywabbit's AnyGUI library. Edit: And that's the best that anyone can do without being told what errors you get. Edited September 30, 2005 by LxP
realkiller Posted September 30, 2005 Author Posted September 30, 2005 hmm it starts a window not thx but the app needs 2 been run into the new window sow i can hide it instant otherwise it has no use , sow how can i run the app + window in the gui thx for all reply your great guys Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
realkiller Posted September 30, 2005 Author Posted September 30, 2005 oke guys i got it thx for helping me i appricate the helping;) Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
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