
bigred
Active Members-
Posts
99 -
Joined
-
Last visited
Profile Information
-
Location
on.ca
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
bigred's Achievements

Wayfarer (2/7)
0
Reputation
-
I'm trying to click a button on a pop-up from a game server console. I'm trying to detect that the pop-up is present, then press the button. When the script runs the Clicked message box pops up, but the button doesn't get pressed. If WinExists ("[CLASS:#32770]") Then ControlClick("[CLASS:#32770]", "", "Button1") MsgBox(0, "", "Clicked!") Else MsgBox(0, "", "Not clicked!") Exit EndIf
-
Oh I see. I thought that they were basically the same thing. So from what I read in that other thread, the short answer is no, they can't be interacted with? (Without DLL calls, which I think are way over my head.) All that I need to do is read the item list, and select each item one at a time. When each item is selected, it opens a separate window that has normal controls which I already know how to interact with. I guess I *could* use key sends to get the job done, but thats a faux pas.
-
Whats wrong with this? Or is there still no support for TreeView? ControlListView("NOD32 2.5 Control Center", "", "SysTreeView321", "SelectAll") Running version v3.1.1 of AutoIt.
-
Sorry, I didn't mean to sound condescending. I thought that you needed to have AutoIt installed to run an un compiled script. How else does the system know what to do with what is essentially a text file? What the U3 platform does is create a mobile system with relative paths. You can have a U3 program (for example Skype) installed and when you run it one time when the Flash drive is drive F and the next time when it is drive J it doesn't matter. U3 is becoming a sort of mobile environment. I walk up to your Windows PC plug in my flash drive and my Email, Passwords, Documents, Bookmarks, etc are all there with me along with the programs I use to access them. There is a video on the main site that explains U3 better. I can't link it dirrectly but if you go to the main site www.U3.com you can click on the image that said "See How It Works".
-
Have you no imagination? Ok, first one off the top of my head. You've written a script that you need to use on multiple computers that are not on a shared network. You can load the script onto your U3 FlashDrive and take the device with you from site to site. Open the script make any changes needed, run, done... No need to compile the script down on your laptop after you've made changes, then transfer it to the PC you're working on, while also dealing with security issues of transferring and running an exe. What really has me interested is using an AutoIt script to automate actions upon the loading of the device.
-
Have you guys ever thought about making a U3 compatible version of AutoIt? I know that you could just compile the script and run it that way, but the ability to execute a non compiled script from a U3 device could have some interesting possibilities. Heres the main U3 site. www.u3.com Oh, forgot to mention that there is a free SDK. https://www.u3.com/developers/user/registration.aspx
-
I'm working on this little timer app. I'm not really much of a programmer but I have done a fair amount with VB6 in the past. What I really was looking for was the Timer functionality of VB6. Whats nice about it is that you can let the timer run in the backgroud while your code executes other things. The problem I'm having is that while my program is waiting for 1 minute to pass with the Sleep command running on a 1 second time out loop, my program is unresponsive until the loop completes. This is what I have so far. Obviously nowhere near done, but since I hit the big problem of the program being unresponsive while the timer is counting up in the while loop I figuered I'd see what you guys had to say. #include <GuiConstants.au3> GuiCreate("Timer", 160, 70) $hour = "00" $min = "00" $sec = "00" GUICtrlCreateLabel("Timer:", 3, 2) GUICtrlCreateLabel($hour & ":" & $min & ":" & $sec, 36, 2) $Strt_Btn = GuiCtrlCreateButton("Start", 10, 40, 70) $Stop_Btn = GuiCtrlCreateButton("Stop", 80, 40, 70) GuiSetState(@SW_SHOW) $count = 1 While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE GUIDelete() Exit Case $msg = $Strt_Btn While $count <= 6 Sleep (1000) $count = $count + 1 $sec = $sec + 1 If $sec = 60 Then $min = $min + 1 GUICtrlCreateLabel($hour & ":" & $min & ":" & $sec, 36, 2) Else If $sec <= 9 Then $sec = "0" & $sec GUICtrlCreateLabel($hour & ":" & $min & ":" & $sec, 36, 2) Else GUICtrlCreateLabel($hour & ":" & $min & ":" & $sec, 36, 2) EndIf EndIf Wend Case $msg = $Stop_Btn GUIDelete() Exit EndSelect WEnd
-
No, pretty much the same, if not slighty worse. But thank you for cleaning up my code. Your's is much nicer!
-
Is this as good as I can make it? On the frist 'run' the windows is not displayed at all, but the second time through after the sleep it is displayed for a few seconds. Is there any other way to hide the window? Is my code ok? AutoItSetOption ( "RunErrorsFatal", 1 ) Opt('WinWaitDelay', 10) $run = Run("Control.exe NicConfigSvc.Cpl", "C:\WINDOWS\system32") $winchk = WinWait("Internal Network Card Power Management", "", 5) WinSetState("Internal Network Card Power Management", "", @SW_HIDE) Opt('WinWaitDelay', 250) ControlCommand("Internal Network Card Power Management", "", "Button2", "Check", "") ControlClick("Internal Network Card Power Management", "", "Button7") ControlClick("Internal Network Card Power Management", "", "Button8") Sleep (5000) Opt('WinWaitDelay', 10) $run = Run("Control.exe NicConfigSvc.Cpl", "C:\WINDOWS\system32") $winchk = WinWait("Internal Network Card Power Management", "", 5) WinSetState("Internal Network Card Power Management", "", @SW_HIDE) Opt('WinWaitDelay', 250) ControlCommand("Internal Network Card Power Management", "", "Button1", "Check", "") ControlClick("Internal Network Card Power Management", "", "Button7") ControlClick("Internal Network Card Power Management", "", "Button8") Exit
-
Why is this not hiding the window? Actually come to think of it I don't think I've ever got the @SW_HIDE command to work. Is it intended for something else? Is there anyone method for hiding a window? This is a little script that turns off the power managment feature of my Dell D610's Ethernet adaptor, and then turns it back on. AutoItSetOption ( "RunErrorsFatal", 1 ) $run = Run("Control.exe NicConfigSvc.Cpl", "C:\WINDOWS\system32", @SW_HIDE) $winchk = WinWait("Internal Network Card Power Management", "", 5) ControlCommand("Internal Network Card Power Management", "", "Button2", "Check", "") ControlClick("Internal Network Card Power Management", "", "Button7") ControlClick("Internal Network Card Power Management", "", "Button8") Sleep (5000) $run = Run("Control.exe NicConfigSvc.Cpl", "C:\WINDOWS\system32", @SW_HIDE) $winchk = WinWait("Internal Network Card Power Management", "", 5) ControlCommand("Internal Network Card Power Management", "", "Button1", "Check", "") ControlClick("Internal Network Card Power Management", "", "Button7") ControlClick("Internal Network Card Power Management", "", "Button8") Exit
-
This is actually a pretty cool little script. In my work I use a lot of remote management programs, this script could be pretty useful with some additions like file transfers.
-
Ha, thats cool! Thank you.
-
Is there a way to get AutoIt to delete its self on exit? I have a complied script that I would like to auto delete its self when a button is pressed, or the script finishes execution.
-
Haha, oops I must be tired. *posting in other forum...*
-
Update: The script is now done purely in AutoIt3. I finally started using the GUI features and I love it. Anyone have any suggestions not this problem?