Jump to content

opening programs


Recommended Posts

ok I can not get this to open a program Im sure i have it close but cant seem to get it and yes the spaces are temp as i have to put in anoter keystroke to start recording.

CODE
#cs ----------------------------------------------------------------------------

AutoIt Version: 3.2.2.0

Author: XxFxX

Script Function: cam start up and rules

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

;;;; Global Pause Start ;;;;

Global $Paused

;;;; Global Pause End ;;;;

;;;; Hotkey Settings Start ;;;;

HotKeySet("{HOME}", "TogglePause")

HotKeySet("{END}", "Terminate")

;;;; Hotkey Settings End ;;;;

;;;; Script Global Sleep Start ;;;;

While 1

Sleep(900)

WEnd

;;;; Script Global Sleep End ;;;;

;;;; Toggle Pause and Splash On/Off Start ;;;;

Func TogglePause()

$counter=2

While mod($counter,2)=0

$counter =$counter +1

Sleep(7000)

Execute ("C:\Program Files\CamStudio\Recorder.exe")

Sleep(70000)

Send("{enter}")

Send("rules line 1}")

Send("{enter}")

Sleep(1000)

Send("{enter}")

Send("{rules line 2}")

Send("{enter}")

Sleep(1000)

Send("{enter}")

Send("{rules line 3}")

Send("{enter}")

Sleep(1000)

Send("{enter}")

Send("{rules line 4}")

Send("{enter}")

WEnd

EndFunc

;;;; Toggle Pause and Splash On/Off End ;;;;

;;;; End/Close/Terminate Function Start ;;;;

Func Terminate()

Exit

EndFunc

;;;; End/Close/Terminate Function End ;;;;

Edited by xxfxx
Link to comment
Share on other sites

ok I can not get this to open a program Im sure i have it close but cant seem to get it and yes the spaces are temp as i have to put in anoter keystroke to start recording.

Change the following:

; Execute("C:\Program Files\CamStudio\Recorder.exe")
     ShellExecute("C:\Program Files\CamStudio\Recorder.exe")oÝ÷ ØL^^rïz»ljËkx-¡©ÀºÚµìi­ë,Úׯj[µë"¶X¤y«­¢+ØÀÌØíØõáÕÑ ÅÕ½ÐìÀÌØí¬ÄÅÕ½Ðì¤

ShellExecute() will run a program.

:rolleyes:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Change the following:

; Execute("C:\Program Files\CamStudio\Recorder.exe][ÝÊBÚ[^XÝ]J  ][ÝÐÎÌLÔÙÜ[H[ÉÌLÐØ[TÝY[ÉÌLÔ6÷&FW"æWRgV÷C²oÝ÷ ØL^rë^rïz»ljËkx-¡©ÀºÚµìi­ë,Úׯj[µë"¶X¤y«­¢+ØÀÌØíØõáÕÑ ÅÕ½ÐìÀÌØí¬ÄÅÕ½Ðì¤

ShellExecute() will run a program.

:rolleyes:

yup that was what i was looking for ty vm.. the sad part is I had already tryed that comand and had the string wrong lol now i feal like an ideot.. i had it right the first time lol..

Ty .

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...