TheBG 0 Posted March 17, 2011 I think I must be having a "moment" I cant figure out what I'm missing. In short - I have a tablet pc with intel video. I want to create a small app for rotating the screen, since the pc doesn't have a physical keyboard. I just need to be able to do a CTRL+ALT+UP and a couple of other combos. What am I doing wrong here? :-) #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Flipper = GUICreate("Flipper", 169, 173, 365, 270) $Normal = GUICtrlCreateButton("Normal", 16, 8, 137, 33, 0) $Rot90 = GUICtrlCreateButton("Rotate 90", 16, 48, 137, 33, 0) $Rot180 = GUICtrlCreateButton("Rotate 180", 16, 88, 137, 33, 0) $Rot270 = GUICtrlCreateButton("Rotate 270", 16, 128, 137, 33, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $Normal Send("{RCTRL}{ALT}{UP}") Case $Rot90 Send("{RCTRL}{ALT}{LEFT}") Case $Rot180 Send("{RCTRL}{ALT}{DOWN}") Case $Rot270 Send("{RCTRL}{ALT}{RIGHT}") Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Share this post Link to post Share on other sites
hannes08 39 Posted March 17, 2011 Hi TheBG, I think you'll have to do sth like: Send("{CTRLDOWN}{ALTDOWN}{UP}{CTRLUP}{ALTUP}") What do you think about that? Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] Share this post Link to post Share on other sites
TheBG 0 Posted March 17, 2011 Nevermind - I figured it out! #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Flipper = GUICreate("Flipper", 169, 173, 365, 270) $Normal = GUICtrlCreateButton("Normal", 16, 8, 137, 33, 0) $Rot90 = GUICtrlCreateButton("Rotate 90", 16, 48, 137, 33, 0) $Rot180 = GUICtrlCreateButton("Rotate 180", 16, 88, 137, 33, 0) $Rot270 = GUICtrlCreateButton("Rotate 270", 16, 128, 137, 33, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $Normal Send("^!{UP}") Case $Rot90 Send("^!{LEFT}") Case $Rot180 Send("^!{DOWN}") Case $Rot270 Send("^!{RIGHT}") Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Share this post Link to post Share on other sites