luzif3r Posted February 8, 2008 Share Posted February 8, 2008 well, it might be a huge oversight on my part, but i am unable to controlsend "%" (percent sign) to an inactive and minimized window. i have tried several conversions or even briefly activating the window, which works but it takes quite long and is just annoying. so can anyone tell me how to do this? Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 8, 2008 Share Posted February 8, 2008 Hi, no prob for me: Opt('WinTitleMatchMode', 4) Run('notepad', '',@SW_MINIMIZE) Global $text = InputBox("Dein Text", "Bitte Text eingeben") ControlSend("classname=Notepad", "", 'Edit1', $text) Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
luzif3r Posted February 8, 2008 Author Share Posted February 8, 2008 hm, your "solution" turns out to give me a '5' and i could have told you because i tried that one before. i guess the program does something special then? any way to circumvent that? maybe some formatting or send it raw thru some dll calls? i am really clueless of why that does not work.. Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 8, 2008 Share Posted February 8, 2008 hm, your "solution" turns out to give me a '5' and i could have told you because i tried that one before. i guess the program does something special then? any way to circumvent that? maybe some formatting or send it raw thru some dll calls? i am really clueless of why that does not work..Which program? Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 8, 2008 Share Posted February 8, 2008 Try Opt('WinTitleMatchMode', 4) Run('notepad', '',@SW_MINIMIZE) Sleep(1000) ;Global $text = InputBox("Dein Text", "Bitte Text eingeben") ControlSend("classname=Notepad", "", 'Edit1', '{ASC 037}') Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
luzif3r Posted February 8, 2008 Author Share Posted February 8, 2008 thanks for staying with me but i tried the conversion already and i tried it again now but it just reads '037'. i hope it aint a problem that im using the window handle. Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 8, 2008 Share Posted February 8, 2008 Hi, what program? Maybe somebody could help testing. Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
luzif3r Posted February 8, 2008 Author Share Posted February 8, 2008 World of Warcraft to be exact and some other games like Hellgate London and i think i tried it on NFS prostreet Link to comment Share on other sites More sharing options...
luzif3r Posted February 8, 2008 Author Share Posted February 8, 2008 all 5's Link to comment Share on other sites More sharing options...
Monamo Posted February 8, 2008 Share Posted February 8, 2008 The only other variation that comes to mind would be something like: ControlSend("Untitled - Notepad","","Edit1",Chr(37)) - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
luzif3r Posted February 8, 2008 Author Share Posted February 8, 2008 (edited) its kinda embarrassing to bother you but it still gives me a 5 :/ code snippet: Opt('WinTitleMatchMode', 4) $wow_handle = WinGetHandle("classname=GxWindowClassD3d") ControlSend($wow_handle, "", "", Chr(37)) Edited February 8, 2008 by luzif3r Link to comment Share on other sites More sharing options...
luzif3r Posted February 8, 2008 Author Share Posted February 8, 2008 (edited) as i assumed it is a bunch of 5's thanks for helping anyways Edited February 8, 2008 by luzif3r Link to comment Share on other sites More sharing options...
LarryDalooza Posted February 8, 2008 Share Posted February 8, 2008 ControlSend("Untitled", "", "Edit1","+5+5+5+5+5") AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
luzif3r Posted February 8, 2008 Author Share Posted February 8, 2008 (edited) result: 456456456456 @ hubertus result: 55555 @ larry Edited February 8, 2008 by luzif3r Link to comment Share on other sites More sharing options...
LarryDalooza Posted February 8, 2008 Share Posted February 8, 2008 Send("{SHIFTDOWN}") ControlSend("Untitled", "", "Edit1","55555") Send("{SHIFTUP}") AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
luzif3r Posted February 8, 2008 Author Share Posted February 8, 2008 (edited) result: abcabc123123 @hubertus ofc your assumption is correct. how do i change that while keeping it minimized? Edited February 8, 2008 by luzif3r Link to comment Share on other sites More sharing options...
luzif3r Posted February 8, 2008 Author Share Posted February 8, 2008 @ larry: D'OH IT WORKS there is a 1 second window tho where everything is "shifted up" still that i didnt think of that.. XD thanks a bunch! 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