Halkclaw Posted October 21, 2012 Share Posted October 21, 2012 (edited) I tried running this, but it doesn't work anymore (it did used to) At line 4 it says Type Mismatch is there a way to fix this script so it works again? I can't find anything on google, and have been searching for like 2 hours, and still searching. The script is ultimatly supposed to Press F10, F11, and F12 rapidly, and keep doing it until i stop the script myself. Here is the script i use: program TFGmage; begin repeat KeyDown(121); Sleep(10); KeyUp(121); KeyDown(122); Sleep(8); KeyUp(122); KeyDown(123); Sleep(10); KeyUp(123); until(False); end. Edited October 21, 2012 by Halkclaw Wrong Code was typo Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted October 21, 2012 Share Posted October 21, 2012 please do not use the "Sleep" function for any gaming macos. Use a function like "Wait" Wait runs its value as milliseconds so for 1 second you would use: Wait(1000); And i rember Freddy saying something about the KeyDown function isnt too great right now or something? Quote Link to comment Share on other sites More sharing options...
Halkclaw Posted October 21, 2012 Author Share Posted October 21, 2012 So like this, and did Freddy say anything about it being fixed? program TFGmage; begin Repeat KeyDown(121); Wait(1000); KeyUp(121); KeyDown(122); Wait(800); KeyUp(122); KeyDown(123); Wait(1000); KeyUp(123); until(False); end. Quote Link to comment Share on other sites More sharing options...
LordJashin Posted October 21, 2012 Share Posted October 21, 2012 (edited) Those should work I do not see why not. But you could this: The numbers e.g. 800, and 1000. If this still does not work try setting them to 0. [scar] program TFGmage; begin Repeat PressVKeyEx(VK_F10, 1000); PressVKeyEx(VK_F11, 800); PressVKeyEx(VK_F12, 800); until(False); end. [/scar] This is just another way to accomplish that same thing in SCAR. Also in order to display SCAR Scripts in posts use [-scar][-/scar] tags in posts without the dashes Edited October 21, 2012 by LordJashin Quote Link to comment Share on other sites More sharing options...