Scripty Posted November 13, 2012 Share Posted November 13, 2012 while 1 if mousedown("left") then sleep(3000) mouseclick("right") wend why can't i make something like that it will make my work much easyer thx Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 13, 2012 Moderators Share Posted November 13, 2012 Scripty,why can't i make something like thatYou can - look at _IsPressed. M23 Scripty 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...
Scripty Posted November 13, 2012 Author Share Posted November 13, 2012 big thx Link to comment Share on other sites More sharing options...
mihaibr Posted November 13, 2012 Share Posted November 13, 2012 #include <Misc.au3> While 1 If _IsPressed(01) Then MsgBox(0,"Evemt","Left mouse button pressed") Exit EndIf Sleep(10) WEnd01=Left mouse buttonYou can find all keys here. Link to comment Share on other sites More sharing options...
Scripty Posted November 13, 2012 Author Share Posted November 13, 2012 While 1 If _IsPressed(01) Then sleep(500) mouseclick("right") EndIf WEnd won't realy work Link to comment Share on other sites More sharing options...
Morthawt Posted November 13, 2012 Share Posted November 13, 2012 Interesting. You want to be able to have the right mouse click pressed when ever you press the left mouse click? In what context would that prove beneficial? Just curious. Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 13, 2012 Moderators Share Posted November 13, 2012 Scripty, And why not? 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...
Morthawt Posted November 13, 2012 Share Posted November 13, 2012 (edited) #include $dll = DllOpen("user32.dll") While 1 If _IsPressed(01, $dll) Then Sleep(500) MouseClick("right") EndIf WEnd DllClose($dll) No idea why my #include parts do not show up any more :? it is #include <misc.au3> Edited November 13, 2012 by Morthawt Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. Link to comment Share on other sites More sharing options...
mihaibr Posted November 13, 2012 Share Posted November 13, 2012 (edited) #include <Misc.au3> While 1 If _IsPressed(01) Then sleep(500) mouseclick("right") EndIf Sleep(10) WEnd Edited November 13, 2012 by mihaibr Link to comment Share on other sites More sharing options...
Scripty Posted November 13, 2012 Author Share Posted November 13, 2012 sorry my bad ofc i have to put it active haha Link to comment Share on other sites More sharing options...
Morthawt Posted November 13, 2012 Share Posted November 13, 2012 sorry my bad ofc i have to put it active hahaI am always looking for ideas for useful things to script up for myself. What are you actually trying to make? Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. Link to comment Share on other sites More sharing options...
Bert Posted November 13, 2012 Share Posted November 13, 2012 (edited) Edited November 13, 2012 by scullion The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Somerset Posted November 13, 2012 Share Posted November 13, 2012 You need _keysniffer that smells keyboard farts to get it correct. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now