Jump to content

Paulie

Active Members
  • Posts

    4,886
  • Joined

  • Last visited

  • Days Won

    3

Paulie last won the day on April 21 2015

Paulie had the most liked content!

About Paulie

  • Birthday 03/24/1991

Profile Information

  • Member Title
    Waiting for Misaki Nakahara
  • Location
    Ohio - USA

Recent Profile Visitors

2,100 profile views

Paulie's Achievements

Universalist

Universalist (7/7)

29

Reputation

  1. Well you do have it set to wait for 52 seconds in between each keypress... perhaps you aren't waiting long enough?
  2. Well here's a While Loops crash course: ;While Loop Structure While {Expression} ;. ; Do actions ;. WEnd While loops are used to repeat a block of code several times based on a expression. Expression are conditions that evaluate to Boolean values (True/False) As long as the condition at the top of the loop evaluates to True, everything inside it (between it and the WEnd keyword) will be continuously executed. Hope that helps You can read more about it Here at the Autoit Helpfile!
  3. It seems you were trying to automate a game. You definitely should not post about it again. As it says in the Forum Rules, you're not supposed to ask about that here for many reasons, among them being that it is often a violation of the Terms of Service of many applications, and also because encouraging it generally attracts unsavory clientele to the forum. It's a shame you didn't read the rule before posting.
  4. Why not post what you've tried? It's a lot easier to explain when we can see what you're shooting for.
  5. That would be why there is an entire UDF library called _IE.au3. Look for it in the Helpfile.
  6. Thanks a bunch, I knew there was something I was forgetting about.
  7. Hey gang, So I'm running into a problem. I'm trying to make a GUI with 5 Labels and 2 Inputboxes. 1 of the Inputs is Hidden. I want the user to enter a word, and then i want them to try to type the same word again, but I want the labels to reflect what they type except I want 1 character per label. It's hard to explain lol, Here is a demo that explains my problem. #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode",1) Dim $Label[5] $GUI = GUICreate("Form1", 400, 250, 192, 124) GUISetOnEvent($GUI_EVENT_CLOSE, "Quit") $Input = GUICtrlCreateInput("", 72, 192, 129, 21) GUIctrlSetState(-1,$GUI_HIDE) GUICtrlSetLimit(-1,5) GUICtrlSetOnEvent(-1, "Compare") For $x = 0 to 4 $Label[$x] = GUICtrlCreateLabel("", 72+40*$x, 136, 36, 17) Next $Compare = GUICtrlCreateInput("",200,200, 150,17) GUICtrlSetLimit(-1,5) GUICtrlSetOnEvent(-1, "Start") GUISetState(@SW_SHOW) While 1 Sleep(100) ToolTip("Enter a 5-letter word in the box and push ENTER") WEnd Func Start() ToolTip("Now that the labels work, the GUI is unresponsive"&@CRLF&"Notice, you can't close the window"&@CRLF&"And Pressing ENTER doesnt trigger OnEvent") While 1 ControlFocus($GUI,"", $Input) $Array = StringSplit(GuiCtrlRead($Input),"") For $x = 0 to $Array[0]-1 IF GUICtrlRead($Label[$x]) <> $Array[$x+1] Then GUICtrlSetData($Label[$x], $Array[$x+1]) EndIf Next For $x = 0 to 4 If $x >= UBound($Array)-1 and GUICtrlRead($Label[$x]) <> "_" then GUICtrlSetData($Label[$x], "_") EndIf Next WEnd EndFunc Func Quit() Exit EndFunc Func Compare() MsgBox(0,"", "Comparing: " &@CRLF& GuiCtrlRead(@GUI_CtrlId) &@CRLF& GuiCtrlRead($Compare)) EndFunc Any ideas on how to make this work correctly?
  8. Guys, guys, I don't think he's asking for a keylogger. I think he wants an input control so users of his hotkey program could set a hotkey by simply clicking in a box and pressing a key The hotkey method mentioned above is inefficient, because he'd have to make a function for every possible keypress combination (or at least a hotkeyset() for it) Basically, he is looking specifically for (also by Yashied)
  9. No, there is no Microsoft API that comes built into Windows for calling a phone. You will need to use a 3rd party VOIP service like skype for sure.
  10. The timer is "reset" when the $Timer variable is reassigned with TimerInit() when the While...Wend loop repeats. As you have written it, Step 2 is decently complex. Perhaps you could provide up an example of the References.txt file you are reading from, and the numbers you are trying to pull. Maybe adding this will make it a little better? $Key = "ABCDEF" $K = 0 Dim $Inputs[2][18] While $K < 17; Check 17 times $Timer = TimerInit() ;Start/Restart a timer Do Sleep(1000) Tooltip("Checking File In: "&Round(((1000*60*5)-TimerDiff($Timer))/1000,2)&" seconds",0,0) Until TimerDiff($Timer) >= 1000*60*5 ;5 Minutes $K+=1 CheckFile($K) WEnd Func CheckFile($Increment) $Source = FileOpen("C:\SegFiles\Automate\Reference.txt", 0) ;make sure the file is updated. ;Code to pull out the values from the text file goes here $Value = "foo_"&$Increment ;== $Inputs[1][$Increment] = $Value ConsoleWrite(@CRLF&"$Inputs[1]["&$Increment&"] = "&$Value) FileClose($Source) Endfunc
  11. I don't fully understand what the heck you're doing, but I know I would structure it more like this: $Key = "ABCDEF" While 1 $Timer = TimerInit() ;Start a timer Do Sleep(1000) Tooltip("Checking File In: "&Round(((1000*60*5)-TimerDiff($Timer))/1000,2)&" seconds",0,0) Until TimerDiff($Timer) >= 1000*60*5 ;5 Minutes CheckFile() WEnd Func CheckFile() $Source = FileOpen("C:\SegFiles\Automate\Reference.txt", 0) ;Code to check the file for whatever you need ;Code to update array FileClose($Source) Endfunc If you explained more clearly what you were doing with the file, I could help more.
  12. If you want to display a value that changes as it changes, a MsgBox is not the way to go. Opening a messagebox pauses the execution of the script until the box times out or is closed. Consider using the Tooltip() function, or designing a GUI.
  13. Yeah, and you can have a car in any color you want, as long as it's black. No but seriously, the code layout may be flexible, but the syntax is way more picky than autoit.
  14. This is pretty much exactly what I wanted haha. Thanks.
  15. So I'm making a program that gets the information on TV series. I plan on using it to automatically modify the file names and file structure of my downloaded collection Anime and TV shows to an IMDB standard. <Show Name>\Season <Season#>\<Show Name> - S<Season#>E<Episode#> - <Episode Title>.<Extension> Example: Soul Eater\Season 1\Soul Eater - S01E01 - Soul Resonance- Soul Eater, Becoming a Death Scythe_.mkv TVDB is an open television show database, and seems pretty comprehensive I would like to use it to get release years and episode names. However I was wondering if someone could help explain to me the best way to get and parse the information. I'm not familiar with using XML API so as of now the only way I know how to go about it would be to parse the raw HTML page sources for the information. Thanks
×
×
  • Create New...