eyal159 Posted October 14, 2018 Share Posted October 14, 2018 in java for exmple if i wanna make a random letter from a to z then i do syso('Random(1,26,1)) how can i do it here and make number a letter (1=a z=26) Link to comment Share on other sites More sharing options...
Danp2 Posted October 14, 2018 Share Posted October 14, 2018 Use Random() and Chr(). careca 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
careca Posted October 14, 2018 Share Posted October 14, 2018 (edited) Very nice, the only thing is you can't go from 1 to 26. #include <MsgBoxConstants.au3> Local $sText = "" For $i = 65 To 122 $sText = $sText & Chr($i) Next MsgBox($MB_SYSTEMMODAL, "Uppercase + Lowercase alphabet", $sText) ; Display the characters between 65 to 90. MsgBox(64, 'Letter A', Chr(65)) Edited October 14, 2018 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Danp2 Posted October 14, 2018 Share Posted October 14, 2018 34 minutes ago, careca said: Very nice, the only thing is you can't go from 1 to 26. Actually, you can. Just add 64 to the result from Random(1,26). careca 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
eyal159 Posted October 14, 2018 Author Share Posted October 14, 2018 33 minutes ago, Danp2 said: Actually, you can. Just add 64 to the result from Random(1,26). and another quastion , if for example i have somthing in copy and i wanna paste it into a Link to comment Share on other sites More sharing options...
eyal159 Posted October 14, 2018 Author Share Posted October 14, 2018 Just now, eyal159 said: and another quastion , if for example i have somthing in copy and i wanna paste it into a and another quastion , if i got number on the screen at ,648,594 for example and i wanna copy it and update one of my virables into it . $Amount , how can i do that ? Link to comment Share on other sites More sharing options...
careca Posted October 14, 2018 Share Posted October 14, 2018 $Amount = 648.594 Come on, a poor question warrants a poor response. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
eyal159 Posted October 14, 2018 Author Share Posted October 14, 2018 6 minutes ago, careca said: $Amount = 648.594 Come on, a poor question warrants a poor response. im sry , ive just started learn this . tnx ! Link to comment Share on other sites More sharing options...
eyal159 Posted October 14, 2018 Author Share Posted October 14, 2018 13 minutes ago, careca said: $Amount = 648.594 Come on, a poor question warrants a poor response. i dont think you understood what i was trying to say , basicly i have text on the screen at 1274,765 and i wanna get this text into $amount . how can i do that . becuse when i do $Amount = 1274.765 and then send($amount) it gives me 1274.765 and i wanna have whatever on the screen at that point . ty alot ! Link to comment Share on other sites More sharing options...
careca Posted October 14, 2018 Share Posted October 14, 2018 (edited) You have to know the window and the control, using the info tool for example. EDIT: oh wait, i see now, 1274,765 are coordinates. I thought it was just a value. Still, what is the window and control? Or is it a web page or something? Edited October 14, 2018 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
eyal159 Posted October 14, 2018 Author Share Posted October 14, 2018 30 minutes ago, careca said: You have to know the window and the control, using the info tool for example. EDIT: oh wait, i see now, 1274,765 are coordinates. I thought it was just a value. Still, what is the window and control? Or is it a web page or something? thats a web page (website) Link to comment Share on other sites More sharing options...
eyal159 Posted October 14, 2018 Author Share Posted October 14, 2018 i'll try to make it clear, basically, i have a $name that needs to be set while the program is working. the program is running youtube for example and i need to copy the name . http://prntscr.com/l604wc how do i save this name into $name ? (song name in pic) name cords are 1450 903 . ty a lot ! Link to comment Share on other sites More sharing options...
careca Posted October 14, 2018 Share Posted October 14, 2018 I think the best way is IE functions, give it the id and it's done. No need for the coordinates. Im not sure i never used it much, maybe try with something like this: https://www.autoitscript.com/autoit3/docs/libfunctions/_IEGetObjById.htm Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
eyal159 Posted October 14, 2018 Author Share Posted October 14, 2018 12 minutes ago, careca said: I think the best way is IE functions, give it the id and it's done. No need for the coordinates. Im not sure i never used it much, maybe try with something like this: https://www.autoitscript.com/autoit3/docs/libfunctions/_IEGetObjById.htm thanks alot ! i'll let you know if it works. 5 Link to comment Share on other sites More sharing options...
eyal159 Posted October 14, 2018 Author Share Posted October 14, 2018 46 minutes ago, careca said: I think the best way is IE functions, give it the id and it's done. No need for the coordinates. Im not sure i never used it much, maybe try with something like this: https://www.autoitscript.com/autoit3/docs/libfunctions/_IEGetObjById.htm 2 ok so after trying i have few questions aggin 1 ) how do i find the object Id ? (the name) 2) what am i suppost to write as the object ? the URL (using chrome if it matters) ty alot .1 Link to comment Share on other sites More sharing options...
Danp2 Posted October 14, 2018 Share Posted October 14, 2018 In most browsers, you can right-click and the desired element and then select "Inspect" from the popup menu to open the developer tools with the desired element already highlighted. You can read more on Chrome's Dev Tools here. You may want to look into the WebDriver UDF for Chrome automation (see my sig). Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
eyal159 Posted October 15, 2018 Author Share Posted October 15, 2018 19 hours ago, Danp2 said: In most browsers, you can right-click and the desired element and then select "Inspect" from the popup menu to open the developer tools with the desired element already highlighted. You can read more on Chrome's Dev Tools here. You may want to look into the WebDriver UDF for Chrome automation (see my sig). hey , http://prntscr.com/l6dyo6 , just to make sure. the id is inputiRandomCardNumber? Link to comment Share on other sites More sharing options...
Danp2 Posted October 15, 2018 Share Posted October 15, 2018 @eyal159 That would appear to be the correct ID for the displayed Div element. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
eyal159 Posted October 15, 2018 Author Share Posted October 15, 2018 1 minute ago, Danp2 said: @eyal159 That would appear to be the correct ID for the displayed Div element. ok and if im using chrome what am i suppost to put here ? http://prntscr.com/l6e3wq Ty alot !!! Link to comment Share on other sites More sharing options...
Danp2 Posted October 15, 2018 Share Posted October 15, 2018 No idea what that screenshot is supposed to represent. Latest Webdriver UDF Release Webdriver Wiki FAQs 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