Theva Posted June 18, 2019 Share Posted June 18, 2019 Hi, im new here... please refer to my code below, i just want to add an edit box for the sleep function. for more details if i run this i want this program to show a text box which can edit the looping time interval. anyone can help me? #include <IE.au3> HotKeySet("^!p", "_Pause") $Paused = 0 $oIE = _IECreate("www.google.nl") $IEhwnd = _IEPropertyGet($oIE, "hwnd") __IENavigate($oIE, "www.google.nl", 0, 0x800) __IENavigate($oIE, "www.google.nl", 0, 0x800) While 1 If WinExists($IEhwnd) Then WinActivate($IEhwnd) Else ExitLoop EndIf Sleep(5000) Send("^{TAB}") WEnd Func _Pause() $Paused = Not $Paused While $Paused Sleep(100) WEnd EndFunc New.au3 Link to comment Share on other sites More sharing options...
Nine Posted June 18, 2019 Share Posted June 18, 2019 Do you mean something like this : #include <IE.au3> HotKeySet("^!p", "_Pause") $Paused = 0 $oIE = _IECreate("www.google.nl") $IEhwnd = _IEPropertyGet($oIE, "hwnd") __IENavigate($oIE, "www.google.nl", 0, 0x800) __IENavigate($oIE, "www.google.nl", 0, 0x800) While 1 If WinExists($IEhwnd) Then WinActivate($IEhwnd) Else ExitLoop EndIf ShowCountDown(5) Send("^{TAB}") WEnd Func _Pause() $Paused = Not $Paused While $Paused Sleep(100) WEnd EndFunc ;==>_Pause Func ShowCountDown($nSeconds) SplashTextOn("Timer Count", $nSeconds & " sec remaining", 250, 50) For $i = $nSeconds - 1 To 0 Step -1 Sleep(1000) ControlSetText("Timer Count", "", "Static1", $i & " sec remaining") Next SplashOff() EndFunc ;==>ShowCountDown When posting code, use <> (just before emoticon). “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Theva Posted June 20, 2019 Author Share Posted June 20, 2019 Hi, exactly what i need.. thank you very much for your help. appreciate it. :) Link to comment Share on other sites More sharing options...
Developers Jos Posted June 20, 2019 Developers Share Posted June 20, 2019 Moved to the appropriate forum. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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