miloOmelo Posted May 27, 2013 Share Posted May 27, 2013 (edited) expandcollapse popup#include <Misc.au3> Global $hDLL = DllOpen("user32.dll") HotKeySet("{SPACE}","RSendHold") HotKeySet("{F9}", "Terminate") Send("{NUMLOCK off}") While 1 Sleep(10) WEnd Func Terminate() DllClose($hDLL) Exit EndFunc Func RSendHold() HotKeySet("{SPACE}","") Local $x For $x=0 to $x=1 If _IsPressed("20", $hDLL) Then Send("{SPACE UP}") EndIf If _IsPressed("26", $hDLL) Then Send("{Q down}") Send("{NUMPADADD down}") Send("{UP down}") Send("{Q up}") Send("{NUMPADADD up}") Send("{UP up}") Else Send("{SPACE UP}") HotKeySet("{SPACE}","RSendHold") ExitLoop EndIf Next EndFunc DllClose($hDLL) shouldnt the above script be able to write at least one or couple Q or + characters on my notepad opened and focused when i press spacebar key and then up key ? all i get is spacebar locked until script is ended - terminated and at notepad none of the following: Q , + , when spacebar and up arrow is pressed. (id apreciate if u post code use simple functions) regards , thanks in advance Edited May 27, 2013 by miloOmelo Link to comment Share on other sites More sharing options...
JohnOne Posted May 27, 2013 Share Posted May 27, 2013 For $x=0 to $x=1 That says to me For $i = 0 to 0 miloOmelo 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
miloOmelo Posted May 27, 2013 Author Share Posted May 27, 2013 (edited) For $x=0 to $x=1 That says to me For $i = 0 to 0 , "For $x=0 to 1" corrected thanks, however still no Q or + characters and spacebar still stuck after first spacebar is clicked ( p.s i know they are not virtually send cause i made similar script yesterday and it was writing down characters ok using the DOWN or UP on send ) Edited May 27, 2013 by miloOmelo Link to comment Share on other sites More sharing options...
JohnOne Posted May 27, 2013 Share Posted May 27, 2013 Once the error in your script is corrected, it works fine for me. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
miloOmelo Posted May 27, 2013 Author Share Posted May 27, 2013 (edited) same result, spacebar locked and no Q or + Once the error in your script is corrected, it works fine for me. same result, spacebar locked and no Q or + Edited May 27, 2013 by miloOmelo Link to comment Share on other sites More sharing options...
JohnOne Posted May 27, 2013 Share Posted May 27, 2013 I imagine it's something you are doing manually, and perhaps the keys are being sent elsewhere. "q+" is written to notepad window every time. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
miloOmelo Posted May 27, 2013 Author Share Posted May 27, 2013 (edited) I imagine it's something you are doing manually, and perhaps the keys are being sent elsewhere. "q+" is written to notepad window every time. ???? all i do manually is open notepad then run the compiled thing and then go to notepad and type space : ---> nothing i complited it and runned it plenty of times Edited May 27, 2013 by miloOmelo Link to comment Share on other sites More sharing options...
JohnOne Posted May 27, 2013 Share Posted May 27, 2013 ???? all i do manually is open notepad then run the compiled thing and then go to notepad and type space : ---> nothing Well if that's all you are doing then your script is acting correctly. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
miloOmelo Posted May 27, 2013 Author Share Posted May 27, 2013 (edited) Well if that's all you are doing then your script is acting correctly. correctly ? what do u mean it types on your notepad q+ and on mine nothing , is that correct ? i know you were full of bs though, thats funny cause u did take a look at it at first and your remark on For $x=0 to $x=1 was decent, i had figured out u were bsing cause the way u even did the remark was exposing you : "For $x=0 to $x=1 That says to me For $i = 0 to 0 " meaning u are doing raugh estimates by checking code from the toilet sit , which is ok but then u went num , thats what happens when u judge from memory or when you are too lazy, i can tell you are one of those people that pretend to be bussy with things, its funny , u are cute , silly but cute Edited May 27, 2013 by miloOmelo Link to comment Share on other sites More sharing options...
JohnOne Posted May 27, 2013 Share Posted May 27, 2013 (edited) It types on my notepad when the correct conditions for it to do so are true. This is your script, surely you know what conditions need to be met. Edited May 27, 2013 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted May 27, 2013 Share Posted May 27, 2013 (edited) i know you were full of bs though, thats funny cause u did take a look at it at first and your remark on For $x=0 to $x=1 was decent, i had figured out u were bsing cause the way u even did the remark was exposing you : "For $x=0 to $x=1 That says to me For $i = 0 to 0 " meaning u are doing raugh estimates by checking code from the toilet sit , which is ok but then u went num , thats what happens when u judge from memory or when you are too lazy, i can tell you are one of those people that pretend to be bussy with things, its funny , u are cute , silly but cute It does not even need a loop. Try to mock if you like, I don't mind, so long as sooner or later you learn to trigger your own script. Edited May 27, 2013 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
czardas Posted May 27, 2013 Share Posted May 27, 2013 For me For $x=0 to $x=1 says For $i=0 to -1, but I have no clue what this is meant to do, or why. operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
miloOmelo Posted May 27, 2013 Author Share Posted May 27, 2013 It does not even need a loop. Try to mock if you like, I don't mind, so long as sooner or later you learn to trigger your own script. try to mock you ? you are so funny , i knew you would come back with a post like this Link to comment Share on other sites More sharing options...
miloOmelo Posted May 27, 2013 Author Share Posted May 27, 2013 (edited) these options lack the ignore button , cause report doesnt cut it edit, found it Edited May 27, 2013 by miloOmelo Link to comment Share on other sites More sharing options...
czardas Posted May 27, 2013 Share Posted May 27, 2013 these options lack the ignore button , cause report doesnt cut it What are you going on about? There's nothing I see here to report, and why would you want to ignore someone who is trying to help you? operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 27, 2013 Moderators Share Posted May 27, 2013 miloOmelo,Now I see why you wanted the "Ignore" information. But I suggest you do not insult long-serving members in that way you have been in this thread. You might find it difficult to get help from others here if you maintain that attitude. Just a word to the wise. 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...
miloOmelo Posted May 27, 2013 Author Share Posted May 27, 2013 (edited) i know where your advices come from stupid, idiot lich moderator , i am aware of idiots like you that all they care about is find a job as forum admins - moderators to lich off of people, u filthy idiot parasite whore miloOmelo, Now I see why you wanted the "Ignore" information. But I suggest you do not insult long-serving members in that way you have been in this thread. You might find it difficult to get help from others here if you maintain that attitude. Just a word to the wise. M23 Edited May 27, 2013 by miloOmelo Link to comment Share on other sites More sharing options...
miloOmelo Posted May 27, 2013 Author Share Posted May 27, 2013 stupid little kid Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 27, 2013 Moderators Share Posted May 27, 2013 miloOmelo, Take a week off to think about how you might change your behaviour to fit in here. And let me give you a clue - speaking like that to a Mod is not the way way to become a long-term member here. M23 czardas 1 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