Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Complex SendInput script


  • Please log in to reply
2 replies to this topic
Vanessa
  • Members
  • 3 posts
  • Last active: Nov 24 2015 07:34 AM
  • Joined: 25 Oct 2015

Hey. I'm currently breaking my head trying to make a script to follow these instructions when I press numpad8:

  1. Send this message: t/me puts her index and middle fingers over 's carotid artery as she fixes her gaze upon her wristwatch, checking his pulse.
  2. Move 78 characters to left, so I can type the character's name on the 's. And...
  3. ...when I press enter, send this message: t/dolow What is your pulse rate? (60-100 is normal) and press enter again.

The step 1 and 2 are working fine, my problem is this enter thingy. I don't know if I should put KeyWait or something.

 

The current script is as follows:

numpad8:: 
SendInput t/me puts her index and middle fingers over 's carotid artery as she fixes her gaze at her wristwatch, checking his pulse.{left 78}
if(GetKeyState("Enter","P")){
Sleep, 2000
SendInput t/dolow What is your pulse rate? (60-100 is normal){enter}
}
return

Yes, I know this is completely wrong, I'm a beginner, however it's my last edit.

 

Any help is appreciated! Thanks in advance. :)



dmg
  • Members
  • 2395 posts
  • Last active: Nov 04 2015 06:46 AM
  • Joined: 19 Nov 2010

Greetings Vanessa. Nice sunglasses. They really bring out the brown patches in your fur.

 

Looking at your code I would say KeyWait is your best bet. try this:

numpad8::
 {
   SendInput t/me puts her index and middle fingers over 's carotid artery as she fixes her gaze at her wristwatch, checking his pulse.{left 78}
   KeyWait, Enter, D
   Sleep, 2000
   SendInput t/dolow What is your pulse rate? (60-100 is normal){enter}
 }
return

"My dear Mr Gyrth, I am never more serious than when I am joking."
~Albert Campion

-----------------------------------------------------------------------------------------------
Website | Demo scripts | Blog | External contact

SkrillexAkaCraft
  • Members
  • 45 posts
  • Last active: Jan 04 2018 06:02 PM
  • Joined: 04 Feb 2015

for the sendinput i got a bit of a better code its used to type words like let us say you play a game wich supports a chatbox and you want to sell stuff but dont want to keep pressing the enter and up key nor typing the whole line again you can use this 

Inputbox:
Gui, Input:-Caption
Gui, Input:Add, Text, x0 y0 w443 h40 +BackgroundTrans gUImove4
Gui, Input:Add,  Picture, x468 y4  +BackgroundTrans gclose4 , Lib\Script_Images\exitcross.png
Gui, Input:Add, Picture, x0 y0 +Background, Lib\Script_Images\VIIPaydayscript.png
Gui, Input:Add, Text, x76 y10 w130 h50 +BackgroundTrans cWhite, Type What you want to spam each 40 seconds!
Gui, Input:inputbox, MyVariable, Text to be typed
Gui, Input:Add, Picture, x25 y115 w80 h30 +BackgroundTrans gBEGINBOT, Lib\Script_Images\start.png
Gui, Input:Add, Picture, x109 y115 w80 h30 +BackgroundTrans gEXIT, Lib\Script_Images\stop.png
Gui, Input:Font, cWhite  s10 Q5 , Century Gothic
Gui, Input:Add, Text, x220 y74 cWhite BackgroundTrans vT1, 00:00:00
Gui, Input:Font, cWhite  s10 Q5 , Century Gothic
Gui, Input:Add, Text, x120 y100 w250 cWhite +Center BackgroundTrans vgui_status, Initiating
Gui Input:+AlwaysOnTop +ToolWindow
Gui, Input:Show, w500 h147
Return
 
uiMove4:
PostMessage, 0xA1, 2,,, A 
Return
 
Close4:
Gui, Input:Destroy
return[code]
 
;Part 2 |
;       V

send {Enter}
sleep 200
Gui, Submit
Send %Type%{Enter}
sleep 1000