Jump to content

Hackerr

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

45 profile views

Hackerr's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. #include <Misc.au3> ; HotKeySet("!a", "Main") ;wait for ALT-a keystroke, then go to Main() While 1 ;loop forever to wait for the keypress Sleep(1000) ;no need to kill the CPU WEnd Func Main() HotKeySet("!a") ;remove the hotkey so we don't jump around once we have started ;you start your script here $checkWin = WinExists ("Notepad") if $checkWin=1 then blurb() EndFunc Func blurb() $Stop=True While 1 If _IsPressed(11) Then $Stop= False Switch $Stop Case True sleep(1000) send("blurb") Case False then ExitLoop EndSwitch WEnd Call("Start()") EndFunc Func Start() $Stop=False $quit=False While 1 ;loop forever to wait for the keypress Sleep(1000) ;no need to kill the CPU if _IsPressed(14) Then $Stop=True Switch ($Stop) case True then ExitLoop EndSwitch if _IsPressed(11) And _IsPressed(12) then $quit=True Switch ($quit) case True then Exit EndSwitch WEnd Call("blurb()") EndFunc I seem to be able to get out of the first loop, the one that keeps saying blurb, but after that it seems to either not go to the start function, or the start function does something wrong.
  2. ok, then one more thing, do you think you could tell me why this loop will stop but it doesn't start up again??? #include <Misc.au3> ; HotKeySet("!a", "Main") ;wait for ALT-a keystroke, then go to Main() While 1 ;loop forever to wait for the keypress Sleep(1000) ;no need to kill the CPU WEnd Func Start() While 1 ;loop forever to wait for the keypress Sleep(1000) ;no need to kill the CPU if _IsPressed(14) Then test() WEnd EndFunc Func Main() HotKeySet("!a") ;remove the hotkey so we don't jump around once we have started ;you start your script here $checkWin = WinExists ("whatever window") if $checkWin=1 then test() EndFunc Func test() $Stop=True While 1 If _IsPressed(11) Then $Stop= False Switch $Stop Case True sleep(1000) send("blurb") Case False then ExitLoop EndSwitch WEnd Start() EndFunc
  3. i don't get this error, i have the text exactly as it is in the definition syntax. C:Users..... : ==> Missing separator character after keyword.: Send("{TAB}" [,flag=1]) Send("{TAB}" [,flag^ ERROR >Exit code: 1 Time: 0.208
  4. so basically your saying if it doesnt have a control class, i cant use Controlsend with it??
  5. Could someone explain what each result means? I don't really understand it and I can't find any guides here is an example return: >>>> Window <<<< Title: Posting New Topic - AutoIt Forums - Mozilla Firefox Class: MozillaWindowClass Position: -8, -8 Size: 1936, 1056 Style: 0x17CF0000 ExStyle: 0x00000100 Handle: 0x000000000042312C >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<< Position: 1057, 519 Cursor ID: 15 Color: 0xE3EBF2 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< >>>> Hidden Text <<<< (note: i am trying to find the ControlID of an object so i can use the ControlSend function)
  6. could it be the "11+31"? i meant it to be control+1
  7. heres the code i am using While 1 If _IsPressed(11+31) Then $Stop= False Switch $Stop Case True ...... Case False then ExitLoop EndSwitch WEnd
  8. oh, i see thanks =)
  9. so i get this error, what does it mean and how do i fix it?? C:Users..... : ==> Unknown function name.: If _IsPressed(11+31) Then $Stop= False If ^ ERROR >Exit code: 1 Time: 10.938
×
×
  • Create New...