PilotPen Posted February 24, 2016 Share Posted February 24, 2016 (edited) I have a problem running my script on Win8.1 but its run smoothly on win7. Can anybody help me and tell me what the problem I've been facing ? Here the script : expandcollapse popupGlobal $g_bPaused = False HotKeySet("{HOME}", "ToggleStart") HotKeySet("{ESC}", "Terminate") HotKeySet("{END}", "TogglePause") While 1 Sleep(100) WEnd Func ToggleStart() $g_bPaused = Not $g_bPaused While $g_bPaused Sleep(100) ToolTip('Script is "Started"', 0, 0) While 2 sleep (2000) MouseClick("left",502,535,1) Send ("wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww") Send ("ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss") Send ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") Send ("dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd") sleep (2000) Send ("{ENTER}") sleep (2000) Send ("{ENTER}") sleep (2000) Send ("wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww") Send ("ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss") Send ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") Send ("dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd") send ("{SPACE}") sleep (1000) send ("V") sleep (1000) Wend WEnd ToolTip("") EndFunc Func TogglePause() $g_bPaused = Not $g_bPaused While $g_bPaused Sleep(100) ToolTip('Script is "Paused"', 0, 0) WEnd ToolTip("") EndFunc Func Terminate() Exit EndFunc Then can anyone teach me to run the script only at specific process ? Thanks ! Edited February 24, 2016 by Melba23 Added code tags Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 24, 2016 Moderators Share Posted February 24, 2016 PilotPen, Welcome to the AutoIt forums. When you post code please use Code tags - see here how to do it. Then you get a scrolling box and syntax colouring as you can see above now I have added the tags. And looking at the keys you are spamming I suggest you read the Forum rules before you post again to prevent any future problems. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
PilotPen Posted February 25, 2016 Author Share Posted February 25, 2016 Im spamming on games, its that wrong ? Used to avoid disconnected while afk. Link to comment Share on other sites More sharing options...
iamtheky Posted February 25, 2016 Share Posted February 25, 2016 (edited) If you are not going to do something as basic as click on a link and read it, you probably wont have much fun here. I hope its an FPS and I am getting mad kills on the bot running around in giant squares. Edited February 25, 2016 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
TheSaint Posted February 25, 2016 Share Posted February 25, 2016 2 hours ago, PilotPen said: Im spamming on games, its that wrong ? Used to avoid disconnected while afk. Welcome PilotPen. Like the man said, read the Forum Rules. They make everything perfectly clear and save on going back and forth with conversation about it. Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 25, 2016 Moderators Share Posted February 25, 2016 PilotPen, Quote Im spamming on games As I feared - thread locked. Quote its that wrong ? You appear still not to have read the Forum rules to which I linked you earlier. Please do read them - particularly the bit about not discussing game interaction - before you post again. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts