BobiusMaximus Posted November 26, 2006 Share Posted November 26, 2006 Well, I've been trying to make a macro program so when I push a button fro F9-F12 it will type something. This is the code I got so far: #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Bobs Macro Program", 342, 264, 226, 149) $F9 = GUICtrlCreateTab(16, 32, 297, 193) GUICtrlCreateTabItem("F9") $F10 = GUICtrlCreateTab(16, 32, 297, 193) GUICtrlCreateTabItem("F10") $F11 = GUICtrlCreateTab(16, 32, 297, 193) GUICtrlCreateTabItem("F11") $F12 = GUICtrlCreateTab(16, 32, 297, 193) GUICtrlCreateTabItem("F12") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd oÝ÷ Øz0z÷«!ƧßÛ_«z-¡£è§¦ëlÂ+aém^)Þ°ëaz)éºÛ,µ¬¨æÖ"ØbKayÊyú+¶rÛǶ*'Â)emæ®¶sevÆR¢b33c¶×6rÒuTvWD×6r¢bb33c¶×6rÒ´cÒFVâ6VæBçWBb33c´cçWB¢bb33c¶×6rÒ´cÒFVâ6VæBçWBb33c´cçWB¢bb33c¶×6rÒ´cÒFVâ6VæBçWBb33c´cçWB¢bb33c¶×6rÒ´c'ÒFVâ6VæBçWBb33c´c$çWB¥tVæ@ So, quite a lot of help needed here -Bob Photoshop User and Noob AutoIt user. Link to comment Share on other sites More sharing options...
Developers Jos Posted November 26, 2006 Developers Share Posted November 26, 2006 So, quite a lot of help needed here I helps when posted in the correct forum ... *moved* SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
BobiusMaximus Posted November 26, 2006 Author Share Posted November 26, 2006 I helps when posted in the correct forum ... *moved*Sorry, I thought it would go in the GUI one because the Tabs and Input thing are GUI related.-Bob Photoshop User and Noob AutoIt user. Link to comment Share on other sites More sharing options...
Developers Jos Posted November 26, 2006 Developers Share Posted November 26, 2006 you 're right ... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
AzKay Posted November 26, 2006 Share Posted November 26, 2006 Look at _IsPressed() Or HotKeySet() In the helpfile # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
BobiusMaximus Posted November 26, 2006 Author Share Posted November 26, 2006 Look at _IsPressed() Or HotKeySet() In the helpfile Um...I don't really get any of that at all -Bob Photoshop User and Noob AutoIt user. Link to comment Share on other sites More sharing options...
NeoFoX Posted November 27, 2006 Share Posted November 27, 2006 #include <GUIConstants.au3> HotKeySet("{F9}","F9") HotKeySet("{F10}","F10") HotKeySet("{F11}","F11") #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Bobs Macro Program", 342, 264, 226, 149) GUICtrlCreateTab(16, 32, 297, 193) $F9 = GUICtrlCreateTabItem("F9") $F10 = GUICtrlCreateTabItem("F10") $F11 = GUICtrlCreateTabItem("F11") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func F9() GUICtrlSetState($F9, $GUI_SHOW) EndFunc Func F10() GUICtrlSetState($F10, $GUI_SHOW) EndFunc Func F11() GUICtrlSetState($F11, $GUI_SHOW) EndFunc Something like this? Neo [center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center] Link to comment Share on other sites More sharing options...
BobiusMaximus Posted November 27, 2006 Author Share Posted November 27, 2006 #include <GUIConstants.au3> HotKeySet("{F9}","F9") HotKeySet("{F10}","F10") HotKeySet("{F11}","F11") #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Bobs Macro Program", 342, 264, 226, 149) GUICtrlCreateTab(16, 32, 297, 193) $F9 = GUICtrlCreateTabItem("F9") $F10 = GUICtrlCreateTabItem("F10") $F11 = GUICtrlCreateTabItem("F11") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func F9() GUICtrlSetState($F9, $GUI_SHOW) EndFunc Func F10() GUICtrlSetState($F10, $GUI_SHOW) EndFunc Func F11() GUICtrlSetState($F11, $GUI_SHOW) EndFunc Something like this? Neo Um, kinda like that, but that still doesn't type anything, though I think I understand the hotkey thing -Bob Photoshop User and Noob AutoIt user. 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