danusko Posted July 25, 2006 Share Posted July 25, 2006 Hi, can you help me? I want make script, where i use inputbox. It display Inputbox, but i need, that this input box only shows and was inactiv, till i click on them. Is it possible? Default when i make script, if the input box shows, is immediately displayed and other windows are inactive. But i need it oposite. thanke you Link to comment Share on other sites More sharing options...
NELyon Posted July 25, 2006 Share Posted July 25, 2006 InputBox("Title", "Imput Box Test", "") WinSetState("Title", "", @SW_SHOWNOACTIVATE) PS: This is scripts/scraps. This goes in support Link to comment Share on other sites More sharing options...
danusko Posted July 26, 2006 Author Share Posted July 26, 2006 InputBox("Title", "Imput Box Test", "") WinSetState("Title", "", @SW_SHOWNOACTIVATE) PS: This is scripts/scraps. This goes in support Thanke you, but i try this and it doesnt works. It can be because i havn´t autoit instaled? If yes, is anything, what can i do? I want, that this funciont works. F.e. copy any autoit files somewhere or so? Do you know please? F.e. i use GUI, but i need define path to the GUI files and it works. thanx Link to comment Share on other sites More sharing options...
rambo3889 Posted July 26, 2006 Share Posted July 26, 2006 (edited) Not to be rude but you cant use a autoit script without autoit installedOnly autoit executabels is usable without autoit installedEditIt can be because i havn´t autoit instaled?If yes, is anything, what can i do?Yes install autoit and make a new script and then paste codemysters script into yours and compile the script Edited July 26, 2006 by rambo3889 My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
danusko Posted July 26, 2006 Author Share Posted July 26, 2006 but i cant install it because i am in work and i dont have a permission but i like this program and i want it use in work too. Link to comment Share on other sites More sharing options...
Daniel W. Posted July 26, 2006 Share Posted July 26, 2006 start it with au3exe --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
Paulie Posted July 26, 2006 Share Posted July 26, 2006 (edited) @danusko Go home, copy script save it, compile it, burn to CD/Flash drive/USB stick, bring to work, use script Simple as that How'd you expect to use a '.au3' filetype without installing autoit? Edited July 26, 2006 by Paulie Link to comment Share on other sites More sharing options...
Helge Posted July 26, 2006 Share Posted July 26, 2006 Thanke you, but i try this and it doesnt works. It can be because i havn´t autoit instaled?If yes, is anything, what can i do? I want, that this funciont works. F.e. copy any autoit files somewhere or so?Do you know please? F.e. i use GUI, but i need define path to the GUI files and it works. thanxHave you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do. Link to comment Share on other sites More sharing options...
Paulie Posted July 26, 2006 Share Posted July 26, 2006 Have you ever tried surfing the internet with a milk-carton ?Hey!Whats wrong with surfing the net with a milk carton?! Link to comment Share on other sites More sharing options...
Skrip Posted July 26, 2006 Share Posted July 26, 2006 (edited) Hey!Whats wrong with surfing the net with a milk carton?! The orange juice box works alot better...More stability Edited July 26, 2006 by Firestorm [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 26, 2006 Share Posted July 26, 2006 You cannot change the active status of the InputBox through code. That would have to be modified in the actual AutoIt code. The script stops while waiting for the InputBox. You could try making your own window. You can download a Zip file containing all the necessary files for AutoIt and can run things manually. You don't need the installer, it just adds registry entries to have Windows run the au3 files. Link to comment Share on other sites More sharing options...
danusko Posted July 27, 2006 Author Share Posted July 27, 2006 ok, so if i understand good, it isnt possible make Input box inactive, because autoit cant it? I belived, it is possible it is a shame Exactly what i need is: I have in clipboard a lot of numbers. This numbers represent identificator of any sites (i use IE). When i click on Input box OK, it is loaded a site and then show inputbox again. But i need from the site/window read some things from tool tip of links on this site. This goes only when i click on IE (because this window have to be active) and then go with mouse cursor on tool tip. Now it going so, that i have to click on IE after each OK on Input box. And it is a lot of silly clicks. Knows anyone, how can i do that? Link to comment Share on other sites More sharing options...
Helge Posted July 27, 2006 Share Posted July 27, 2006 ok, so if i understand good, it isnt possible make Input box inactive, because autoit cant it?I belived, it is possible it is a shameExactly what i need is:I have in clipboard a lot of numbers. This numbers represent identificator of any sites (i use IE). When i click on Input box OK, it is loaded a site and then show inputbox again. But i need from the site/window read some things from tool tip of links on this site. This goes only when i click on IE (because this window have to be active) and then go with mouse cursor on tool tip. Now it going so, that i have to click on IE after each OK on Input box. And it is a lot of silly clicks. Knows anyone, how can i do that?Read a little bit about the GUI-functions in your helpfile...play a little bit with themand you should get what you want. Link to comment Share on other sites More sharing options...
danusko Posted July 28, 2006 Author Share Posted July 28, 2006 ok i try it thanx Link to comment Share on other sites More sharing options...
danusko Posted July 28, 2006 Author Share Posted July 28, 2006 (edited) So this is my result with gui, but it doesnt work, like it worked with inputbox. I cant make work "do" and "while" together and it seems, it must use both. expandcollapse popupAutoItSetOption ( "SendKeyDelay", 50 ) #include "d:\Documents and Settings\danusko\My Documents\My documents\docs\AutoIt\Include\GUIConstants.au3" Local $i = 1000 Local $j = 1000 Local $z = 1000 Local $y = 1000 dim $a[$i] dim $b[$j] dim $c[$z] dim $m dim $ok dim $cancel $sp = InputBox("Skreèped ","Zdaj è. sp: ","90410", "", 200, 200, 750, 200) if @error = 1 then exit ; ------------ start 1. stlpec ----------------- WinActivate("Microsoft Excel", "") $i = 0 do $i = $i + 1 send ("^c") send ("{down}") $a[$i] = ClipGet() until ( $a[$i] < 1);************* dal ANO $n = $i $m = $i $z = $i $y = $i ; ------------ end 1. stlpec ----------------- MsgBox(262145, "2. stlpec", "" ) ; ------------ start 2. stlpec ----------------- WinActivate("Microsoft", "") $j = 0 do $j = $j + 1 send ("^c") send ("{down}") $b[$j] = ClipGet() until ( $b[$j] < 1);************* dal ANO ; ------------ end 2. stlpec ----------------- MsgBox(262145, "3. stlpec", "" ) ; ------------ start 3. stlpec ----------------- WinActivate("Microsoft", "") do $z = $z - 1 send ("^c") send ("{down}") $c[$z] = ClipGet() until ( $z = 0 );************* dal ANO ; ------------ start 3. stlpec ----------------- ; doplnenny z rep1 - natahuje gauss OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO $n=0 $i = $i-1 do $n = $n + 1 $k = $n + 1 sleep (300) sleep(2000) WinWAIT("GAUSS", "") WinActivate("GAUSS", "") WinWAIT("GAUSS", "") Run ( @Comspec & " /c start http://link" & $a[$n] & "link" ) sleep(300) ToolTip("/" & $n & "z" & $i, 30, 690) until $n = $m-1 ;pokracuje origi $n = $n + 1 do $m = $m - 1 $k = $m + 1 $z = $z + 1 $y = $z - 1 $n = $n - 1 sleep (300) ; ClipPut ($a[$k]) ClipPut ($a[$m]) ToolTip("/" & $m & "/" & $a[$n] & "/" & $b[$m] & "/" & $c[$z], 5, 350) ; ----------------------------------- If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000 GuiCreate("Ete " & $m, 170, 133,(@DesktopWidth-370)/2, (@DesktopHeight-333)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_EX_TOPMOST) $ok = GuiCtrlCreateButton("OK", 10, 80, 90, 40) GUICtrlSetState( -1, $GUI_DEFBUTTON) $cancel = GuiCtrlCreateButton("Zru", 120, 100, 40, 20) $Label_3 = GuiCtrlCreateLabel("Teraz: " & $a[$m], 10, 10, 150, 20) $Label_4 = GuiCtrlCreateLabel("TerazII: " & $b[$m], 10, 30, 150, 20) $Label_5 = GuiCtrlCreateLabel("TerazIII: " & $c[$z], 10, 50, 150, 20) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop ; Case Else Case $msg = $ok ;;; ; EndSelect ; ------------------------------------------------------- ClipPut ($a[$m]) WinActivate("GAUSS", "") WinWAIT("GAUSS", "") send("{BS}") send ("^f") WinWaitActive ("Find", "", 1) WinActivate("Find", "") ; send ($sp) ClipPut ($sp) send ("^v") send ("{enter}") send ("{tab}") send ("{enter}") send ("{down}") ; sleep (200) WinWaitActive ("GAUSS - Prezeranie", "") ; ToolTip("/" & $m & "/" & $a[$n], 5, 620) ClipPut ($a[$k]) Case $msg = $cancel Exit ; WEnd EndSelect wend until $m = 1 exit what is wrong? please can you help me? thanx Edited July 28, 2006 by danusko 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